Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02

com.bea.wls.redef.runtime
Interface ClassRedefinitionRuntimeMBean

All Superinterfaces:
DynamicMBean, MBeanRegistration, 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.


Method Summary
 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(String moduleName, String[] classNames)
          Initiate a class redefinition cycle, to redefine only the specified classes from given module.
 
Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent
 
Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 

Method Detail

getClassRedefinitionCount

int getClassRedefinitionCount()

Number of class redefinitions executed so far.

Returns:
Number of class redefinition cycles executed so far.

getFailedClassRedefinitionCount

int getFailedClassRedefinitionCount()

Number of failed redefinition operations since the application was deployed.

Returns:
Number of failed redefinition since the application was deployed.

getProcessedClassesCount

int getProcessedClassesCount()

Number of classes processed since the application was deployed.

Returns:
Number of classes processed since the application was deployed.

getTotalClassRedefinitionTime

long getTotalClassRedefinitionTime()

Total time spent processing classes, in nano seconds since the application was deployed.

Returns:
Total time spent processing classes, in nano seconds.

redefineClasses

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.

Returns:
Task to monitor and control initiated class redefinition.
Throws:
ManagementException

redefineClasses

ClassRedefinitionTaskRuntimeMBean redefineClasses(String moduleName,
                                                  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.

Parameters:
moduleName - Module from which the classes are to be redefined.
classNames - Classes to be redefined.
Returns:
Task to monitor and control initiated class redefinition.
Throws:
ManagementException

getClassRedefinitionTasks

ClassRedefinitionTaskRuntimeMBean[] getClassRedefinitionTasks()

Return the array of class redefinition tasks.

Returns:
Array of current class redefinition tasks

Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02