|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.common.fd.FakeMonitoringUnitFactory
public class FakeMonitoringUnitFactory
Fake class used to test
Constructor Summary | |
---|---|
FakeMonitoringUnitFactory()
|
Method Summary | |
---|---|
MonitoringUnit |
createMonitoringUnit(GenericState initialState,
java.lang.String monitorableAddress,
java.lang.String monitorableIdentifier)
The creates a new instance of MonitoringUnit class (or
subclass) |
void |
setMonitorable(java.lang.String identifier,
Monitorable monitorable)
Method used to set behaviour of the factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FakeMonitoringUnitFactory()
Method Detail |
---|
public MonitoringUnit createMonitoringUnit(GenericState initialState, java.lang.String monitorableAddress, java.lang.String monitorableIdentifier)
MonitoringUnitFactory
MonitoringUnit
class (or
subclass)
createMonitoringUnit
in interface MonitoringUnitFactory
initialState
- monitorableAddress
- 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.
public void setMonitorable(java.lang.String identifier, Monitorable monitorable)
Monitorable
reference in a Map
that uses
like key the address.
identifier
- The address The keymonitorable
- The monitorable reference
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |