|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.objectweb.util.monolog.wrapper.remote.lib.MonologFactoryMBeanImpl
This class is a JMX MBean implementing the MonologFactoryMBean interface. It permits to configure loggers, handlers and levels on a monolog factory
| Constructor Summary | |
|---|---|
MonologFactoryMBeanImpl()
Build a JMX MBean managing the default MonologFactory registered as current int the Monolog class. |
|
MonologFactoryMBeanImpl(MonologFactory mf)
Build a JMX MBean for administrate the a MonologFactory. |
|
| Method Summary | |
|---|---|
void |
addHandlerToLogger(java.lang.String handlername,
java.lang.String loggerName)
A TopicalLogger manages a list of Handler instances. |
void |
addTopicToLogger(java.lang.String topic,
java.lang.String loggerName)
This method allows adding a topic to a TopicalLogger. |
int |
compareTo(java.lang.String levelname1,
java.lang.String levelname2)
Compares two levels. |
boolean |
createHandler(java.lang.String hn,
java.lang.String handlertype)
Creates a new handler |
boolean |
defineLevel(java.lang.String name,
int value)
It defines a new Level with a name and an integer value. |
boolean |
defineLevel(java.lang.String name,
java.lang.String value)
It defines a new Level with a name and a string value. |
java.util.Map |
getAllHandlerAttributes()
It retrieves the attributes of all handlers |
java.util.Map |
getHandlerAttributes(java.lang.String handlername)
It retrieves the attributes of an handler |
java.lang.String[] |
getHandlerNames()
It retrieves name of all handler managed by this factory. |
Level |
getLevel(int value)
It retrieves a Level instance which the integer value is equals to the parameter. |
Level |
getLevel(java.lang.String name)
It retrieves a Level instance which the name is equals to the parameter. |
Level[] |
getLevels()
It retrieves all Level instances defined in this manager. |
LoggerInfo |
getLogger(java.lang.String loggername)
Creates a logger if it does not exist. |
LoggerInfo |
getLogger(java.lang.String loggername,
java.lang.String resourceBundleName)
Creates a logger if it does not exist. |
LoggerInfo[] |
getLoggers()
It retrieves a list of all loggers. |
java.util.Properties |
getMonologProperties()
Retrieves the properties corresponding to the current configuration. |
java.lang.String |
getResourceBundleName()
Accessors to a resource bundle name associated to a LoggerFactory. |
void |
removeAllHandlersFromLogger(java.lang.String loggerName)
A TopicalLogger manages a list of Handler instances. |
boolean |
removeHandler(java.lang.String handlername)
It removes the handler which the name is specified by the parameter |
void |
removeHandlerFromLogger(java.lang.String handlerName,
java.lang.String loggerName)
A TopicalLogger manages a list of Handler instances. |
void |
removeLevel(java.lang.String name)
It removes a Level instance to this manager. |
void |
removeTopicFromLogger(java.lang.String topic,
java.lang.String loggerName)
This method allows removing a topic to a TopicalLogger. |
void |
setAdditivity(boolean a,
java.lang.String loggerName)
It assigns the additivity flag for this logger instance. |
void |
setHandlerAttribute(java.lang.String handlername,
java.lang.String attributeName,
java.lang.String value)
Assignes a value to an handler attribute. |
void |
setLoggerLevel(int level,
java.lang.String loggerName)
It assigns the level to a logger |
void |
setLoggerLevel(java.lang.String levelName,
java.lang.String loggerName)
It assigns the level to a logger |
void |
setMonologProperties(java.util.Properties p)
Configure Monolog with properties. |
void |
setResourceBundleName(java.lang.String resourceBundleName)
Accessors to a resource bundle name associated to a LoggerFactory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MonologFactoryMBeanImpl()
public MonologFactoryMBeanImpl(MonologFactory mf)
mf - is the monolog factory instance encapsulated into this MBean.| Method Detail |
public boolean defineLevel(java.lang.String name,
int value)
MonologFactoryMBean
defineLevel in interface MonologFactoryMBeanname - is the name of the new levelvalue - is the integer value of the new level
public boolean defineLevel(java.lang.String name,
java.lang.String value)
MonologFactoryMBean
defineLevel in interface MonologFactoryMBeanname - is the name of the new levelvalue - is the string value of the new level
public void removeLevel(java.lang.String name)
MonologFactoryMBean
removeLevel in interface MonologFactoryMBeanpublic Level getLevel(java.lang.String name)
MonologFactoryMBean
getLevel in interface MonologFactoryMBeanname - is the name of request Level
public Level getLevel(int value)
MonologFactoryMBean
getLevel in interface MonologFactoryMBeanvalue - is the integer value of request Level
public Level[] getLevels()
MonologFactoryMBean
getLevels in interface MonologFactoryMBean
public int compareTo(java.lang.String levelname1,
java.lang.String levelname2)
MonologFactoryMBean
compareTo in interface MonologFactoryMBeanlevelname1 - is the name of the first levellevelname2 - is the name of the second level
public boolean createHandler(java.lang.String hn,
java.lang.String handlertype)
MonologFactoryMBean
createHandler in interface MonologFactoryMBeanhn - is the name of the handler to createhandlertype - is the type of the parameter. The possible value are
defined in this interface by the XXX_HANDLER_TYPE constants.
public boolean removeHandler(java.lang.String handlername)
MonologFactoryMBean
removeHandler in interface MonologFactoryMBeanhandlername - is the name of the handler
public java.lang.String[] getHandlerNames()
MonologFactoryMBean
getHandlerNames in interface MonologFactoryMBeanpublic java.util.Map getHandlerAttributes(java.lang.String handlername)
MonologFactoryMBean
getHandlerAttributes in interface MonologFactoryMBeanhandlername - is the name of the handler
public java.util.Map getAllHandlerAttributes()
MonologFactoryMBean
getAllHandlerAttributes in interface MonologFactoryMBean
public void setHandlerAttribute(java.lang.String handlername,
java.lang.String attributeName,
java.lang.String value)
MonologFactoryMBean
setHandlerAttribute in interface MonologFactoryMBeanhandlername - is the name of the handlerattributeName - is the name of the attributevalue - is the new value of the attributepublic LoggerInfo getLogger(java.lang.String loggername)
MonologFactoryMBean
getLogger in interface MonologFactoryMBeanloggername - is the name of the logger
public LoggerInfo getLogger(java.lang.String loggername,
java.lang.String resourceBundleName)
MonologFactoryMBean
getLogger in interface MonologFactoryMBeanresourceBundleName - allows specifying the name of a
resource bundle in order to internationalise the logging.public java.lang.String getResourceBundleName()
MonologFactoryMBean
getResourceBundleName in interface MonologFactoryMBeanpublic void setResourceBundleName(java.lang.String resourceBundleName)
MonologFactoryMBean
setResourceBundleName in interface MonologFactoryMBeanpublic LoggerInfo[] getLoggers()
MonologFactoryMBean
getLoggers in interface MonologFactoryMBean
public void addHandlerToLogger(java.lang.String handlername,
java.lang.String loggerName)
MonologFactoryMBean
addHandlerToLogger in interface MonologFactoryMBean
public void removeHandlerFromLogger(java.lang.String handlerName,
java.lang.String loggerName)
MonologFactoryMBean
removeHandlerFromLogger in interface MonologFactoryMBeanpublic void removeAllHandlersFromLogger(java.lang.String loggerName)
MonologFactoryMBean
removeAllHandlersFromLogger in interface MonologFactoryMBean
public void setAdditivity(boolean a,
java.lang.String loggerName)
MonologFactoryMBean
setAdditivity in interface MonologFactoryMBean
public void setLoggerLevel(int level,
java.lang.String loggerName)
setLoggerLevel in interface MonologFactoryMBeanlevel - is the level to assign the loggerloggerName - is the name of logger which the level must be set.
public void setLoggerLevel(java.lang.String levelName,
java.lang.String loggerName)
setLoggerLevel in interface MonologFactoryMBeanloggerName - is the name of logger which the level must be set.
public void addTopicToLogger(java.lang.String topic,
java.lang.String loggerName)
MonologFactoryMBean
addTopicToLogger in interface MonologFactoryMBean
public void removeTopicFromLogger(java.lang.String topic,
java.lang.String loggerName)
MonologFactoryMBean
removeTopicFromLogger in interface MonologFactoryMBeanpublic java.util.Properties getMonologProperties()
MonologFactoryMBean
getMonologProperties in interface MonologFactoryMBeanpublic void setMonologProperties(java.util.Properties p)
MonologFactoryMBean
setMonologProperties in interface MonologFactoryMBean
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||