konark.manager
Class RMIProxy

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended bykonark.manager.RMIProxy
All Implemented Interfaces:
Monitor, java.rmi.Remote, java.io.Serializable, Subscriber

public abstract class RMIProxy
extends java.rmi.server.UnicastRemoteObject
implements Monitor

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RMIProxy()
           
 
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 addSubscription(java.util.Vector eventList, ajanta.naming.URN agURN)
           
 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 removeSubscription(ajanta.naming.URN monitorURN, java.lang.String event)
           
 void replaceEventDetector(java.lang.String eventClassName, EventDetector ed)
           
 void replaceEventHandler(java.lang.String eventClassName, EventHandler eh)
           
 void report(Event event)
           
 void restoreDetector(EventDetector detector, EventHandler handler)
           
 void resubscribe(ajanta.naming.URN monitorURN)
           
 void setAlarmLevel(java.lang.String eventClassName, int alarmLevel)
           
 void setAlertLevel(java.lang.String eventClassName, int alertLevel)
           
 void stopAgent()
           
 void subscribeEvent(java.lang.String eventClassName, ajanta.naming.URN subscriber)
           
 void subscribeEvent(java.lang.String eventClassName, ajanta.naming.URN subscriber, java.util.Hashtable filterTable)
           
 void switchOffPrintRunningThreads()
           
 void unsubscribeEvent(java.lang.String eventClassName, ajanta.naming.URN subscriber)
           
 
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

RMIProxy

public RMIProxy()
         throws java.rmi.RemoteException
Method Detail

deleteEvent

public void deleteEvent(java.lang.String eventClassName)
                 throws java.rmi.RemoteException
Specified by:
deleteEvent in interface Monitor
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
Specified by:
addEvent in interface Monitor
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
Specified by:
addEvent in interface Monitor
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
Specified by:
deleteSubscriber in interface Monitor
Parameters:
eventClassName -
subscriberList -
Throws:
java.rmi.RemoteException

addSubscriber

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

removeDetector

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

addEventHandler

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

replaceEventHandler

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

addEventDetector

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

replaceEventDetector

public void replaceEventDetector(java.lang.String eventClassName,
                                 EventDetector ed)
                          throws java.rmi.RemoteException
Specified by:
replaceEventDetector in interface Monitor
Parameters:
eventClassName -
ed -
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 -
Throws:
java.rmi.RemoteException

printRunningThreads

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

switchOffPrintRunningThreads

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

restoreDetector

public void restoreDetector(EventDetector detector,
                            EventHandler handler)
                     throws java.rmi.RemoteException
Specified by:
restoreDetector in interface Monitor
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 -
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 -
alertLevel -
Throws:
java.rmi.RemoteException

stopAgent

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

report

public void report(Event event)
            throws java.rmi.RemoteException
Specified by:
report in interface Subscriber
Parameters:
event -
Throws:
java.rmi.RemoteException

addSubscription

public void addSubscription(java.util.Vector eventList,
                            ajanta.naming.URN agURN)
                     throws java.rmi.RemoteException,
                            remoteConfigException
Specified by:
addSubscription in interface Subscriber
Throws:
java.rmi.RemoteException
remoteConfigException

removeSubscription

public void removeSubscription(ajanta.naming.URN monitorURN,
                               java.lang.String event)
                        throws java.rmi.RemoteException
Specified by:
removeSubscription in interface Subscriber
Throws:
java.rmi.RemoteException

resubscribe

public void resubscribe(ajanta.naming.URN monitorURN)
                 throws java.rmi.RemoteException
Specified by:
resubscribe in interface Subscriber
Throws:
java.rmi.RemoteException

subscribeEvent

public void subscribeEvent(java.lang.String eventClassName,
                           ajanta.naming.URN subscriber)
                    throws java.rmi.RemoteException,
                           remoteConfigException
Specified by:
subscribeEvent in interface Subscriber
Throws:
java.rmi.RemoteException
remoteConfigException

subscribeEvent

public void subscribeEvent(java.lang.String eventClassName,
                           ajanta.naming.URN subscriber,
                           java.util.Hashtable filterTable)
                    throws java.rmi.RemoteException,
                           remoteConfigException
Specified by:
subscribeEvent in interface Subscriber
Throws:
java.rmi.RemoteException
remoteConfigException

unsubscribeEvent

public void unsubscribeEvent(java.lang.String eventClassName,
                             ajanta.naming.URN subscriber)
                      throws java.rmi.RemoteException,
                             remoteConfigException
Specified by:
unsubscribeEvent in interface Subscriber
Throws:
java.rmi.RemoteException
remoteConfigException