public class TestSystemReadyMonitor extends Object implements SystemReadyMonitor
SystemReadyMonitor
implementation suitable for tests.
The TestSystemReadyMonitor.Behaviour
selects what it actually does.Modifier and Type | Class and Description |
---|---|
static class |
TestSystemReadyMonitor.Behaviour |
Constructor and Description |
---|
TestSystemReadyMonitor(TestSystemReadyMonitor.Behaviour behaviour) |
Modifier and Type | Method and Description |
---|---|
String |
getFailureCause()
Obtain the cause of a
SystemState.FAILURE . |
SystemState |
getSystemState()
Obtain current system status as one of few possible enumerated values.
|
void |
registerListener(SystemReadyListener listener)
Allows components to register a listener which will be notified when the
system ready state is changing.
|
public TestSystemReadyMonitor(TestSystemReadyMonitor.Behaviour behaviour)
public void registerListener(SystemReadyListener listener)
SystemReadyMonitor
registerListener
in interface SystemReadyMonitor
public SystemState getSystemState()
SystemReadyMonitorMXBean
getSystemState
in interface SystemReadyMonitorMXBean
public String getFailureCause()
SystemReadyMonitorMXBean
SystemState.FAILURE
.getFailureCause
in interface SystemReadyMonitorMXBean
Copyright © 2019 OpenDaylight. All rights reserved.