org.ourgrid.common.fd
Interface MonitoringUnitFactory

All Known Implementing Classes:
FakeMonitoringUnitFactory, RMIMonitoringUnitFactory

public interface MonitoringUnitFactory

A Factory of MonitoringUnit classes.


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

Method Detail

createMonitoringUnit

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

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)