01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package mx4j.tools.stats;
10:
11: /**
12: * Management interface descriptions for the ObserverStatisticsRecorder MBean.
13: *
14: * @version $Revision: 1.3 $
15: */
16: public class ObserverStatisticsRecorderMBeanDescription extends
17: StatisticsRecorderMBeanDescription {
18: public String getAttributeDescription(String attribute) {
19: if (attribute.equals("ObservedAttribute")) {
20: return "The Attribute to be observed";
21: }
22: if (attribute.equals("ObservedObject")) {
23: return "The ObjectName to be observed";
24: }
25: return super.getAttributeDescription(attribute);
26: }
27: }
|