javax.management.DynamicMBean
, javax.management.MBeanRegistration
, javax.management.NotificationBroadcaster
, RuntimeMBean
, WebLogicMBean
public interface ClassRedefinitionRuntimeMBean extends RuntimeMBean
This interface provides functionality to monitor the class redefinition process. It also provides methods to explicitly initiate class redefinition.
Modifier and Type | Method | Description |
---|---|---|
int |
getClassRedefinitionCount() |
Number of class redefinitions executed so far.
|
ClassRedefinitionTaskRuntimeMBean[] |
getClassRedefinitionTasks() |
Return the array of class redefinition tasks.
|
int |
getFailedClassRedefinitionCount() |
Number of failed redefinition operations since the application
was deployed.
|
int |
getProcessedClassesCount() |
Number of classes processed since the application was deployed.
|
long |
getTotalClassRedefinitionTime() |
Total time spent processing classes, in nano seconds since the
application was deployed.
|
ClassRedefinitionTaskRuntimeMBean |
redefineClasses() |
Initiate a class redefinition cycle, which will identify classes which
may have changed and then attempt to redefine them.
|
ClassRedefinitionTaskRuntimeMBean |
redefineClasses(java.lang.String moduleName,
java.lang.String[] classNames) |
Initiate a class redefinition cycle, to redefine only the specified
classes from given module.
|
getAttribute, getAttributes, invoke, setAttribute, setAttributes
postDeregister, postRegister, preRegister
addNotificationListener, getNotificationInfo, removeNotificationListener
addPropertyChangeListener, removePropertyChangeListener
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParent
int getClassRedefinitionCount()
Number of class redefinitions executed so far.
int getFailedClassRedefinitionCount()
Number of failed redefinition operations since the application was deployed.
int getProcessedClassesCount()
Number of classes processed since the application was deployed.
long getTotalClassRedefinitionTime()
Total time spent processing classes, in nano seconds since the application was deployed.
ClassRedefinitionTaskRuntimeMBean redefineClasses() throws ManagementException
Initiate a class redefinition cycle, which will identify classes which may have changed and then attempt to redefine them. Class redefinition will be performed asynchronously. The progress of the class redefinition process can be monitored with the returned task.
ManagementException
ClassRedefinitionTaskRuntimeMBean redefineClasses(java.lang.String moduleName, java.lang.String[] classNames) throws ManagementException
Initiate a class redefinition cycle, to redefine only the specified classes from given module. Class redefinition will be performed asynchronously. The progress of the class redefinition process can be monitored with the returned task. If specified module name is null, any classes within the application (scoped to any modules as well as globally scoped classes) which are included in the list will be redefined.
moduleName
- Module from which the classes are to be redefined.classNames
- Classes to be redefined.ManagementException
ClassRedefinitionTaskRuntimeMBean[] getClassRedefinitionTasks()
Return the array of class redefinition tasks.