konark.manager
Class RMIProxy
java.lang.Object
   java.rmi.server.RemoteObject
java.rmi.server.RemoteObject
       java.rmi.server.RemoteServer
java.rmi.server.RemoteServer
           java.rmi.server.UnicastRemoteObject
java.rmi.server.UnicastRemoteObject
               konark.manager.RMIProxy
konark.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
 
| Fields inherited from class java.rmi.server.RemoteObject | 
| ref | 
 
 
| 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 | 
 
RMIProxy
public RMIProxy()
         throws java.rmi.RemoteException
deleteEvent
public void deleteEvent(java.lang.String eventClassName)
                 throws java.rmi.RemoteException
- 
- Specified by:
- deleteEventin 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:
- addEventin 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:
- addEventin 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:
- deleteSubscriberin 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:
- addSubscriberin interface- Monitor
 
- 
- Parameters:
- eventClassName-
- subscriberList-
- Throws:
- java.rmi.RemoteException
 
removeDetector
public void removeDetector(java.lang.String eventDetector)
                    throws java.rmi.RemoteException
- 
- Specified by:
- removeDetectorin interface- Monitor
 
- 
- Parameters:
- eventDetector-
- Throws:
- java.rmi.RemoteException
 
addEventHandler
public void addEventHandler(java.lang.String eventClassName,
                            EventHandler eh)
                     throws java.rmi.RemoteException
- 
- Specified by:
- addEventHandlerin 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:
- replaceEventHandlerin 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:
- addEventDetectorin 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:
- replaceEventDetectorin 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:
- modifyDetectorin interface- Monitor
 
- 
- Parameters:
- eventClassName-
- object-
- Throws:
- java.rmi.RemoteException
 
printRunningThreads
public void printRunningThreads()
                         throws java.rmi.RemoteException
- 
- Specified by:
- printRunningThreadsin interface- Monitor
 
- 
- Throws:
- java.rmi.RemoteException
 
switchOffPrintRunningThreads
public void switchOffPrintRunningThreads()
                                  throws java.rmi.RemoteException
- 
- Specified by:
- switchOffPrintRunningThreadsin interface- Monitor
 
- 
- Throws:
- java.rmi.RemoteException
 
restoreDetector
public void restoreDetector(EventDetector detector,
                            EventHandler handler)
                     throws java.rmi.RemoteException
- 
- Specified by:
- restoreDetectorin interface- Monitor
 
- 
- Throws:
- java.rmi.RemoteException
 
setAlarmLevel
public void setAlarmLevel(java.lang.String eventClassName,
                          int alarmLevel)
                   throws java.rmi.RemoteException
- 
- Specified by:
- setAlarmLevelin 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:
- setAlertLevelin interface- Monitor
 
- 
- Parameters:
- eventClassName-
- alertLevel-
- Throws:
- java.rmi.RemoteException
 
stopAgent
public void stopAgent()
               throws java.rmi.RemoteException
- 
- Specified by:
- stopAgentin interface- Monitor
 
- 
- Throws:
- java.rmi.RemoteException
 
report
public void report(Event event)
            throws java.rmi.RemoteException
- 
- Specified by:
- reportin 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:
- addSubscriptionin 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:
- removeSubscriptionin interface- Subscriber
 
- 
- Throws:
- java.rmi.RemoteException
 
resubscribe
public void resubscribe(ajanta.naming.URN monitorURN)
                 throws java.rmi.RemoteException
- 
- Specified by:
- resubscribein 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:
- subscribeEventin 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:
- subscribeEventin 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:
- unsubscribeEventin interface- Subscriber
 
- 
- Throws:
- java.rmi.RemoteException
- remoteConfigException