KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > tools > stats > ObserverStatisticsRecorderMBeanDescription


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package mx4j.tools.stats;
10
11
12 /**
13  * Management interface descriptions for the ObserverStatisticsRecorder MBean.
14  *
15  * @version $Revision: 1.3 $
16  */

17 public class ObserverStatisticsRecorderMBeanDescription extends StatisticsRecorderMBeanDescription
18 {
19    public String JavaDoc getAttributeDescription(String JavaDoc attribute)
20    {
21       if (attribute.equals("ObservedAttribute"))
22       {
23          return "The Attribute to be observed";
24       }
25       if (attribute.equals("ObservedObject"))
26       {
27          return "The ObjectName to be observed";
28       }
29       return super.getAttributeDescription(attribute);
30    }
31 }
32
Popular Tags