|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.retail.si.mgmt.MgmtAgentFactory
Factory class for obtaining the singleton instances of the Master or General Management agents. The agents are initialized and started upon the first call to either of the factory methods.
Constructor Summary | |
---|---|
MgmtAgentFactory()
|
Method Summary | |
---|---|
static com.ibm.retail.si.mgmt.MgmtAgent |
getGeneralAgent()
Returns the singleton instance of the general agent for the current JVM. |
static com.ibm.retail.si.mgmt.MgmtAgent |
getGeneralAgent(int deviceType)
Creates a general agent instance with the supplied device type. |
static com.ibm.retail.si.mgmt.MgmtAgent |
getMasterAgent()
Returns the singleton instance of the master agent for the current JVM. |
static boolean |
isGeneralAgentRunning()
|
static boolean |
isMasterAgentRunning()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MgmtAgentFactory()
Method Detail |
public static com.ibm.retail.si.mgmt.MgmtAgent getGeneralAgent() throws MgmtException
MgmtException
- Error initializing General Agent instance,
possibly due to missing configuration file(s) or errors reading
the configurationpublic static com.ibm.retail.si.mgmt.MgmtAgent getGeneralAgent(int deviceType) throws MgmtException
Device type constants are specified in MgmtConst
deviceType
- Valid device type to use for this agent
MgmtException
- General Agent instance is already running, or invalid parameter specifiedpublic static boolean isGeneralAgentRunning()
public static boolean isMasterAgentRunning()
public static com.ibm.retail.si.mgmt.MgmtAgent getMasterAgent() throws MgmtException
MgmtException
- Error initializing MasterAgent instance,
possibly due to missing configuration file(s) or errors reading
the configuration
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |