public class SimpleSystemReadyMonitor extends Object implements SystemReadyMonitor
SystemReadyMonitor implementation for a "simple" (standalone, Java SE) environment.
 Also used as the base class for the Karaf/OSGi specific implementation.| Constructor and Description | 
|---|
| SimpleSystemReadyMonitor() | 
| 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 | ready() | 
| void | registerListener(SystemReadyListener listener)Allows components to register a listener which will be notified when the
 system ready state is changing. | 
| protected void | setSystemFailureCause(Throwable cause) | 
| protected void | setSystemState(SystemState state) | 
public void registerListener(SystemReadyListener listener)
SystemReadyMonitorregisterListener in interface SystemReadyMonitorpublic SystemState getSystemState()
SystemReadyMonitorMXBeangetSystemState in interface SystemReadyMonitorMXBeanpublic String getFailureCause()
SystemReadyMonitorMXBeanSystemState.FAILURE.getFailureCause in interface SystemReadyMonitorMXBeanpublic void ready()
protected void setSystemState(SystemState state)
protected void setSystemFailureCause(Throwable cause)
Copyright © 2019 OpenDaylight. All rights reserved.