org.ourgrid.mygrid.fd
Class MyGridFailureDetector

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.ourgrid.common.rmi.OurgridUnicastRemoteObject
                  extended by org.ourgrid.common.fd.AbstractFailureDetector
                      extended by org.ourgrid.mygrid.fd.MyGridFailureDetector
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, Shutdownable, Monitor, Monitorable

public class MyGridFailureDetector
extends AbstractFailureDetector

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ourgrid.common.fd.AbstractFailureDetector
BOUND_NAME, DEFAULT_PROTOCOL
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
MyGridFailureDetector(int queryFrequence)
           
MyGridFailureDetector(MonitoringUnitFactory monitoringUnitFactory)
           
 
Method Summary
 GenericState getCurrentState()
          Retrieves the monitorable current status.
 
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
 

Constructor Detail

MyGridFailureDetector

public MyGridFailureDetector(MonitoringUnitFactory monitoringUnitFactory)
                      throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

MyGridFailureDetector

public MyGridFailureDetector(int queryFrequence)
                      throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

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.