1 /* 2 * EJTools, the Enterprise Java Tools 3 * 4 * Distributable under LGPL license. 5 * See terms of license at www.gnu.org. 6 */ 7 package org.ejtools.jmx; 8 9 import javax.management.Attribute; 10 import javax.management.AttributeList; 11 import javax.management.MBeanInfo; 12 import javax.management.ObjectInstance; 13 import javax.management.ObjectName; 14 15 /** 16 * Tag interface to be implemented by object that provides access to MBean informations 17 * 18 * @author Laurent Etiemble 19 * @version $Revision: 1.8 $ 20 * @todo JavaDoc to complete 21 */ 22 public interface MBeanAccessor extends MBeanInvokeAccessor 23 { 24 /** 25 * Gets the objectInstance attribute of the MBeanAccessor object 26 * 27 * @return The objectInstance value 28 * @exception Exception Description of the Exception 29 */ 30 public ObjectInstance getObjectInstance() 31 throws Exception; 32 33 34 /** 35 * Gets the attributes attribute of the MBeanAccessor object 36 * 37 * @param as Description of the Parameter 38 * @return The attributes value 39 * @exception Exception Description of the Exception 40 */ 41 public AttributeList getAttributes(String as[]) 42 throws Exception; 43 44 45 /** 46 * Sets the attributes attribute of the MBeanAccessor object 47 * 48 * @param attributelist The new attributes value 49 * @return Description of the Return Value 50 * @exception Exception Description of the Exception 51 */ 52 public AttributeList setAttributes(AttributeList attributelist) 53 throws Exception; 54 55 56 /** 57 * Gets the mBeanInfo attribute of the MBeanAccessor object 58 * 59 * @return The mBeanInfo value 60 */ 61 public MBeanInfo getMBeanInfo(); 62 63 64 /** 65 * Gets the instanceOf attribute of the MBeanAccessor object 66 * 67 * @param s Description of the Parameter 68 * @return The instanceOf value 69 * @exception Exception Description of the Exception 70 */ 71 public boolean isInstanceOf(String s) 72 throws Exception; 73 74 75 /** 76 * Sets the attribute attribute of the MBeanAccessor object 77 * 78 * @param attribute The new attribute value 79 * @exception Exception Description of the Exception 80 */ 81 public void setAttribute(Attribute attribute) 82 throws Exception; 83 84 85 /** 86 * Gets the objectName attribute of the MBeanAccessor object 87 * 88 * @return The objectName value 89 */ 90 public ObjectName getObjectName(); 91 92 93 /** 94 * Gets the canonicalName attribute of the MBeanAccessor object 95 * 96 * @return The canonicalName value 97 */ 98 public String getCanonicalName(); 99 100 101 /** 102 * Gets the attribute attribute of the MBeanAccessor object 103 * 104 * @param attribute Description of the Parameter 105 * @return The attribute value 106 * @exception Exception Description of the Exception 107 */ 108 public Object getAttribute(String attribute) 109 throws Exception; 110 111 112 /** 113 * Description of the Method 114 * 115 * @exception Exception Description of the Exception 116 */ 117 public void unregisterMBean() 118 throws Exception; 119 } 120