org.ourgrid.common.fd
Class FakeMonitorable

java.lang.Object
  extended by org.ourgrid.common.fd.FakeMonitorable
All Implemented Interfaces:
java.rmi.Remote, Monitorable

public class FakeMonitorable
extends java.lang.Object
implements Monitorable


Constructor Summary
FakeMonitorable(GenericState state, java.lang.String monitorableName)
           
 
Method Summary
 GenericState getCurrentState()
          Retrieves the monitorable current status.
 double getEncarnationNumber()
          Return an unique identifier of the Monitorable session.
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeMonitorable

public FakeMonitorable(GenericState state,
                       java.lang.String monitorableName)
Method Detail

getName

public java.lang.String getName()
                         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
Returns:
the Monitorable state.
Throws:
java.rmi.RemoteException - if anything wrong occurs in communication.

getEncarnationNumber

public double getEncarnationNumber()
                            throws java.rmi.RemoteException
Description copied from interface: Monitorable
Return an unique identifier of the Monitorable session.

Specified by:
getEncarnationNumber in interface Monitorable
Returns:
a unique identifier of the Monitorable session.
Throws:
java.rmi.RemoteException - if anything wrong occurs in communication.