001    /**
002     *
003     * Copyright 2003-2004 The Apache Software Foundation
004     *
005     *  Licensed under the Apache License, Version 2.0 (the "License");
006     *  you may not use this file except in compliance with the License.
007     *  You may obtain a copy of the License at
008     *
009     *     http://www.apache.org/licenses/LICENSE-2.0
010     *
011     *  Unless required by applicable law or agreed to in writing, software
012     *  distributed under the License is distributed on an "AS IS" BASIS,
013     *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014     *  See the License for the specific language governing permissions and
015     *  limitations under the License.
016     */
017    
018    //
019    // This source code implements specifications defined by the Java
020    // Community Process. In order to remain compliant with the specification
021    // DO NOT add / change / or delete method signatures!
022    //
023    
024    package javax.management.j2ee;
025    
026    import java.rmi.RemoteException;
027    import java.util.Set;
028    import javax.ejb.EJBObject;
029    import javax.management.Attribute;
030    import javax.management.AttributeList;
031    import javax.management.AttributeNotFoundException;
032    import javax.management.InstanceNotFoundException;
033    import javax.management.IntrospectionException;
034    import javax.management.InvalidAttributeValueException;
035    import javax.management.MBeanException;
036    import javax.management.MBeanInfo;
037    import javax.management.ObjectName;
038    import javax.management.QueryExp;
039    import javax.management.ReflectionException;
040    
041    /**
042     *
043     *
044     *
045     * @version $Rev: 46019 $
046     */
047    public interface Management extends EJBObject {
048        public Object getAttribute(ObjectName name, String attribute) throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException, RemoteException;
049    
050        public AttributeList getAttributes(ObjectName name, String[] attributes) throws InstanceNotFoundException, ReflectionException, RemoteException;
051    
052        public String getDefaultDomain() throws RemoteException;
053    
054        public Integer getMBeanCount() throws RemoteException;
055    
056        public MBeanInfo getMBeanInfo(ObjectName name) throws IntrospectionException, InstanceNotFoundException, ReflectionException, RemoteException;
057    
058        public Object invoke(ObjectName name, String operationName, Object[] params, String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException, RemoteException;
059    
060        public boolean isRegistered(ObjectName name) throws RemoteException;
061    
062        public Set queryNames(ObjectName name, QueryExp query) throws RemoteException;
063    
064        public void setAttribute(ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException, RemoteException;
065    
066        public AttributeList setAttributes(ObjectName name, AttributeList attributes) throws InstanceNotFoundException, ReflectionException, RemoteException;
067    
068        public ListenerRegistration getListenerRegistry() throws RemoteException;
069    }