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, RMI_REGISTRY_PORT
-
-
Constructor Summary
Constructors Constructor Description DiagStatusServiceMBeanImpl(DiagStatusService diagStatusService, SystemReadyMonitor systemReadyMonitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
acquireServiceStatus()
String
acquireServiceStatusAsJSON()
String
acquireServiceStatusAsJSON(String outputType)
Deprecated.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
-
-
-
-
Constructor Detail
-
DiagStatusServiceMBeanImpl
@Inject public DiagStatusServiceMBeanImpl(DiagStatusService diagStatusService, SystemReadyMonitor systemReadyMonitor) throws JMException
- Throws:
JMException
-
-
Method Detail
-
close
@PreDestroy public void close() throws IOException, MalformedObjectNameException, InstanceNotFoundException, MBeanRegistrationException
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
MalformedObjectNameException
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
@Deprecated public String acquireServiceStatusAsJSON(String outputType)
Deprecated.- Specified by:
acquireServiceStatusAsJSON
in interfaceDiagStatusServiceMBean
-
acquireServiceStatusAsJSON
public String acquireServiceStatusAsJSON()
- Specified by:
acquireServiceStatusAsJSON
in interfaceDiagStatusServiceMBean
-
-