com.ibm.streams.operator.control

Class AbstractPersistentControlMBean<T>

    • Constructor Detail

      • AbstractPersistentControlMBean

        protected AbstractPersistentControlMBean(javax.management.MBeanNotificationInfo... info)
    • Method Detail

      • persistControlState

        protected void persistControlState(byte[] controlState)
                                    throws java.io.IOException
        Persist control state for this MBean using ControlPlaneMXBean#persistControlState(ObjectName, byte[]).
        Parameters:
        controlState -
        Throws:
        java.io.IOException
      • setupComplete

        public void setupComplete()
        Called when the JCP has completed its persistent setup of this MBean. This is always called after the MBean has been registered.
        For the first (explicit) creation of the MBean using createMBean(), it will be called once the MBean's constructor arguments have been persisted.
        On subsequent creations of the MBean, driven by the previous persist of the constructor arguments, it will be called after PersistentControlMBean.updateControlState(byte[]) if the MBean previously persisted data using persistControlState(byte[]) or ControlPlaneMXBean.persistControlState(javax.management.ObjectName, byte[]), otherwise it is called once it is determined no control data was persisted.
        Once this method is called, this MBean has its most recent control state.

        This implementation does nothing, sub-classes may override to provide any required setup.

        Specified by:
        setupComplete in interface PersistentControlMBean