konark.manager
Interface SMSAgentInterface

All Superinterfaces:
Monitor, java.rmi.Remote, Subscriber
All Known Implementing Classes:
SMSAgent, SMSAgentInterfaceProxy

public interface SMSAgentInterface
extends Monitor

Interface definition for the SMSAgent The GUI is going to operate on methods on this interface This interface contains methods like report (Reporting failed events), Adding events, detectors etc.


Method Summary
 void abortConfig(java.lang.String configHandle)
          Remote Interface method to abort a configuration
 void addAndLaunchAgents(java.lang.String filename, java.lang.String configHandle)
          Remote Interface method to launch an agent
 void addDetector(ajanta.naming.URN agentURN, java.lang.String eventDetector, java.lang.String eventHandler)
          Remote interface method to install an detector remotely
 void addNewSubscription(ajanta.naming.URN publisherURN, ajanta.naming.URN subscriberURN, java.lang.String eventName, java.lang.String eventHandler)
          Remote interface method to add a subscription to an agent
 void agentReached(ajanta.naming.URN agentURN)
          Remote Interface method indicating successful agent arrival at a host
 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)
          Remote interface method to get configuration object from an agent
 void launchConfig(java.lang.String configHandle)
          Remote interface method to launch a configuration given the configuration id
 void launchConfigRestartMode(java.lang.String configHandle)
          Remote interface method to launch a configuration in restart mode
 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)
          Remote interface method to read a configuration file and set it to a configuration name/id/handle
 void registerForEvents(java.lang.String configHandle, java.lang.String url, java.util.Vector eventList)
          Remote Interface method to get interesting events from the broker
 void registerForHostStatusEvents(java.lang.String clientURL, java.util.Vector configHandles)
           
 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)
          Remote Interface method to remove a subscription
 void setBackupInfoForConfig(java.lang.String configHandle, java.lang.String baseDir, java.lang.String baseFileName)
           
 boolean startRun(ajanta.naming.URN agentURN)
          Remote Interface method signalling whether an agent can start executing
 boolean startSubscription(ajanta.naming.URN agentURN)
          Remote Interface method signalling whether an agent can start subscribing
 void terminateChildAgent(ajanta.naming.URN agentURN)
          Remote Interface method to terminate an agent
 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)
          Remote Interface method to get unregister receiving of events
 
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
 

Method Detail

readConfigFile

public void readConfigFile(java.lang.String filename,
                           java.lang.String configHandle)
                    throws java.lang.Exception
Remote interface method to read a configuration file and set it to a configuration name/id/handle

Throws:
java.lang.Exception

launchConfig

public void launchConfig(java.lang.String configHandle)
                  throws java.lang.Exception
Remote interface method to launch a configuration given the configuration id

Throws:
java.lang.Exception

setBackupInfoForConfig

public void setBackupInfoForConfig(java.lang.String configHandle,
                                   java.lang.String baseDir,
                                   java.lang.String baseFileName)
                            throws java.lang.Exception
Throws:
java.lang.Exception

launchConfigRestartMode

public void launchConfigRestartMode(java.lang.String configHandle)
                             throws java.lang.Exception
Remote interface method to launch a configuration in restart mode

Throws:
java.lang.Exception

addDetector

public void addDetector(ajanta.naming.URN agentURN,
                        java.lang.String eventDetector,
                        java.lang.String eventHandler)
                 throws java.lang.Exception
Remote interface method to install an detector remotely

Throws:
java.lang.Exception

addNewSubscription

public void addNewSubscription(ajanta.naming.URN publisherURN,
                               ajanta.naming.URN subscriberURN,
                               java.lang.String eventName,
                               java.lang.String eventHandler)
                        throws java.lang.Exception
Remote interface method to add a subscription to an agent

Throws:
java.lang.Exception

getConfigObject

public ConfigObject getConfigObject(java.lang.String configHandle)
                             throws java.lang.Exception
Remote interface method to get configuration object from an agent

Throws:
java.lang.Exception

addAndLaunchAgents

public void addAndLaunchAgents(java.lang.String filename,
                               java.lang.String configHandle)
                        throws java.lang.Exception
Remote Interface method to launch an agent

Throws:
java.lang.Exception

agentReached

public void agentReached(ajanta.naming.URN agentURN)
                  throws java.lang.Exception
Remote Interface method indicating successful agent arrival at a host

Throws:
java.lang.Exception

startRun

public boolean startRun(ajanta.naming.URN agentURN)
                 throws java.lang.Exception
Remote Interface method signalling whether an agent can start executing

Throws:
java.lang.Exception

startSubscription

public boolean startSubscription(ajanta.naming.URN agentURN)
                          throws java.lang.Exception
Remote Interface method signalling whether an agent can start subscribing

Throws:
java.lang.Exception

forceRun

public void forceRun(ajanta.naming.URN agentURN)
              throws java.lang.Exception
Remote Interface method indicating that an agent would like to start running even though it has not subscribed to all

Throws:
java.lang.Exception

getConfigHandleList

public java.util.Vector getConfigHandleList()
                                     throws java.lang.Exception
Remote Interface method to get a list of config handles from an SMSAgent

Throws:
java.lang.Exception

modifyDetectorOnAgent

public void modifyDetectorOnAgent(ajanta.naming.URN agentURN,
                                  java.lang.String eventDetector,
                                  java.lang.Object[] object)
                           throws java.lang.Exception
Remote Interface method to modify an agent's detector

Throws:
java.lang.Exception

removeSubscribeRelation

public void removeSubscribeRelation(ajanta.naming.URN publisherURN,
                                    ajanta.naming.URN subscriberURN,
                                    java.lang.String eventName)
                             throws java.lang.Exception
Remote Interface method to remove a subscription

Throws:
java.lang.Exception

removeDetectorOnAgent

public void removeDetectorOnAgent(ajanta.naming.URN agentURN,
                                  java.lang.String detectorName)
                           throws java.lang.Exception
Remote Interface method to remove a detector from an agent

Throws:
java.lang.Exception

terminateChildAgent

public void terminateChildAgent(ajanta.naming.URN agentURN)
                         throws java.lang.Exception
Remote Interface method to terminate an agent

Throws:
java.lang.Exception

abortConfig

public void abortConfig(java.lang.String configHandle)
                 throws java.lang.Exception
Remote Interface method to abort a configuration

Throws:
java.lang.Exception

registerForEvents

public void registerForEvents(java.lang.String configHandle,
                              java.lang.String url,
                              java.util.Vector eventList)
                       throws java.lang.Exception
Remote Interface method to get interesting events from the broker

Throws:
java.lang.Exception

unregisterForEvents

public void unregisterForEvents(java.lang.String configHandle,
                                java.lang.String url,
                                java.util.Vector v)
                         throws java.lang.Exception
Remote Interface method to get unregister receiving of events

Throws:
java.lang.Exception

test

public void test(java.lang.String e)
          throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

registerForHostStatusEvents

public void registerForHostStatusEvents(java.lang.String clientURL,
                                        java.util.Vector configHandles)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

unregisterForAllHostStatusEvents

public void unregisterForAllHostStatusEvents(java.lang.String clientURL)
                                      throws java.lang.Exception
Throws:
java.lang.Exception