| java.lang.Object com.sun.jbi.management.support.MBeanHelper
MBeanHelper | public MBeanHelper(MBeanServer aMBeanServer, com.sun.jbi.management.MBeanNames aMBeanNames, Logger aLogger)(Code) | | Constructs a MBeanHelper .
This class is meant to be instantiated only once by the framework.
Parameters: aMBeanServer - is the MBean server provided by the framework. Parameters: aMBeanNames - is the MBeanNames instance created by the framework. Parameters: aLogger - is where this class should log messages. |
createSystemServiceLoggerMBean | public boolean createSystemServiceLoggerMBean(String aService, Logger aLogger)(Code) | | Create a LoggerMBean and associate it with aLogger .
Parameters: aService - is the name of the system service that owns the logger. Parameters: aLogger - is the Logger to associate with the LoggerMBean. true if successful, otherwise false. |
destroySystemServiceLoggerMBean | public boolean destroySystemServiceLoggerMBean(String aService)(Code) | | Destroy the LoggerMBean registered for aService .
Parameters: aService - is the name of the system service that owns the logger. true if successful, otherwise false. |
destroySystemServiceLoggerMBean | public boolean destroySystemServiceLoggerMBean(String aService, Logger aLogger)(Code) | | Destroy a LoggerMBean registered for aService .
Parameters: aService - is the name of the system service that owns the logger. Parameters: aLogger - is the Logger associated with the LoggerMBean. true if successful, otherwise false. |
getLogLevel | public static Level getLogLevel(String attrName, com.sun.jbi.EnvironmentContext envCtx)(Code) | | Get the value of the management log level
Parameters: envCtx - - management context Parameters: attrName - - name of the logger the log level of the requested logger or null if logger not found |
getLoggerConfigMBeanName | public static ObjectName getLoggerConfigMBeanName()(Code) | | the object name of the Logger Configuration MBean on the instance |
getSystemConfigMBeanName | public static ObjectName getSystemConfigMBeanName()(Code) | | the object name of the System Configuration MBean on the instance |
revertToGlobalLogLevel | public static void revertToGlobalLogLevel(String logName, com.sun.jbi.EnvironmentContext envCtx, Logger aLogger)(Code) | | Revert to the global log level. This causes the persisted attribute to
be deleted from the target for the instance. The global log level ( which
is the same as the default / com.sun.jbi log level.
Parameters: loggerName - - name of the logger whose override is to be deleted Parameters: envCtx - - environment context Parameters: aLogger - - logger to log any warnings to |
setLogLevel | public static void setLogLevel(String logName, String logLevel, com.sun.jbi.EnvironmentContext envCtx, Logger aLogger)(Code) | | Set the value of the management log level
Parameters: envCtx - - environment context Parameters: logName - - name of the logger Parameters: logLevel - - the log level string the log level of the requested logger or null if logger not found |
|
|