KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > tools > remote > JMXConnection


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 package mx4j.tools.remote;
9
10 import java.io.IOException JavaDoc;
11 import java.util.Set JavaDoc;
12 import javax.management.AttributeList JavaDoc;
13 import javax.management.AttributeNotFoundException JavaDoc;
14 import javax.management.InstanceAlreadyExistsException JavaDoc;
15 import javax.management.InstanceNotFoundException JavaDoc;
16 import javax.management.IntrospectionException JavaDoc;
17 import javax.management.InvalidAttributeValueException JavaDoc;
18 import javax.management.ListenerNotFoundException JavaDoc;
19 import javax.management.MBeanException JavaDoc;
20 import javax.management.MBeanInfo JavaDoc;
21 import javax.management.MBeanRegistrationException JavaDoc;
22 import javax.management.NotCompliantMBeanException JavaDoc;
23 import javax.management.ObjectInstance JavaDoc;
24 import javax.management.ObjectName JavaDoc;
25 import javax.management.ReflectionException JavaDoc;
26 import javax.security.auth.Subject JavaDoc;
27
28 /**
29  * @version $Revision: 1.3 $
30  */

31 public interface JMXConnection
32 {
33    public void close()
34            throws IOException JavaDoc;
35
36    public ObjectInstance JavaDoc createMBean(String JavaDoc className, ObjectName JavaDoc name, Object JavaDoc params, String JavaDoc[] signature, Subject JavaDoc delegate)
37            throws ReflectionException JavaDoc,
38                   InstanceAlreadyExistsException JavaDoc,
39                   MBeanRegistrationException JavaDoc,
40                   MBeanException JavaDoc,
41                   NotCompliantMBeanException JavaDoc,
42                   IOException JavaDoc;
43
44    public ObjectInstance JavaDoc createMBean(String JavaDoc className, ObjectName JavaDoc name, ObjectName JavaDoc loaderName, Object JavaDoc params, String JavaDoc[] signature, Subject JavaDoc delegate)
45            throws ReflectionException JavaDoc,
46                   InstanceAlreadyExistsException JavaDoc,
47                   MBeanRegistrationException JavaDoc,
48                   MBeanException JavaDoc,
49                   NotCompliantMBeanException JavaDoc,
50                   InstanceNotFoundException JavaDoc,
51                   IOException JavaDoc;
52
53    public void unregisterMBean(ObjectName JavaDoc name, Subject JavaDoc delegate)
54            throws InstanceNotFoundException JavaDoc,
55                   MBeanRegistrationException JavaDoc,
56                   IOException JavaDoc;
57
58    public ObjectInstance JavaDoc getObjectInstance(ObjectName JavaDoc name, Subject JavaDoc delegate)
59            throws InstanceNotFoundException JavaDoc,
60                   IOException JavaDoc;
61
62    public Set JavaDoc queryMBeans(ObjectName JavaDoc name, Object JavaDoc query, Subject JavaDoc delegate)
63            throws IOException JavaDoc;
64
65    public Set JavaDoc queryNames(ObjectName JavaDoc name, Object JavaDoc query, Subject JavaDoc delegate)
66            throws IOException JavaDoc;
67
68    public boolean isRegistered(ObjectName JavaDoc name, Subject JavaDoc delegate)
69            throws IOException JavaDoc;
70
71    public Integer JavaDoc getMBeanCount(Subject JavaDoc delegate)
72            throws IOException JavaDoc;
73
74    public Object JavaDoc getAttribute(ObjectName JavaDoc name, String JavaDoc attribute, Subject JavaDoc delegate)
75            throws MBeanException JavaDoc,
76                   AttributeNotFoundException JavaDoc,
77                   InstanceNotFoundException JavaDoc,
78                   ReflectionException JavaDoc,
79                   IOException JavaDoc;
80
81    public AttributeList JavaDoc getAttributes(ObjectName JavaDoc name, String JavaDoc[] attributes, Subject JavaDoc delegate)
82            throws InstanceNotFoundException JavaDoc,
83                   ReflectionException JavaDoc,
84                   IOException JavaDoc;
85
86    public void setAttribute(ObjectName JavaDoc name, Object JavaDoc attribute, Subject JavaDoc delegate)
87            throws InstanceNotFoundException JavaDoc,
88                   AttributeNotFoundException JavaDoc,
89                   InvalidAttributeValueException JavaDoc,
90                   MBeanException JavaDoc,
91                   ReflectionException JavaDoc,
92                   IOException JavaDoc;
93
94    public AttributeList JavaDoc setAttributes(ObjectName JavaDoc name, Object JavaDoc attributes, Subject JavaDoc delegate)
95            throws InstanceNotFoundException JavaDoc,
96                   ReflectionException JavaDoc,
97                   IOException JavaDoc;
98
99    public Object JavaDoc invoke(ObjectName JavaDoc name, String JavaDoc operationName, Object JavaDoc params, String JavaDoc[] signature, Subject JavaDoc delegate)
100            throws InstanceNotFoundException JavaDoc,
101                   MBeanException JavaDoc,
102                   ReflectionException JavaDoc,
103                   IOException JavaDoc;
104
105    public String JavaDoc getDefaultDomain(Subject JavaDoc delegate)
106            throws IOException JavaDoc;
107
108    public String JavaDoc[] getDomains(Subject JavaDoc delegate)
109            throws IOException JavaDoc;
110
111    public MBeanInfo JavaDoc getMBeanInfo(ObjectName JavaDoc name, Subject JavaDoc delegate)
112            throws InstanceNotFoundException JavaDoc,
113                   IntrospectionException JavaDoc,
114                   ReflectionException JavaDoc,
115                   IOException JavaDoc;
116
117    public boolean isInstanceOf(ObjectName JavaDoc name, String JavaDoc className, Subject JavaDoc delegate)
118            throws InstanceNotFoundException JavaDoc,
119                   IOException JavaDoc;
120
121    public void addNotificationListener(ObjectName JavaDoc name, ObjectName JavaDoc listener, Object JavaDoc filter, Object JavaDoc handback, Subject JavaDoc delegate)
122            throws InstanceNotFoundException JavaDoc,
123                   IOException JavaDoc;
124
125    public void removeNotificationListener(ObjectName JavaDoc name, ObjectName JavaDoc listener, Subject JavaDoc delegate)
126            throws InstanceNotFoundException JavaDoc,
127                   ListenerNotFoundException JavaDoc,
128                   IOException JavaDoc;
129
130    public void removeNotificationListener(ObjectName JavaDoc name, ObjectName JavaDoc listener, Object JavaDoc filter, Object JavaDoc handback, Subject JavaDoc delegate)
131            throws InstanceNotFoundException JavaDoc,
132                   ListenerNotFoundException JavaDoc,
133                   IOException JavaDoc;
134 }
135
Popular Tags