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)
SystemReadyMonitor
registerListener
in interface SystemReadyMonitor
public SystemState getSystemState()
SystemReadyMonitorMXBean
getSystemState
in interface SystemReadyMonitorMXBean
public String getFailureCause()
SystemReadyMonitorMXBean
SystemState.FAILURE
.getFailureCause
in interface SystemReadyMonitorMXBean
public void ready()
protected void setSystemState(SystemState state)
protected void setSystemFailureCause(Throwable cause)
Copyright © 2019 OpenDaylight. All rights reserved.