1 /**
2 *
3 * Copyright 2003-2004 The Apache Software Foundation
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18
19
20
21
22
23
24 package javax.management.j2ee;
25
26 import java.rmi.RemoteException;
27 import java.util.Set;
28 import javax.ejb.EJBObject;
29 import javax.management.Attribute;
30 import javax.management.AttributeList;
31 import javax.management.AttributeNotFoundException;
32 import javax.management.InstanceNotFoundException;
33 import javax.management.IntrospectionException;
34 import javax.management.InvalidAttributeValueException;
35 import javax.management.MBeanException;
36 import javax.management.MBeanInfo;
37 import javax.management.ObjectName;
38 import javax.management.QueryExp;
39 import javax.management.ReflectionException;
40
41 /**
42 *
43 *
44 *
45 * @version $Rev: 46019 $
46 */
47 public interface Management extends EJBObject {
48 public Object getAttribute(ObjectName name, String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException, RemoteException;
49
50 public AttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException, ReflectionException, RemoteException;
51
52 public String getDefaultDomain() throws RemoteException;
53
54 public Integer getMBeanCount() throws RemoteException;
55
56 public MBeanInfo getMBeanInfo(ObjectName name) throws IntrospectionException, InstanceNotFoundException, ReflectionException, RemoteException;
57
58 public Object invoke(ObjectName name, String operationName, Object[] params, String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException, RemoteException;
59
60 public boolean isRegistered(ObjectName name) throws RemoteException;
61
62 public Set queryNames(ObjectName name, QueryExp query) throws RemoteException;
63
64 public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException, RemoteException;
65
66 public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException, ReflectionException, RemoteException;
67
68 public ListenerRegistration getListenerRegistry() throws RemoteException;
69 }