java.lang.Object
jdk.crac.management.internal.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 CRaCMXBeanReturns an instance ofCRaCMXBeanImpl.Returns anObjectNameinstance representing the object name of this platform managed object.longReturns the time when the JVM restore was initiated.longReturns 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:
getUptimeSinceRestorein 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:
getRestoreTimein interfaceCRaCMXBean- Returns:
- the number of milliseconds since epoch, returns -1 if restore has not occurred.
-
getObjectName
Returns anObjectNameinstance representing the object name of this platform managed object.- Specified by:
getObjectNamein interfacePlatformManagedObject- Returns:
- an
ObjectNameinstance representing the object name of this platform managed object.
-