konark.manager
Interface Monitor

All Superinterfaces:
java.rmi.Remote, Subscriber
All Known Subinterfaces:
SMSAgentInterface
All Known Implementing Classes:
BasicItineraryAgent, MonitoringAgent, MonitorProxy, RMIProxy, SMSAgent, SMSAgentInterfaceProxy

public interface Monitor
extends Subscriber


Method Summary
 void addEvent(EventDetector ed, EventHandler eh, java.util.Vector subscriberList)
           
 void addEvent(java.lang.String eventClassName, EventHandler eh, java.util.Vector subscriberList)
           
 void addEventDetector(java.lang.String eventClassName, EventDetector ed)
           
 void addEventHandler(java.lang.String eventClassName, EventHandler eh)
           
 void addSubscriber(java.lang.String eventClassName, java.util.Vector subscriberList)
           
 void deleteEvent(java.lang.String eventClassName)
           
 void deleteSubscriber(java.lang.String eventClassName, java.util.Vector subscriberList)
           
 void modifyDetector(java.lang.String eventClassName, java.lang.Object[] object)
           
 void printRunningThreads()
           
 void removeDetector(java.lang.String eventDetector)
           
 void replaceEventDetector(java.lang.String eventClassName, EventDetector ed)
           
 void replaceEventHandler(java.lang.String eventClassName, EventHandler eh)
           
 void restoreDetector(EventDetector detector, EventHandler handler)
           
 void setAlarmLevel(java.lang.String eventClassName, int alarmLevel)
           
 void setAlertLevel(java.lang.String eventClassName, int alertLevel)
           
 void stopAgent()
           
 void switchOffPrintRunningThreads()
           
 
Methods inherited from interface konark.manager.Subscriber
addSubscription, removeSubscription, report, resubscribe, subscribeEvent, subscribeEvent, unsubscribeEvent
 

Method Detail

deleteEvent

public void deleteEvent(java.lang.String eventClassName)
                 throws java.rmi.RemoteException
Parameters:
eventClassName -
Throws:
java.rmi.RemoteException

addEvent

public void addEvent(EventDetector ed,
                     EventHandler eh,
                     java.util.Vector subscriberList)
              throws java.rmi.RemoteException,
                     java.rmi.AlreadyBoundException
Parameters:
ed - Event Detector to be installed on the agent.
Throws:
java.rmi.RemoteException
java.rmi.AlreadyBoundException

addEvent

public void addEvent(java.lang.String eventClassName,
                     EventHandler eh,
                     java.util.Vector subscriberList)
              throws java.rmi.RemoteException,
                     java.rmi.AlreadyBoundException
Parameters:
eventClassName -
Throws:
java.rmi.RemoteException
java.rmi.AlreadyBoundException

deleteSubscriber

public void deleteSubscriber(java.lang.String eventClassName,
                             java.util.Vector subscriberList)
                      throws java.rmi.RemoteException
Parameters:
eventClassName -
subscriberList -
Throws:
java.rmi.RemoteException

addSubscriber

public void addSubscriber(java.lang.String eventClassName,
                          java.util.Vector subscriberList)
                   throws java.rmi.RemoteException
Parameters:
eventClassName -
subscriberList -
Throws:
java.rmi.RemoteException

removeDetector

public void removeDetector(java.lang.String eventDetector)
                    throws java.rmi.RemoteException
Parameters:
eventDetector -
Throws:
java.rmi.RemoteException

addEventHandler

public void addEventHandler(java.lang.String eventClassName,
                            EventHandler eh)
                     throws java.rmi.RemoteException
Parameters:
eventClassName -
eh -
Throws:
java.rmi.RemoteException

replaceEventHandler

public void replaceEventHandler(java.lang.String eventClassName,
                                EventHandler eh)
                         throws java.rmi.RemoteException
Parameters:
eventClassName -
eh -
Throws:
java.rmi.RemoteException

addEventDetector

public void addEventDetector(java.lang.String eventClassName,
                             EventDetector ed)
                      throws java.rmi.RemoteException
Parameters:
eventClassName -
ed -
Throws:
java.rmi.RemoteException

replaceEventDetector

public void replaceEventDetector(java.lang.String eventClassName,
                                 EventDetector ed)
                          throws java.rmi.RemoteException
Parameters:
eventClassName -
ed -
Throws:
java.rmi.RemoteException

modifyDetector

public void modifyDetector(java.lang.String eventClassName,
                           java.lang.Object[] object)
                    throws java.rmi.RemoteException
Parameters:
eventClassName -
object -
Throws:
java.rmi.RemoteException

printRunningThreads

public void printRunningThreads()
                         throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

switchOffPrintRunningThreads

public void switchOffPrintRunningThreads()
                                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

restoreDetector

public void restoreDetector(EventDetector detector,
                            EventHandler handler)
                     throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setAlarmLevel

public void setAlarmLevel(java.lang.String eventClassName,
                          int alarmLevel)
                   throws java.rmi.RemoteException
Parameters:
eventClassName -
alarmLevel -
Throws:
java.rmi.RemoteException

setAlertLevel

public void setAlertLevel(java.lang.String eventClassName,
                          int alertLevel)
                   throws java.rmi.RemoteException
Parameters:
eventClassName -
alertLevel -
Throws:
java.rmi.RemoteException

stopAgent

public void stopAgent()
               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException