1 23 24 29 30 package com.sun.enterprise.management.support; 31 32 import javax.management.ObjectName ; 33 import javax.management.MBeanInfo ; 34 import javax.management.AttributeList ; 35 import javax.management.Attribute ; 36 import javax.management.AttributeNotFoundException ; 37 import javax.management.InvalidAttributeValueException ; 38 import javax.management.InstanceNotFoundException ; 39 import javax.management.ReflectionException ; 40 import javax.management.MBeanException ; 41 42 43 44 48 public interface Delegate 49 { 50 54 public String getID(); 55 56 public Object getAttribute( String attrName ) 57 throws AttributeNotFoundException ; 58 59 public AttributeList getAttributes( final String [] attrNames ); 60 61 public void setAttribute( final Attribute attrName ) 62 throws AttributeNotFoundException , 63 InvalidAttributeValueException ; 64 65 public AttributeList setAttributes( final AttributeList mappedAttrs ); 66 67 70 public boolean supportsAttribute( String name ); 71 72 75 public boolean supportsOperation( 76 String operationName, 77 Object [] args, 78 String [] types ); 79 80 83 public MBeanInfo getMBeanInfo(); 84 85 88 public Object invoke( 89 String operationName, 90 Object [] args, 91 String [] types ); 92 93 94 public void setOwner( DelegateOwner owner ); 95 } 96 97 98 99 100 101 102 103 104 | Popular Tags |