public class LoggerDynamicMBean extends AbstractDynamicMBean implements NotificationListener
Modifier and Type | Field and Description |
---|---|
private static Logger |
cat |
private Vector |
dAttributes |
private String |
dClassName |
private MBeanConstructorInfo[] |
dConstructors |
private String |
dDescription |
private MBeanOperationInfo[] |
dOperations |
private Logger |
logger |
server
Constructor and Description |
---|
LoggerDynamicMBean(Logger logger) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addAppender(String appenderClass,
String appenderName) |
(package private) void |
appenderMBeanRegistration() |
private void |
buildDynamicMBeanInfo() |
Object |
getAttribute(String attributeName) |
protected Logger |
getLogger() |
MBeanInfo |
getMBeanInfo() |
void |
handleNotification(Notification notification,
Object handback) |
Object |
invoke(String operationName,
Object[] params,
String[] signature) |
void |
postRegister(Boolean registrationDone) |
(package private) void |
registerAppenderMBean(Appender appender) |
void |
setAttribute(Attribute attribute) |
getAppenderName, getAttributes, postDeregister, preDeregister, preRegister, registerMBean, setAttributes
private MBeanConstructorInfo[] dConstructors
private MBeanOperationInfo[] dOperations
private Vector dAttributes
private String dClassName
private String dDescription
public LoggerDynamicMBean(Logger logger)
public void handleNotification(Notification notification, Object handback)
handleNotification
in interface NotificationListener
private void buildDynamicMBeanInfo()
protected Logger getLogger()
getLogger
in class AbstractDynamicMBean
public MBeanInfo getMBeanInfo()
getMBeanInfo
in interface DynamicMBean
public Object invoke(String operationName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke
in interface DynamicMBean
MBeanException
ReflectionException
public Object getAttribute(String attributeName) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute
in interface DynamicMBean
AttributeNotFoundException
MBeanException
ReflectionException
void addAppender(String appenderClass, String appenderName)
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute
in interface DynamicMBean
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
void appenderMBeanRegistration()
void registerAppenderMBean(Appender appender)
public void postRegister(Boolean registrationDone)
postRegister
in interface MBeanRegistration
postRegister
in class AbstractDynamicMBean
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses