|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopenadk.library.Agent
systemic.sif.sifcommon.agent.SIFBaseAgent
systemic.sif.sbpframework.agent.SBPSubscriberAgent
public class SBPSubscriberAgent
This is an actual implementation of a subscribing 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.SBPSubscriberAgent <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.
Field Summary |
---|
Fields inherited from class openadk.library.Agent |
---|
LOG_IDENTIFIER |
Constructor Summary | |
---|---|
SBPSubscriberAgent(java.lang.String agentID,
java.lang.String propertyFileName)
|
Method Summary | |
---|---|
java.lang.String |
getApplicationID()
|
void |
initCustomObjects()
Default implementation does nothing. |
static void |
main(java.lang.String[] args)
|
void |
startAgent()
Overrides the default start up method. |
void |
stopAgent()
Override the base agent's shutdown method. |
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 |
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 |
---|
public SBPSubscriberAgent(java.lang.String agentID, java.lang.String propertyFileName) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public java.lang.String getApplicationID()
public void initCustomObjects()
initCustomObjects
in class systemic.sif.sifcommon.agent.SIFBaseAgent
public void stopAgent()
stopAgent
in class systemic.sif.sifcommon.agent.SIFBaseAgent
public void startAgent() throws java.lang.Exception
startAgent
in class systemic.sif.sifcommon.agent.SIFBaseAgent
java.lang.Exception
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |