Class JmxNotificationConsumer

    • Field Detail

      • JMX_NOTIF_SOURCE

        public static final java.lang.String JMX_NOTIF_SOURCE
        See Also:
        Constant Field Values
    • Constructor Detail

      • JmxNotificationConsumer

        public JmxNotificationConsumer()
    • Method Detail

      • objectName

        protected java.lang.String objectName()
      • stop

        public void stop()
        Description copied from interface: ComponentLifecycle
        Stop the component

        A stopped component is not expected to be ready to process messages. In the case of AdaptrisMessageConsumer, calling stop will pause message delivery. Throwing a RuntimeException may cause unintended consequences

        Specified by:
        stop in interface ComponentLifecycle
      • close

        public void close()
        Description copied from interface: ComponentLifecycle
        Closes the component.

        A closed component should release any connections it uses, etc. and clean up completely. Throwing a RuntimeException may cause unintended consequences

        Specified by:
        close in interface ComponentLifecycle
      • setSerializer

        public void setSerializer​(NotificationSerializer serializer)
        Parameters:
        serializer - the serializer to set
      • handleNotification

        public void handleNotification​(javax.management.Notification notification,
                                       java.lang.Object handback)
        Specified by:
        handleNotification in interface javax.management.NotificationListener
      • getFailIfNotFound

        public java.lang.Boolean getFailIfNotFound()
        Returns:
        the failIfNotFound
      • setFailIfNotFound

        public void setFailIfNotFound​(java.lang.Boolean b)
        Whether or not to fail if the ObjectName is not found.

        If set to false, and the object is not found, then an attempt will be made periodically to check the MBeanServeConnection for the object instance availability; when it becomes available, the notification listener will be added at that point.

        Parameters:
        b - the failIfNotFound to set, default is true
      • getObjectName

        public java.lang.String getObjectName()
        The object name which we will register as a listener for.
      • setObjectName

        public void setObjectName​(java.lang.String objectName)
        The object name which we will register as a listener for.