org.objectweb.jonas.common
Class LogManagement

java.lang.Object
  |
  +--org.objectweb.jonas.management.ReconfigDispatcher
        |
        +--org.objectweb.jonas.common.LogManagement
All Implemented Interfaces:
LogManagementMBean, javax.management.NotificationBroadcaster, ReconfigDispatcherMBean

public class LogManagement
extends ReconfigDispatcher
implements LogManagementMBean


Field Summary
static java.lang.String SERVICE_NAME
           
 
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
LogManagement()
           
 
Method Summary
static LogManagement getInstance()
           
 java.util.Properties getProperties()
          returns list of properties for logging system
 java.lang.String getTopicLevel(java.lang.String topic)
          get Topic Level
 java.lang.String[] getTopics()
          get Topics.
 void saveConfig()
           
 void setTopicLevel(java.lang.String topic, java.lang.String level)
          set Topic Level
 
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
Constructor Detail

LogManagement

public LogManagement()
Method Detail

getInstance

public static LogManagement getInstance()

getTopics

public java.lang.String[] getTopics()
get Topics. Assumes that all Loggers are TopicalLoggers.
Specified by:
getTopics in interface LogManagementMBean

getTopicLevel

public java.lang.String getTopicLevel(java.lang.String topic)
get Topic Level
Specified by:
getTopicLevel in interface LogManagementMBean

setTopicLevel

public void setTopicLevel(java.lang.String topic,
                          java.lang.String level)
set Topic Level
Specified by:
setTopicLevel in interface LogManagementMBean

getProperties

public java.util.Properties getProperties()
returns list of properties for logging system
Specified by:
getProperties in interface LogManagementMBean

saveConfig

public void saveConfig()
Specified by:
saveConfig in interface LogManagementMBean