@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()
SystemReadyMonitorMXBeangetSystemState in interface SystemReadyMonitorMXBeanpublic String getFailureCause()
SystemReadyMonitorMXBeanSystemState.FAILURE.getFailureCause in interface SystemReadyMonitorMXBeanpublic void registerListener(SystemReadyListener listener)
SystemReadyMonitorregisterListener in interface SystemReadyMonitorCopyright © 2019 OpenDaylight. All rights reserved.