|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectajanta.agent.Agent
konark.manager.BasicMonitoringAgent
konark.manager.MonitoringAgent
konark.manager.SMSAgent
Field Summary | |
protected java.util.Hashtable |
listOfEventSubscribers
A hash table of GUI subscriber URLs |
protected java.util.Hashtable |
urlToEventVector
A hash table that maintains url to event list mapping |
Fields inherited from class konark.manager.MonitoringAgent |
dbpasswd, dburl, dbuser, monitoringEvents, monitoringInfo, outstandingMonList |
Fields inherited from class konark.manager.BasicMonitoringAgent |
dbModule, defaultSubscriber, eventIDGenerator, eventTable, keepRunning, localTriggerTable, remoteTriggerTable, reportedEventList, sql, subscriberHashtable |
Fields inherited from class ajanta.agent.Agent |
creatorSignature, cred, host, myRef, name, ownerSignature, status |
Constructor Summary | |
SMSAgent(ajanta.agent.Credentials cred)
|
|
SMSAgent(ajanta.agent.Credentials cred,
java.util.Hashtable monInfo,
java.lang.String dburl,
java.lang.String dbuser,
java.lang.String dbpasswd,
java.lang.Boolean ifSql,
ajanta.naming.URN defSubURN)
|
Method Summary | |
void |
abortConfig(java.lang.String configHandle)
Interface method to terminate all agents in a configuration object launched by this SMS Called by proxy object |
void |
addAndLaunchAgents(java.lang.String filename,
java.lang.String configHandle)
Interface method to launch an agent Called by proxy object |
void |
addDetector(ajanta.naming.URN agentURN,
java.lang.String eventDetector,
java.lang.String eventHandler)
Interface method to install an detector remotely Called by the proxy object |
void |
addHandlerPostAction(EventHandler handler)
|
void |
addNewSubscription(ajanta.naming.URN publisherURN,
ajanta.naming.URN subscriberURN,
java.lang.String eventName,
java.lang.String eventHandler)
Interface method to add a subscription to an agent Called by the proxy object |
void |
agentReached(ajanta.naming.URN agentURN)
Synchronization method: agent informs SMSAgent on reaching destination |
void |
executeBeforeRun()
Initial setup before SMSAgent can run: 1) Create the ConfigManager object and set handle 2) Setup the proxy/interface for the GUI to interact 3) Subscribe to Failure detectors |
void |
forceRun(ajanta.naming.URN agentURN)
Remote Interface method indicating that an agent would like to start running even though it has not subscribed to all |
java.util.Vector |
getConfigHandleList()
Remote Interface method to get a list of config handles from an SMSAgent |
ConfigObject |
getConfigObject(java.lang.String configHandle)
Interface method to get configuration object from an agent Called by proxy object |
void |
launchConfig(java.lang.String configHandle)
Interface method to launch a configuration given the configuration id Called by the proxy object |
void |
launchConfigRestartMode(java.lang.String configHandle)
Interface method to launch a configuration in restart mode called by the proxy object |
void |
modifyDetectorOnAgent(ajanta.naming.URN agentURN,
java.lang.String eventDetector,
java.lang.Object[] object)
Remote Interface method to modify an agent's detector |
void |
readConfigFile(java.lang.String filename,
java.lang.String configHandle)
Interface method to read a configuration file and set it to a configuration name/id/handle Called by the proxy object |
void |
registerForEvents(java.lang.String configHandle,
java.lang.String url,
java.util.Vector eventList)
Overloaded method for handling events taken from the Event queue of the SMSAgent /** register for interesting events from the default subscriber |
void |
registerForHostStatusEvents(java.lang.String clientURL,
java.util.Vector configHandles)
|
void |
registerGUI(java.lang.String url)
|
void |
removeDetectorOnAgent(ajanta.naming.URN agentURN,
java.lang.String detectorName)
Remote Interface method to remove a detector from an agent |
void |
removeSubscribeRelation(ajanta.naming.URN publisherURN,
ajanta.naming.URN subscriberURN,
java.lang.String eventName)
Method to remove the publish-subscribe relation |
void |
setBackupInfoForConfig(java.lang.String configHandle,
java.lang.String baseDir,
java.lang.String baseFileName)
|
boolean |
startRun(ajanta.naming.URN agentURN)
Synchronization method instructing the agent to start running |
boolean |
startSubscription(ajanta.naming.URN agentURN)
Synchronization method instructing the agent to start subscribing to other agents |
void |
terminateChildAgent(ajanta.naming.URN agentURN)
Interface method to terminate agent launched by this SMS Called by proxy object |
void |
test(java.lang.String e)
|
void |
unregisterForAllHostStatusEvents(java.lang.String clientURL)
|
void |
unregisterForEvents(java.lang.String configHandle,
java.lang.String url,
java.util.Vector v)
register for interesting events from the default subscriber |
Methods inherited from class konark.manager.MonitoringAgent |
addSubscription, createObject, handlerAction, removeSubscription, report, resubscribe, startEventMachinery |
Methods inherited from class ajanta.agent.Agent |
agentEntry, agentExit, colocate, colocate, meet, recallCommand, signCreator, signOwner, start |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface konark.manager.Monitor |
addEvent, addEvent, addEventDetector, addEventHandler, addSubscriber, deleteEvent, deleteSubscriber, modifyDetector, printRunningThreads, removeDetector, replaceEventDetector, replaceEventHandler, restoreDetector, setAlarmLevel, setAlertLevel, stopAgent, switchOffPrintRunningThreads |
Methods inherited from interface konark.manager.Subscriber |
addSubscription, removeSubscription, report, resubscribe, subscribeEvent, subscribeEvent, unsubscribeEvent |
Field Detail |
protected java.util.Hashtable listOfEventSubscribers
protected java.util.Hashtable urlToEventVector
Constructor Detail |
public SMSAgent(ajanta.agent.Credentials cred)
cred
- public SMSAgent(ajanta.agent.Credentials cred, java.util.Hashtable monInfo, java.lang.String dburl, java.lang.String dbuser, java.lang.String dbpasswd, java.lang.Boolean ifSql, ajanta.naming.URN defSubURN)
cred
- monInfo
- dburl
- dbuser
- dbpasswd
- ifSql
- defSubURN
- Method Detail |
public void executeBeforeRun()
executeBeforeRun
in class MonitoringAgent
public void test(java.lang.String e) throws java.rmi.RemoteException
test
in interface SMSAgentInterface
java.rmi.RemoteException
public void readConfigFile(java.lang.String filename, java.lang.String configHandle) throws java.lang.Exception
readConfigFile
in interface SMSAgentInterface
filename
- configHandle
-
java.lang.Exception
public void setBackupInfoForConfig(java.lang.String configHandle, java.lang.String baseDir, java.lang.String baseFileName) throws java.lang.Exception
setBackupInfoForConfig
in interface SMSAgentInterface
java.lang.Exception
public void launchConfigRestartMode(java.lang.String configHandle) throws java.lang.Exception
launchConfigRestartMode
in interface SMSAgentInterface
configHandle
-
java.lang.Exception
public void launchConfig(java.lang.String configHandle) throws java.lang.Exception
launchConfig
in interface SMSAgentInterface
configHandle
-
java.lang.Exception
public void addDetector(ajanta.naming.URN agentURN, java.lang.String eventDetector, java.lang.String eventHandler) throws java.lang.Exception
addDetector
in interface SMSAgentInterface
agentURN
- eventDetector
- eventHandler
-
java.lang.Exception
public void addNewSubscription(ajanta.naming.URN publisherURN, ajanta.naming.URN subscriberURN, java.lang.String eventName, java.lang.String eventHandler) throws java.lang.Exception
addNewSubscription
in interface SMSAgentInterface
publisherURN
- subscriberURN
- eventName
- eventHandler
-
java.lang.Exception
public ConfigObject getConfigObject(java.lang.String configHandle) throws java.lang.Exception
getConfigObject
in interface SMSAgentInterface
configHandle
-
java.lang.Exception
public void terminateChildAgent(ajanta.naming.URN agentURN) throws java.lang.Exception
terminateChildAgent
in interface SMSAgentInterface
agentURN
-
java.lang.Exception
public void abortConfig(java.lang.String configHandle) throws java.lang.Exception
abortConfig
in interface SMSAgentInterface
configHandle
-
java.lang.Exception
public void addAndLaunchAgents(java.lang.String filename, java.lang.String configHandle) throws java.lang.Exception
addAndLaunchAgents
in interface SMSAgentInterface
filename
- configHandle
-
java.lang.Exception
public void agentReached(ajanta.naming.URN agentURN) throws java.lang.Exception
agentReached
in interface SMSAgentInterface
agentURN
-
java.lang.Exception
public boolean startRun(ajanta.naming.URN agentURN) throws java.lang.Exception
startRun
in interface SMSAgentInterface
agentURN
-
java.lang.Exception
public boolean startSubscription(ajanta.naming.URN agentURN) throws java.lang.Exception
startSubscription
in interface SMSAgentInterface
agentURN
-
java.lang.Exception
public void forceRun(ajanta.naming.URN agentURN) throws java.lang.Exception
SMSAgentInterface
forceRun
in interface SMSAgentInterface
java.lang.Exception
public java.util.Vector getConfigHandleList() throws java.lang.Exception
SMSAgentInterface
getConfigHandleList
in interface SMSAgentInterface
java.lang.Exception
public void modifyDetectorOnAgent(ajanta.naming.URN agentURN, java.lang.String eventDetector, java.lang.Object[] object) throws java.lang.Exception
SMSAgentInterface
modifyDetectorOnAgent
in interface SMSAgentInterface
java.lang.Exception
public void removeSubscribeRelation(ajanta.naming.URN publisherURN, ajanta.naming.URN subscriberURN, java.lang.String eventName) throws java.lang.Exception
removeSubscribeRelation
in interface SMSAgentInterface
publisherURN
- subscriberURN
- eventName
-
java.lang.Exception
public void removeDetectorOnAgent(ajanta.naming.URN agentURN, java.lang.String detectorName) throws java.lang.Exception
removeDetectorOnAgent
in interface SMSAgentInterface
java.lang.Exception
public void registerForEvents(java.lang.String configHandle, java.lang.String url, java.util.Vector eventList) throws java.lang.Exception
registerForEvents
in interface SMSAgentInterface
url
- eventList
-
java.lang.Exception
public void unregisterForEvents(java.lang.String configHandle, java.lang.String url, java.util.Vector v) throws java.lang.Exception
unregisterForEvents
in interface SMSAgentInterface
url
-
java.lang.Exception
public void registerForHostStatusEvents(java.lang.String clientURL, java.util.Vector configHandles) throws java.lang.Exception
registerForHostStatusEvents
in interface SMSAgentInterface
java.lang.Exception
public void unregisterForAllHostStatusEvents(java.lang.String clientURL) throws java.lang.Exception
unregisterForAllHostStatusEvents
in interface SMSAgentInterface
java.lang.Exception
public void registerGUI(java.lang.String url)
public void addHandlerPostAction(EventHandler handler)
addHandlerPostAction
in class MonitoringAgent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |