|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
org.objectweb.jonas.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.objectweb.jonas.management.reconfig.emitter.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.objectweb.jonas.management.reconfig.emitter.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()
LogManagementMBean
TopicalLogger
.
getTopics
in interface LogManagementMBean
public String getTopicLevel(String topic)
getTopicLevel
in interface LogManagementMBean
topic
- the topic we need ti know its level
public void setTopicLevel(String topic, String level)
setTopicLevel
in interface LogManagementMBean
topic
- topic to setlevel
- the level to setpublic Properties getProperties()
getProperties
in interface LogManagementMBean
public void saveConfig()
saveConfig
in interface LogManagementMBean
public String[] getHandlerNames()
getHandlerNames
in interface LogManagementMBean
public Map getHandlerAttributes(String handlername)
getHandlerAttributes
in interface LogManagementMBean
handlername
- the handler name
public void addNotificationListener(NotificationListener arg0, NotificationFilter arg1, Object arg2)
addNotificationListener
in interface NotificationBroadcaster
addNotificationListener
in class NotificationBroadcasterSupport
arg0
- The notification Listenerarg1
- The notification Filterarg2
- Handback object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |