Interface Sample

    • Field Detail

      • SAMPLE_NOTIFICATION_TYPE

        static final String SAMPLE_NOTIFICATION_TYPE
        The type of Notification emitted by emitNotification().
        See Also:
        Constant Field Values
      • USER_DATA_KEY

        static final String USER_DATA_KEY
        The key to access user data within the Map obtained from Notification.getUserData().
        See Also:
        Constant Field Values
    • Method Detail

      • emitNotifications

        @ManagedOperation(impact=1)
        void emitNotifications​(Object data,
                               int numNotifs,
                               long intervalMillis)
        Emit 'numNotifs' notifications of type SAMPLE_NOTIFICATION_TYPE at the specified interval.
        Parameters:
        data - arbitrary data which will be placed into the Notification's UserData field.
        numNotifs - number of Notifications to issue >= 1
        intervalMillis - interval at which Notifications should be issued >= 0
      • addAttribute

        @ManagedOperation(impact=1)
        void addAttribute​(String name,
                          Object value)
        Add a new Attribute. After this, the MBeanInfo will contain an MBeanAttributeInfo for this Attribute.
        Parameters:
        name -
        value -
      • removeAttribute

        @ManagedOperation(impact=1)
        void removeAttribute​(String name)
        Remove an Attribute. After this, the MBeanInfo will no longer contain an MBeanAttributeInfo for this Attribute.
      • getAllSortsOfStuff

        @ManagedAttribute
        Object[] getAllSortsOfStuff()
        Attribute whose values will have a variety of types that should pass the AMXValidtor