Samplepublic interface Sample implements Utility, Singleton, com.sun.appserv.management.base.AMXInterface for a sample MBean , used as target for sample and test code.
Various Attributes of varying types are made available for testing. |
Fields Summary |
---|
public static final String | J2EE_TYPEThe j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}. | public static final String | SAMPLE_NOTIFICATION_TYPEThe type of Notification emitted by emitNotification(). | public static final String | USER_DATA_KEYThe key to access user data within the Map obtained from Notification.getUserData(). |
Methods Summary |
---|
public void | addAttribute(java.lang.String name, java.lang.Object value)Add a new Attribute. After this, the MBeanInfo will contain an MBeanAttributeInfo
for this Attribute.
| public byte[] | downloadBytes(int numBytes)
| public void | emitNotifications(java.lang.Object data, int numNotifs, long intervalMillis)Emit 'numNotifs' notifications of type
SAMPLE_NOTIFICATION_TYPE at the specified interval.
| public void | removeAttribute(java.lang.String name)Remove an Attribute. After this, the MBeanInfo will no longer
contain an MBeanAttributeInfo for this Attribute.
| public void | uploadBytes(byte[] bytes)For testing bandwidth...
|
|