Class SampleImpl
- java.lang.Object
-
- org.glassfish.admin.amx.impl.mbean.MBeanImplBase
-
- org.glassfish.admin.amx.impl.mbean.AMXImplBase
-
- org.glassfish.admin.amx.impl.mbean.SampleImpl
-
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,NotificationBroadcaster,NotificationEmitter,AMX_SPI,NotificationSender
public final class SampleImpl extends AMXImplBase
- See Also:
Sample
-
-
Field Summary
-
Fields inherited from class org.glassfish.admin.amx.impl.mbean.AMXImplBase
EMPTY_OBJECT_NAMES, GET, GET_PREFIX, mMBeanInfo, OBJECT_NAME_SUFFIX, SET
-
Fields inherited from class org.glassfish.admin.amx.impl.mbean.MBeanImplBase
EMPTY_STRING_ARRAY, mSelfObjectName, mServer
-
-
Constructor Summary
Constructors Constructor Description SampleImpl(ObjectName parentObjectName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(String name, Serializable value)byte[]downloadBytes(int numBytes)voidemitNotifications(Serializable data, int numNotifs, long interval)ObjectName[]getAllAMX()Object[]getAllSortsOfStuff()Purpose: have the AMXValidator check what we're returning as acceptableprotected SerializablegetAttributeManually(String name)Subclasses should override this to handle getAttribute( attrName ).MBeanInfogetMBeanInfo()voidremoveAttribute(String name)protected voidsetAttributeManually(Attribute attr)Subclasses should override this to handle setAttribute( attr ).voiduploadBytes(byte[] bytes)-
Methods inherited from class org.glassfish.admin.amx.impl.mbean.AMXImplBase
attributeNameToType, attributeTypeMatches, child, child, child, findGetter, findMethod, findSetter, getAncestorByType, getAttribute, getAttributeByMethod, getAttributeInfo, getAttributeInfos, getAttributeInternal, getAttributeNames, getAttributeNoThrow, getAttributes, getAttributeType, getChildren, getChildren, getChildren, getChildren, getChildrenMap, getDomainRoot, getDomainRootProxy, getLogger, getMBeanTracker, getName, getNotificationInfo, getObjectNameAttribute, getObjectNames, getObjectNamesForAttribute, getParent, getParentProxy, getProxy, getProxyFactory, getSelf, getSelf, getterNameMatches, handleException, handleGetAttributeException, handleInvokeThrowable, impossible, invoke, invokeManually, isReadOnlyAttribute, isUtilityMBean, java, operationNameMatches, postRegisterHook, postRegisterModifyMBeanInfo, preDeregisterHook, preRegister, preRegisterDone, preRegisterHook, preRegisterModifyName, registerChild, registerChildren, sendAttributeChangeNotification, setAttribute, setAttributeByMethod, setAttributeInternal, setAttributes, shouldEmitNotifications, stringify, supportsChildren, toString, unimplementedAttribute, unimplementedOperation, unregisterChildren
-
Methods inherited from class org.glassfish.admin.amx.impl.mbean.MBeanImplBase
_getMBeanLogLevel, addNotificationListener, addNotificationListener, createNotificationBuilder, debug, debug, debugMethod, debugMethod, enableAMXDebug, getAMXDebug, getDebugID, getDebugOutput, getJMXDomain, getListenerCount, getMBeanLogger, getMBeanLoggerName, getMBeanLogLevel, getMBeanLogLevelInt, getMBeanServer, getNotificationBuilder, getNotificationEmitter, getNotificationTypeListenerCount, getObjectName, logFine, logFiner, logFinest, logInfo, logSevere, logWarning, postDeregister, postDeregisterHook, postRegister, preDeregister, quote, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, setAMXDebug, setMBeanLogLevel, shouldOmitObjectNameForDebug, toString, trace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, removeNotificationListener
-
Methods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
-
-
-
-
Constructor Detail
-
SampleImpl
public SampleImpl(ObjectName parentObjectName)
-
-
Method Detail
-
emitNotifications
public void emitNotifications(Serializable data, int numNotifs, long interval)
-
addAttribute
public void addAttribute(String name, Serializable value)
-
removeAttribute
public void removeAttribute(String name)
-
getMBeanInfo
public MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfoin interfaceDynamicMBean- Overrides:
getMBeanInfoin classAMXImplBase
-
getAttributeManually
protected Serializable getAttributeManually(String name)
Description copied from class:AMXImplBaseSubclasses should override this to handle getAttribute( attrName ). It will be called if no appropriate getter is found.- Overrides:
getAttributeManuallyin classAMXImplBase
-
setAttributeManually
protected void setAttributeManually(Attribute attr)
Description copied from class:AMXImplBaseSubclasses should override this to handle setAttribute( attr ). It will be called if no appropriate setter is found.- Overrides:
setAttributeManuallyin classAMXImplBase
-
uploadBytes
public void uploadBytes(byte[] bytes)
-
downloadBytes
public byte[] downloadBytes(int numBytes)
-
getAllAMX
public ObjectName[] getAllAMX()
-
getAllSortsOfStuff
public Object[] getAllSortsOfStuff()
Purpose: have the AMXValidator check what we're returning as acceptable
-
-