@Taxonomy(stability=NOT_AN_INTERFACE) @AMXMBeanMetadata(singleton=true, globalSingleton=true, leaf=true, immutableMBeanInfo=false) public interface Sample extends AMXProxy
Modifier and Type | Field and Description |
---|---|
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().
|
Modifier and Type | Method and Description |
---|---|
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.
|
ObjectName[] |
getAllAMX()
explicity getter using an array, must work through proxy code
|
Object[] |
getAllSortsOfStuff()
Attribute whose values will have a variety of types that should pass the AMXValidtor
|
void |
removeAttribute(String name)
Remove an Attribute.
|
void |
uploadBytes(byte[] bytes)
For testing bandwidth...
|
as, attributeNames, attributesMap, attributesMap, child, child, childrenMap, childrenMap, childrenMaps, childrenSet, extra, invokeOp, invokeOp, java, nameProp, objectName, parent, parentPath, path, type, valid
getChildren, getName, getParent
static final String SAMPLE_NOTIFICATION_TYPE
static final String USER_DATA_KEY
@ManagedOperation(impact=1) 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@ManagedOperation(impact=1) void addAttribute(String name, Object value)
name
- value
- @ManagedOperation(impact=1) void removeAttribute(String name)
@ManagedOperation(impact=1) void uploadBytes(byte[] bytes)
@ManagedOperation(impact=0) byte[] downloadBytes(int numBytes)
@ManagedAttribute ObjectName[] getAllAMX()
@ManagedAttribute Object[] getAllSortsOfStuff()
Copyright © 2018. All rights reserved.