01: /*
02: * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.monitoring;
06:
07: import javax.management.*;
08: import java.io.IOException;
09: import java.util.Set;
10:
11: /*
12: * A minimum contract that works across JMX implementations of Sun, BEA, and IBM.
13: */
14:
15: public interface Client {
16: public void addNotificationListener(ObjectName on,
17: NotificationListener listener, NotificationFilter filter,
18: Object handback) throws InstanceNotFoundException,
19: IOException;
20:
21: public Object getAttribute(ObjectName on, String attrName)
22: throws ReflectionException, InstanceNotFoundException,
23: IOException, MBeanException, AttributeNotFoundException;
24:
25: public AttributeList getAttributes(ObjectName on, String[] attrNames)
26: throws ReflectionException, InstanceNotFoundException,
27: IOException;
28:
29: public String getDefaultDomain();
30:
31: public Integer getMBeanCount() throws IOException;
32:
33: public MBeanInfo getMBeanInfo(ObjectName on)
34: throws ReflectionException, InstanceNotFoundException,
35: IOException, IntrospectionException;
36:
37: public Object invoke(ObjectName on, String operationName,
38: Object[] params, String[] signature)
39: throws ReflectionException, InstanceNotFoundException,
40: IOException, MBeanException;
41:
42: public Boolean isInstanceOf(ObjectName on, String className)
43: throws InstanceNotFoundException, IOException;
44:
45: public Boolean isRegistered(ObjectName on) throws IOException;
46:
47: public Set queryNames(ObjectName pattern, QueryExp expr)
48: throws IOException;
49:
50: public void removeNotificationListener(ObjectName on,
51: NotificationListener listener)
52: throws InstanceNotFoundException,
53: ListenerNotFoundException, IOException;
54:
55: public void setAttribute(ObjectName on, Attribute attr)
56: throws ReflectionException, InstanceNotFoundException,
57: IOException, MBeanException, AttributeNotFoundException,
58: InvalidAttributeValueException;
59:
60: public AttributeList setAttributes(ObjectName on,
61: AttributeList attrs) throws ReflectionException,
62: InstanceNotFoundException, IOException;
63:
64: public void unregisterMBean(ObjectName on)
65: throws MBeanRegistrationException,
66: InstanceNotFoundException, IOException;
67:
68: public void disconnect() throws IOException;
69: }
|