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 javax.management.monitor;
10:
11: import javax.management.ObjectName;
12:
13: /**
14: * @version $Revision: 1.7 $
15: */
16: public interface MonitorMBean {
17: public void start();
18:
19: public void stop();
20:
21: public boolean isActive();
22:
23: public void addObservedObject(ObjectName object)
24: throws IllegalArgumentException;
25:
26: public void removeObservedObject(ObjectName object);
27:
28: public boolean containsObservedObject(ObjectName object);
29:
30: public ObjectName[] getObservedObjects();
31:
32: /**
33: * @deprecated
34: */
35: public ObjectName getObservedObject();
36:
37: /**
38: * @deprecated
39: */
40: public void setObservedObject(ObjectName object);
41:
42: public String getObservedAttribute();
43:
44: public void setObservedAttribute(String attribute);
45:
46: public long getGranularityPeriod();
47:
48: public void setGranularityPeriod(long period)
49: throws java.lang.IllegalArgumentException;
50: }
|