|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.ow2.jonas.lib.reconfig.ReconfigEmitter
org.ow2.jonas.lib.log.LogManagement
public class LogManagement
MBean implementation for log management.
The managed resource is the monolog LoggerFactory.
| Field Summary | |
|---|---|
static String |
SERVICE_NAME
Name as used to label configuration properties. |
| Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
|---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
| Constructor Summary | |
|---|---|
LogManagement()
|
|
| Method Summary | |
|---|---|
void |
addNotificationListener(NotificationListener arg0,
NotificationFilter arg1,
Object arg2)
Super charge of the methode to take advantage of JMX notification offered by Monolog 2.0 |
Map |
getHandlerAttributes(String handlername)
Getter for the map of the attributes of a handler. |
String[] |
getHandlerNames()
Returns the names of the Monolog handlers |
static LogManagement |
getInstance()
|
Properties |
getProperties()
|
String |
getTopicLevel(String topic)
Return a topic's level |
String[] |
getTopics()
Assumes that all Loggers are TopicalLogger. |
void |
saveConfig()
Save updated configuration. |
void |
setTopicLevel(String topic,
String level)
set Topic Level |
| Methods inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
|---|
initLogger, sendReconfigNotification, sendSaveNotification |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
|---|
getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SERVICE_NAME
| Constructor Detail |
|---|
public LogManagement()
| Method Detail |
|---|
public static LogManagement getInstance()
LogManagement unique instance.public String[] getTopics()
LogManagementMBeanTopicalLogger.
getTopics in interface LogManagementMBeanpublic String getTopicLevel(String topic)
getTopicLevel in interface LogManagementMBeantopic - the topic we need ti know its level
public void setTopicLevel(String topic,
String level)
setTopicLevel in interface LogManagementMBeantopic - topic to setlevel - the level to setpublic Properties getProperties()
getProperties in interface LogManagementMBeanpublic void saveConfig()
saveConfig in interface LogManagementMBeanpublic String[] getHandlerNames()
getHandlerNames in interface LogManagementMBeanpublic Map getHandlerAttributes(String handlername)
getHandlerAttributes in interface LogManagementMBeanhandlername - the handler name
public void addNotificationListener(NotificationListener arg0,
NotificationFilter arg1,
Object arg2)
addNotificationListener in interface NotificationBroadcasteraddNotificationListener in class NotificationBroadcasterSupportarg0 - The notification Listenerarg1 - The notification Filterarg2 - Handback object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||