|
J2EE1.4 SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a sample MBean , used as target for sample and test code. Various Attributes of varying types are made available for testing.
Field Summary | |
static java.lang.String |
J2EE_TYPE
The j2eeType as returned by AMX.getJ2EEType() . |
static java.lang.String |
SAMPLE_NOTIFICATION_TYPE
The type of Notification emitted by emitNotification(). |
static java.lang.String |
USER_DATA_KEY
The key to access user data within the Map obtained from Notification.getUserData(). |
Fields inherited from interface com.sun.appserv.management.base.AMX |
FULL_TYPE_DELIM, GROUP_CONFIGURATION, GROUP_JSR77, GROUP_MONITORING, GROUP_OTHER, GROUP_UTILITY, J2EE_TYPE_KEY, NAME_KEY, NO_NAME, NULL_NAME |
Fields inherited from interface com.sun.appserv.management.base.AMXMBeanLogging |
LOG_RECORD_KEY, LOG_RECORD_NOTIFICATION_TYPE |
Method Summary | |
void |
addAttribute(java.lang.String name,
java.lang.Object value)
Add a new Attribute. |
byte[] |
downloadBytes(int numBytes)
|
void |
emitNotifications(java.lang.Object data,
int numNotifs,
long intervalMillis)
Emit 'numNotifs' notifications of type SAMPLE_NOTIFICATION_TYPE at the specified interval. |
void |
removeAttribute(java.lang.String name)
Remove an Attribute. |
void |
uploadBytes(byte[] bytes)
For testing bandwidth... |
Methods inherited from interface com.sun.appserv.management.base.AMX |
getContainer, getDomainRoot, getFullType, getGroup, getJ2EEType, getName |
Methods inherited from interface com.sun.appserv.management.base.AMXMBeanLogging |
getMBeanEmitLogNotifications, getMBeanLoggerName, getMBeanLogLevel, setMBeanEmitLogNotifications, setMBeanLogLevel |
Methods inherited from interface javax.management.NotificationEmitter |
removeNotificationListener |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener, getNotificationInfo, removeNotificationListener |
Field Detail |
public static final java.lang.String J2EE_TYPE
AMX.getJ2EEType()
.
public static final java.lang.String SAMPLE_NOTIFICATION_TYPE
public static final java.lang.String USER_DATA_KEY
Method Detail |
public void emitNotifications(java.lang.Object data, int numNotifs, long intervalMillis)
data
- arbitrary data which will be placed into the Notification's UserData field.numNotifs
- number of Notifications to issue >= 1intervalMillis
- interval at which Notifications should be issued >= 0public void addAttribute(java.lang.String name, java.lang.Object value)
name
- value
- public void removeAttribute(java.lang.String name)
public void uploadBytes(byte[] bytes)
public byte[] downloadBytes(int numBytes)
|
J2EE1.4 SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved.