systemic.sif.sbpframework.agent
Class SBPPublisherAgent

java.lang.Object
  extended by openadk.library.Agent
      extended by systemic.sif.sifcommon.agent.SIFBaseAgent
          extended by systemic.sif.sbpframework.agent.SBPPublisherAgent

public class SBPPublisherAgent
extends systemic.sif.sifcommon.agent.SIFBaseAgent

This is an actual implementation of a publishing agent for the SBP. In most cases one can use this agent out of the box. The main restriction it has is that it cannot deal with custom objects. If that should be required one must write a new agent like this and implement the initCustomObjects() method of the SIFBaseAgent class.

To start this agent the following command line statement is used:

<JAVA_HOME>/bin/java <JVM_SETTINGS> -cp <classpath> systemic.sif.sbpframework.agent.SBPPublisherAgent <agentID> [ <agent.properties>]

<agentID>: Required. Must be an ID of an agent used in the <agen>.properties file.
<agent.properties>: Optional. The name of the agent properties file. If not provided it is assumed to be called SIFAgent.properties. The directory of this file must be on the classpath.

Author:
Joerg Huber

Field Summary
 
Fields inherited from class openadk.library.Agent
LOG_IDENTIFIER
 
Constructor Summary
SBPPublisherAgent(java.lang.String agentID, java.lang.String propertyFileName)
           
 
Method Summary
 void initCustomObjects()
          Default implementation does nothing.
static void main(java.lang.String[] args)
           
 
Methods inherited from class systemic.sif.sifcommon.agent.SIFBaseAgent
getAgentConfig, getAgentID, getAgentMappings, getAgentProperties, getFrameworkProperties, getHomeDir, getInitialisedPublishers, getInitialisedSubscribers, getMappings, getZones, setAgentID, setAgentMappings, setFrameworkProperties, startAgent, startAgent, startAgent, startAgent, stopAgent
 
Methods inherited from class openadk.library.Agent
addMessagingListener, getConfigurationSource, getDefaultHttpProperties, getDefaultHttpsProperties, getDefaultTransportProperties, getDefaultZoneProperties, getErrorHandler, getId, getLog, getLog, getMessagingListeners, getName, getProperties, getPublisher, getQueryResults, getReportPublisher, getServerLog, getServerLog, getSubscriber, getThreadPoolManager, getTopicFactory, getTransportManager, getZoneFactory, initialize, isInitialized, isShutdown, makeGUID, purgeQueue, removeMessagingListener, setConfigurationSource, setErrorHandler, setId, setName, setPublisher, setPublisher, setQueryResults, setQueryResults, setReportPublisher, setSubscriber, setSubscriber, shutdown, shutdown, sleep, wakeup
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SBPPublisherAgent

public SBPPublisherAgent(java.lang.String agentID,
                         java.lang.String propertyFileName)
                  throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

initCustomObjects

public void initCustomObjects()
Default implementation does nothing. If custom objects are required then it is advised to write a new agent that extends this agent and then override this method to the need of the agent.

Specified by:
initCustomObjects in class systemic.sif.sifcommon.agent.SIFBaseAgent

main

public static void main(java.lang.String[] args)