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