View Javadoc

1   package cz.cuni.amis.pogamut.base.utils.logging.jmx;
2   
3   import java.util.logging.Level;
4   import javax.management.ObjectName;
5   
6   /**
7    * MBean for the JMXLogCategories.
8    * 
9    * @author Jimmy
10   */
11  public interface JMXLogCategoriesMBean {
12  		
13  	/**
14  	 * Returns names of all logging categories.
15  	 * @return
16  	 */
17  	public String[] getCategoryNames();
18  	
19  	/**
20  	 * Returns names of all logging categories alphabetically sorted.
21  	 * @return
22  	 */
23  	public String[] getCategoryNamesSorted();
24  	
25  	/**
26  	 * Sets logging level for all categories.
27  	 * @param newLevel
28  	 */
29  	public void setLevel(Level newLevel);
30  
31  	/**
32  	 * Returns jmx name for the specified category name (obtained from getCategoryNames()).
33  	 * @param categoryName
34  	 * @return
35  	 */
36  	public ObjectName getJMXLogCategoryName(String categoryName);
37  
38  	/**
39  	 * Returns actual JMX object name for this object. 
40  	 * @return
41  	 */
42  	public ObjectName getJMXLogCategoriesName();
43  
44  }