cz.cuni.amis.pogamut.base.utils.logging.jmx
Class LogCategoriesJMXProxy
java.lang.Object
cz.cuni.amis.pogamut.base.utils.logging.AbstractLogCategories
cz.cuni.amis.pogamut.base.utils.logging.jmx.LogCategoriesJMXProxy
- All Implemented Interfaces:
- ILogCategories
public class LogCategoriesJMXProxy
- extends AbstractLogCategories
- Author:
- ik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogCategoriesJMXProxy
public LogCategoriesJMXProxy(MBeanServerConnection mbsc,
ObjectName parentName)
throws cz.cuni.amis.utils.exception.PogamutJMXException
- Throws:
cz.cuni.amis.utils.exception.PogamutJMXException
getCategoriesInternal
protected Map<String,LogCategory> getCategoriesInternal()
- Specified by:
getCategoriesInternal
in class AbstractLogCategories
- Returns:
- Muttable map with categories.
getCategory
public LogCategory getCategory(String name)
- Description copied from interface:
ILogCategories
- Returns existing category by the name or adds new one.
Note that new category doesn't have any handler appended,
you have to create at least one for the category to produce something.
Example:
LogCategory myCategory = categories.getCategory("my log"); // create new category
myCategory.newHandler(new LogPublisher.ConsolePublisher()); // add new handler with output to the console
- Returns:
getCategoryNames
public String[] getCategoryNames()
- Description copied from class:
AbstractLogCategories
- Returns names of all existing log categories.
- Specified by:
getCategoryNames
in interface ILogCategories
- Overrides:
getCategoryNames
in class AbstractLogCategories
- Returns:
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.