|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Sample
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 String |
J2EE_TYPE
The j2eeType as returned by AMX.getJ2EEType(). |
static String |
SAMPLE_NOTIFICATION_TYPE
The type of Notification emitted by emitNotification(). |
static 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, JMX_DOMAIN, NAME_KEY, NO_NAME, NOTIFICATION_PREFIX, NULL_NAME |
| Method Summary | |
|---|---|
void |
addAttribute(String name,
Object value)
Add a new Attribute. |
byte[] |
downloadBytes(int numBytes)
|
void |
emitNotifications(Object data,
int numNotifs,
long intervalMillis)
Emit 'numNotifs' notifications of type SAMPLE_NOTIFICATION_TYPE at the specified interval. |
void |
removeAttribute(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, isDAS |
| Methods inherited from interface javax.management.NotificationEmitter |
|---|
removeNotificationListener |
| Methods inherited from interface javax.management.NotificationBroadcaster |
|---|
addNotificationListener, getNotificationInfo, removeNotificationListener |
| Methods inherited from interface com.sun.appserv.management.base.AMXMBeanLogging |
|---|
getMBeanLoggerName, getMBeanLogLevel, setMBeanLogLevel |
| Field Detail |
|---|
static final String J2EE_TYPE
AMX.getJ2EEType().
static final String SAMPLE_NOTIFICATION_TYPE
static final String USER_DATA_KEY
| Method Detail |
|---|
void emitNotifications(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 >= 0
void addAttribute(String name,
Object value)
name - value - void removeAttribute(String name)
void uploadBytes(byte[] bytes)
byte[] downloadBytes(int numBytes)
|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved.