Class DiagStatusServiceMBeanImpl
- java.lang.Object
-
- javax.management.StandardMBean
-
- org.opendaylight.infrautils.diagstatus.internal.DiagStatusServiceMBeanImpl
-
- All Implemented Interfaces:
AutoCloseable
,DynamicMBean
,MBeanRegistration
,DiagStatusServiceMBean
@Singleton public class DiagStatusServiceMBeanImpl extends StandardMBean implements DiagStatusServiceMBean, AutoCloseable
-
-
Field Summary
-
Fields inherited from interface org.opendaylight.infrautils.diagstatus.DiagStatusServiceMBean
JMX_OBJECT_NAME
-
-
Constructor Summary
Constructors Constructor Description DiagStatusServiceMBeanImpl(DiagStatusService diagStatusService, SystemReadyMonitor systemReadyMonitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
acquireServiceStatus()
String
acquireServiceStatusAsJSON()
String
acquireServiceStatusBrief()
String
acquireServiceStatusDetailed()
Map<String,String>
acquireServiceStatusMap()
void
close()
-
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.infrautils.diagstatus.DiagStatusServiceMBean
acquireServiceStatusAsJSON
-
-
-
-
Constructor Detail
-
DiagStatusServiceMBeanImpl
@Inject public DiagStatusServiceMBeanImpl(DiagStatusService diagStatusService, SystemReadyMonitor systemReadyMonitor) throws JMException
- Throws:
JMException
-
-
Method Detail
-
close
@PreDestroy public void close() throws InstanceNotFoundException, MBeanRegistrationException
- Specified by:
close
in interfaceAutoCloseable
- Throws:
InstanceNotFoundException
MBeanRegistrationException
-
acquireServiceStatus
public String acquireServiceStatus()
- Specified by:
acquireServiceStatus
in interfaceDiagStatusServiceMBean
-
acquireServiceStatusDetailed
public String acquireServiceStatusDetailed()
- Specified by:
acquireServiceStatusDetailed
in interfaceDiagStatusServiceMBean
-
acquireServiceStatusBrief
public String acquireServiceStatusBrief()
- Specified by:
acquireServiceStatusBrief
in interfaceDiagStatusServiceMBean
-
acquireServiceStatusMap
public Map<String,String> acquireServiceStatusMap()
- Specified by:
acquireServiceStatusMap
in interfaceDiagStatusServiceMBean
-
acquireServiceStatusAsJSON
public String acquireServiceStatusAsJSON()
- Specified by:
acquireServiceStatusAsJSON
in interfaceDiagStatusServiceMBean
-
-