org.ourgrid.common.fd
Class RMIMonitoringUnitFactory

java.lang.Object
  extended by org.ourgrid.common.fd.RMIMonitoringUnitFactory
All Implemented Interfaces:
MonitoringUnitFactory

public class RMIMonitoringUnitFactory
extends java.lang.Object
implements MonitoringUnitFactory

A Factory of MonitoringUnit classes. This factory returns MonitoringUnits sychronized RMI remote references when the getSynchronizedRemoteReference is called.


Constructor Summary
RMIMonitoringUnitFactory()
           
 
Method Summary
 MonitoringUnit createMonitoringUnit(GenericState initialState, java.lang.String monitorableAddress, java.lang.String monitorableIdentifier)
          The creates a new instance of MonitoringUnit class (or subclass)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMIMonitoringUnitFactory

public RMIMonitoringUnitFactory()
Method Detail

createMonitoringUnit

public MonitoringUnit createMonitoringUnit(GenericState initialState,
                                           java.lang.String monitorableAddress,
                                           java.lang.String monitorableIdentifier)
The creates a new instance of MonitoringUnit class (or subclass)

Specified by:
createMonitoringUnit in interface MonitoringUnitFactory
Parameters:
initialState - The MonitoringUnit initial state
monitorableAddress - The address of the MonitoringUnit to be created
monitorableIdentifier - An index name given by the Notifier when register it interests to the Monitorable. It will be used to notify that a stat has changed.
Returns:
A new instance of MonitoringUnit class (or subclass)