Class RemoteUsage.UsageNotificationManager

    • Method Detail

      • getUsageParametersInterfaceType

        public String getUsageParametersInterfaceType()
        Get the usage parameters interface type. This method only returns a non-null value if the usage parameters interface was declared using the Rhino extension mechanism.
        Returns:
        the usage parameters interface type name, or null if the usage parameters interface was declared using the standard SLEE mechanism.
      • getParameterCount

        public int getParameterCount()
                              throws ManagementException
        Get the number of usage parameter names available to have notifications enabled.
        Returns:
        number of usage parameters
        Throws:
        ManagementException
      • getNotificationsEnabled

        public boolean getNotificationsEnabled​(String name)
                                        throws ManagementException
        Determine whether notifications are enabled for a usage parameter. After checking the the usage parameter name is valid, this method invokes getAttribute using the MBean server and object name stored in this instance of `UsageNotificationManager`: [source,java] ---- server.getAttribute(objectName, name + "NotificationsEnabled"); ----
        Parameters:
        name - the name of the usage parameter to test
        Returns:
        true - enabled, false - disabled
        Throws:
        ManagementException - if any problem occurs invoking getAttribute on the MBean server
      • setNotificationsEnabled

        public void setNotificationsEnabled​(String name,
                                            boolean enabled)
                                     throws ManagementException
        Enable notifications for a usage parameter. This method simply invokes setAttribute using the MBean server and object name stored in this instance of `UsageNotificationManager`: [source,java] ---- server.setAttribute(objectName, new Attribute(name + "NotificationsEnabled", enabled)); ----
        Parameters:
        name - the name of the usage parameter to enable/disable notifications for
        enabled - true - enabled, false - disabled
        Throws:
        ManagementException - if any problem occurs invoking setAttribute on the MBean server