1 19 24 25 package org.netbeans.modules.j2ee.sun.api; 26 27 import java.io.IOException ; 28 import javax.management.MBeanInfo ; 29 import javax.management.MBeanException ; 30 import javax.management.ReflectionException ; 31 import javax.management.IntrospectionException ; 32 import javax.management.InstanceNotFoundException ; 33 import javax.management.AttributeNotFoundException ; 34 import javax.management.InvalidAttributeValueException ; 35 import javax.management.MBeanServerConnection ; 36 import javax.management.ObjectName ; 37 import javax.management.AttributeList ; 38 39 import java.rmi.RemoteException ; 40 import java.rmi.ServerException ; 41 42 import javax.enterprise.deploy.spi.DeploymentManager ; 43 48 public interface ServerInterface { 49 50 Object getAttribute(ObjectName name, String attribute) throws MBeanException , 51 AttributeNotFoundException , InstanceNotFoundException , ReflectionException , RemoteException ; 52 53 54 AttributeList getAttributes(ObjectName name, String [] attributes) throws 55 ReflectionException , InstanceNotFoundException , RemoteException ; 56 57 MBeanInfo getMBeanInfo(ObjectName name) throws IntrospectionException , InstanceNotFoundException , 58 ReflectionException , RemoteException ; 59 60 Object invoke(ObjectName name, String operationName, Object [] params, String [] signature) throws InstanceNotFoundException , 61 MBeanException , ReflectionException , RemoteException ; 62 63 void setAttribute(ObjectName name, javax.management.Attribute attribute) throws InstanceNotFoundException , 64 AttributeNotFoundException , InvalidAttributeValueException , MBeanException , ReflectionException , RemoteException ; 65 66 DeploymentManager getDeploymentManager(); 67 68 void setDeploymentManager(DeploymentManager dm); 69 70 MBeanServerConnection getMBeanServerConnection() throws RemoteException , ServerException ; 71 72 Object getManagement(); 73 74 78 void checkCredentials() throws IOException ; 79 80 String getWebModuleName(String contextRoot); 81 } 82 | Popular Tags |