@Singleton @OsgiServiceProvider(classes=SystemReadyMonitor.class) public class SystemReadyImpl extends AbstractMXBean implements SystemReadyMonitor, Runnable
BASE_JMX_PREFIX
Constructor and Description |
---|
SystemReadyImpl(org.osgi.framework.BundleContext bundleContext,
org.apache.karaf.bundle.core.BundleService bundleService) |
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 |
init() |
void |
registerListener(SystemReadyListener listener)
Allows components to register a listener which will be notified when the
system ready state is changing.
|
void |
run() |
void |
stop() |
getMBeanCategory, getMBeanName, getMBeanType, invokeMBeanFunction, readMBeanAttribute, register, registerMBean, unregister, unregisterMBean
@Inject public SystemReadyImpl(org.osgi.framework.BundleContext bundleContext, org.apache.karaf.bundle.core.BundleService bundleService) throws JMException
JMException
@PostConstruct public void init()
@PreDestroy public void stop() throws MalformedObjectNameException, InstanceNotFoundException, MBeanRegistrationException
public SystemState getSystemState()
SystemReadyMonitorMXBean
getSystemState
in interface SystemReadyMonitorMXBean
public String getFailureCause()
SystemReadyMonitorMXBean
SystemState.FAILURE
.getFailureCause
in interface SystemReadyMonitorMXBean
public void registerListener(SystemReadyListener listener)
SystemReadyMonitor
registerListener
in interface SystemReadyMonitor
Copyright © 2019 OpenDaylight. All rights reserved.