Class TestSystemReadyMonitor
- java.lang.Object
 - 
- org.opendaylight.infrautils.ready.testutils.TestSystemReadyMonitor
 
 
- 
- All Implemented Interfaces:
 SystemReadyMonitor,SystemReadyMonitorMXBean
public class TestSystemReadyMonitor extends Object implements SystemReadyMonitor
SystemReadyMonitorimplementation suitable for tests. TheTestSystemReadyMonitor.Behaviourselects what it actually does.- Author:
 - Michael Vorburger.ch
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestSystemReadyMonitor.Behaviour 
- 
Constructor Summary
Constructors Constructor Description TestSystemReadyMonitor(TestSystemReadyMonitor.Behaviour behaviour) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFailureCause()Obtain the cause of aSystemState.FAILURE.SystemStategetSystemState()Obtain current system status as one of few possible enumerated values.voidregisterListener(SystemReadyListener listener)Allows components to register a listener which will be notified when the system ready state is changing. 
 - 
 
- 
- 
Constructor Detail
- 
TestSystemReadyMonitor
public TestSystemReadyMonitor(TestSystemReadyMonitor.Behaviour behaviour)
 
 - 
 
- 
Method Detail
- 
registerListener
public void registerListener(SystemReadyListener listener)
Description copied from interface:SystemReadyMonitorAllows components to register a listener which will be notified when the system ready state is changing.- Specified by:
 registerListenerin interfaceSystemReadyMonitor
 
- 
getSystemState
public SystemState getSystemState()
Description copied from interface:SystemReadyMonitorMXBeanObtain current system status as one of few possible enumerated values.- Specified by:
 getSystemStatein interfaceSystemReadyMonitorMXBean
 
- 
getFailureCause
public String getFailureCause()
Description copied from interface:SystemReadyMonitorMXBeanObtain the cause of aSystemState.FAILURE.- Specified by:
 getFailureCausein interfaceSystemReadyMonitorMXBean
 
 - 
 
 -