org.ourgrid.corepeer.fd
Class CorePeerFailureDetector
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.ourgrid.common.rmi.OurgridUnicastRemoteObject
org.ourgrid.common.fd.AbstractFailureDetector
org.ourgrid.corepeer.fd.CorePeerFailureDetector
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, Shutdownable, Monitor, Monitorable
- Direct Known Subclasses:
- FakeFailureDetector
public class CorePeerFailureDetector
- extends AbstractFailureDetector
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Methods inherited from class org.ourgrid.common.fd.AbstractFailureDetector |
getEncarnationNumber, getFailureDetectorAddress, getMonitorables, pingNow, register, register, setMonitorableState, shutdown, startMonitoring, unregister, unregister |
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 |
CorePeerFailureDetector
public CorePeerFailureDetector(MonitoringUnitFactory monitoringUnitFactory)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
CorePeerFailureDetector
public CorePeerFailureDetector(int queryFrequence)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getCurrentState
public GenericState getCurrentState()
throws java.rmi.RemoteException
- Description copied from interface:
Monitorable
- Retrieves the monitorable current status.
- Specified by:
getCurrentState
in interface Monitorable
- Specified by:
getCurrentState
in class AbstractFailureDetector
- Returns:
- the
Monitorable
state.
- Throws:
java.rmi.RemoteException
- if anything wrong occurs in communication.