java.lang.Object
jdk.crac.management.CRaCMXBeanImpl
- All Implemented Interfaces:
PlatformManagedObject
,CRaCMXBean
An implementation of the CRaCMXBean interface.
-
Field Summary
Fields declared in interface jdk.crac.management.CRaCMXBean
CRAC_MXBEAN_NAME
-
Method Summary
Modifier and TypeMethodDescriptionstatic CRaCMXBean
Returns an instance ofCRaCMXBeanImpl
.Returns anObjectName
instance representing the object name of this platform managed object.long
Returns the time when the JVM restore was initiated.long
Returns the time since the JVM restore was initiated.
-
Method Details
-
getInstance
Returns an instance ofCRaCMXBeanImpl
.- Returns:
- an instance of
CRaCMXBeanImpl
.
-
getUptimeSinceRestore
public long getUptimeSinceRestore()Returns the time since the JVM restore was initiated. Returns -1 if restore has not occurred.- Specified by:
getUptimeSinceRestore
in interfaceCRaCMXBean
- Returns:
- the number of in millseconds since restore, returns -1 if restore has not occurred.
-
getRestoreTime
public long getRestoreTime()Returns the time when the JVM restore was initiated. Returns -1 if restore has not occurred.- Specified by:
getRestoreTime
in interfaceCRaCMXBean
- Returns:
- the number of milliseconds since epoch, returns -1 if restore has not occurred.
-
getObjectName
Returns anObjectName
instance representing the object name of this platform managed object.- Specified by:
getObjectName
in interfacePlatformManagedObject
- Returns:
- an
ObjectName
instance representing the object name of this platform managed object.
-