org.ow2.jonas.lib.jmbeans
Class LogManager

java.lang.Object
  extended by org.ow2.jonas.lib.jmbeans.J2EEManagedObject
      extended by org.ow2.jonas.lib.jmbeans.LogManager

public class LogManager
extends J2EEManagedObject

LogManager defined as a J2EEManagedObject sub-class in order to use JMX notification support.

Author:
Adriana.Danes@bull.net

Field Summary
 
Fields inherited from class org.ow2.jonas.lib.jmbeans.J2EEManagedObject
J2EE_TYPE_APPLICATION, J2EE_TYPE_SERVER, NAME
 
Constructor Summary
LogManager(String objectName)
           
 
Method Summary
 String getTopicLevel(String topic)
          Return a topic's level.
 String[] getTopics()
          Get the topics list.
 void saveConfig()
          Save updated configuration.
 void setTopicLevel(String topic, String level)
          set Topic Level
 
Methods inherited from class org.ow2.jonas.lib.jmbeans.J2EEManagedObject
getObjectName, isEventProvider, isStateManageable, isStatisticsProvider, sendNotification, sendReconfigNotification, sendSaveNotification, setModelMBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogManager

public LogManager(String objectName)
Method Detail

getTopics

public String[] getTopics()
Get the topics list. Assumes that all Loggers are TopicalLoggers.

Returns:
the topics list.

getTopicLevel

public String getTopicLevel(String topic)
Return a topic's level.

Parameters:
topic - the topic we need to know its level
Returns:
the topic's level

setTopicLevel

public void setTopicLevel(String topic,
                          String level)
set Topic Level

Parameters:
topic - topic to set
level - the level to set

saveConfig

public void saveConfig()
Save updated configuration.



Copyright © 2008 OW2 Consortium. All Rights Reserved.