1 8 9 package mx4j.server.interceptor; 10 11 import java.util.List ; 12 import javax.management.Attribute ; 13 import javax.management.AttributeList ; 14 import javax.management.AttributeNotFoundException ; 15 import javax.management.InvalidAttributeValueException ; 16 import javax.management.ListenerNotFoundException ; 17 import javax.management.MBeanException ; 18 import javax.management.MBeanInfo ; 19 import javax.management.MBeanRegistrationException ; 20 import javax.management.NotificationFilter ; 21 import javax.management.NotificationListener ; 22 import javax.management.ReflectionException ; 23 24 import mx4j.server.MBeanMetaData; 25 26 33 public interface MBeanServerInterceptor 34 { 35 38 public static final int PRE_REGISTER = 1; 39 42 public static final int POST_REGISTER_TRUE = 2; 43 46 public static final int POST_REGISTER_FALSE = 3; 47 50 public static final int PRE_DEREGISTER = 4; 51 54 public static final int POST_DEREGISTER = 5; 55 56 59 public String getType(); 60 61 67 public void setChain(List interceptors); 68 69 72 public void addNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback); 73 74 77 public void removeNotificationListener(MBeanMetaData metadata, NotificationListener listener) throws ListenerNotFoundException ; 78 79 82 public void removeNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException ; 83 84 87 public void instantiate(MBeanMetaData metadata, String className, String [] params, Object [] args) throws ReflectionException , MBeanException ; 88 89 92 public void registration(MBeanMetaData metadata, int operation) throws MBeanRegistrationException ; 93 94 97 public MBeanInfo getMBeanInfo(MBeanMetaData metadata); 98 99 102 public Object invoke(MBeanMetaData metadata, String method, String [] params, Object [] args) throws MBeanException , ReflectionException ; 103 104 107 public AttributeList getAttributes(MBeanMetaData metadata, String [] attributes); 108 109 112 public AttributeList setAttributes(MBeanMetaData metadata, AttributeList attributes); 113 114 117 public Object getAttribute(MBeanMetaData metadata, String attribute) throws MBeanException , AttributeNotFoundException , ReflectionException ; 118 119 122 public void setAttribute(MBeanMetaData metadata, Attribute attribute) throws MBeanException , AttributeNotFoundException , InvalidAttributeValueException , ReflectionException ; 123 } 124 | Popular Tags |