network.manager
Class MonitorProxy

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended bynetwork.manager.MonitorProxy
All Implemented Interfaces:
Monitor, java.rmi.Remote, java.io.Serializable
Direct Known Subclasses:
SubscriberProxy

public class MonitorProxy
extends java.rmi.server.UnicastRemoteObject
implements Monitor

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
MonitorProxy(Monitor a)
           
 
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 eventName, EventDetector ed)
           
 void addEventHandler(java.lang.String eventName, EventHandler eh)
           
 void addSubscriber(java.lang.String eventName, java.util.Vector subscriberList)
           
 void deleteEvent(java.lang.String eventName)
           
 void deleteSubscriber(java.lang.String eventName, 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 eventName, EventDetector ed)
           
 void replaceEventHandler(java.lang.String eventName, 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 subscribeEvent(java.lang.String eventName, ajanta.naming.URN subscriber)
           
 void switchOffPrintRunningThreads()
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MonitorProxy

public MonitorProxy(Monitor a)
             throws java.rmi.RemoteException
Method Detail

deleteEvent

public void deleteEvent(java.lang.String eventName)
                 throws java.rmi.RemoteException
Specified by:
deleteEvent in interface Monitor
Parameters:
eventName -
Returns:
Throws:
java.rmi.RemoteException

addEvent

public void addEvent(EventDetector ed,
                     EventHandler eh,
                     java.util.Vector subscriberList)
              throws java.rmi.RemoteException,
                     java.rmi.AlreadyBoundException
Specified by:
addEvent in interface Monitor
Parameters:
ed -
eh -
subscriberList -
Returns:
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
Specified by:
addEvent in interface Monitor
Parameters:
eh -
subscriberList -
eventClassName -
Returns:
Throws:
java.rmi.RemoteException
java.rmi.AlreadyBoundException

subscribeEvent

public void subscribeEvent(java.lang.String eventName,
                           ajanta.naming.URN subscriber)
                    throws java.rmi.RemoteException
Specified by:
subscribeEvent in interface Monitor
Parameters:
eventName -
subscriber -
Returns:
Throws:
java.rmi.RemoteException

deleteSubscriber

public void deleteSubscriber(java.lang.String eventName,
                             java.util.Vector subscriberList)
                      throws java.rmi.RemoteException
Specified by:
deleteSubscriber in interface Monitor
Parameters:
eventName -
subscriberList -
Returns:
Throws:
java.rmi.RemoteException

addSubscriber

public void addSubscriber(java.lang.String eventName,
                          java.util.Vector subscriberList)
                   throws java.rmi.RemoteException
Specified by:
addSubscriber in interface Monitor
Parameters:
eventName -
subscriberList -
Returns:
Throws:
java.rmi.RemoteException

addEventHandler

public void addEventHandler(java.lang.String eventName,
                            EventHandler eh)
                     throws java.rmi.RemoteException
Specified by:
addEventHandler in interface Monitor
Parameters:
eventName -
eh -
Returns:
Throws:
java.rmi.RemoteException

replaceEventHandler

public void replaceEventHandler(java.lang.String eventName,
                                EventHandler eh)
                         throws java.rmi.RemoteException
Specified by:
replaceEventHandler in interface Monitor
Parameters:
eventName -
eh -
Returns:
Throws:
java.rmi.RemoteException

addEventDetector

public void addEventDetector(java.lang.String eventName,
                             EventDetector ed)
                      throws java.rmi.RemoteException
Specified by:
addEventDetector in interface Monitor
Parameters:
eventName -
ed -
Returns:
Throws:
java.rmi.RemoteException

replaceEventDetector

public void replaceEventDetector(java.lang.String eventName,
                                 EventDetector ed)
                          throws java.rmi.RemoteException
Specified by:
replaceEventDetector in interface Monitor
Parameters:
eventName -
ed -
Returns:
Throws:
java.rmi.RemoteException

modifyDetector

public void modifyDetector(java.lang.String eventClassName,
                           java.lang.Object[] object)
                    throws java.rmi.RemoteException
Specified by:
modifyDetector in interface Monitor
Parameters:
eventClassName -
object -
Returns:
Throws:
java.rmi.RemoteException

printRunningThreads

public void printRunningThreads()
                         throws java.rmi.RemoteException
Specified by:
printRunningThreads in interface Monitor
Returns:
Throws:
java.rmi.RemoteException

switchOffPrintRunningThreads

public void switchOffPrintRunningThreads()
                                  throws java.rmi.RemoteException
Specified by:
switchOffPrintRunningThreads in interface Monitor
Returns:
Throws:
java.rmi.RemoteException

restoreDetector

public void restoreDetector(EventDetector detector,
                            EventHandler handler)
                     throws java.rmi.RemoteException
Specified by:
restoreDetector in interface Monitor
Parameters:
detector -
handler -
Returns:
Throws:
java.rmi.RemoteException

removeDetector

public void removeDetector(java.lang.String eventDetector)
                    throws java.rmi.RemoteException
Specified by:
removeDetector in interface Monitor
Parameters:
eventDetector -
Returns:
Throws:
java.rmi.RemoteException

setAlarmLevel

public void setAlarmLevel(java.lang.String eventClassName,
                          int alarmLevel)
                   throws java.rmi.RemoteException
Specified by:
setAlarmLevel in interface Monitor
Parameters:
eventClassName -
alarmLevel -
Returns:
Throws:
java.rmi.RemoteException

setAlertLevel

public void setAlertLevel(java.lang.String eventClassName,
                          int alertLevel)
                   throws java.rmi.RemoteException
Specified by:
setAlertLevel in interface Monitor
Parameters:
eventClassName -
Returns:
Throws:
java.rmi.RemoteException

stopAgent

public void stopAgent()
               throws java.rmi.RemoteException
Specified by:
stopAgent in interface Monitor
Returns:
Throws:
java.rmi.RemoteException