mx4j.tools.heartbeat
Class HeartBeatListener
java.lang.Object
|
+--mx4j.tools.heartbeat.HeartBeatListener
- All Implemented Interfaces:
- HeartBeatListenerControl, HeartBeatListenerMBean
- public class HeartBeatListener
- extends java.lang.Object
- implements HeartBeatListenerMBean, HeartBeatListenerControl
HeartbeatListener supports multiple observers listening to heartbeat
from multiple sources.
- Version:
- $Revision: 1.5 $
- Author:
- Michael Gorelik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HeartBeatListener
public HeartBeatListener(java.lang.String name)
processHeartBeat
public void processHeartBeat(java.lang.String heartBeatSource)
- Specified by:
processHeartBeat
in interface HeartBeatListenerMBean
getObjectName
public ObjectName getObjectName()
registerObserver
public void registerObserver(RemoteMBeanServer connector,
java.lang.Object connectorType,
java.lang.Object address,
java.lang.String heartBeatCanonName,
NotificationListener observer)
throws MalformedObjectNameException,
InstanceNotFoundException,
MBeanException,
ReflectionException,
java.rmi.RemoteException
- Add this listener to a remote heartbeat source and register application to
receive heart beat failure notification from HeartBeatListener.
- Specified by:
registerObserver
in interface HeartBeatListenerControl
unregisterObserver
public void unregisterObserver(java.lang.String sourceCanonName,
NotificationListener observer)
- Removes the specified heartbeat observer.
- Specified by:
unregisterObserver
in interface HeartBeatListenerControl
stop
public void stop()
Copyright © 2001-2002 MX4J Team. All Rights Reserved.