com.ibm.streams.operator.control.variable

Interface DoubleControlVariableMXBean

  • All Superinterfaces:
    PersistentControlMBean
    All Known Implementing Classes:
    DoubleControlVariable


    public interface DoubleControlVariableMXBean
    extends PersistentControlMBean
    MXBean representing a double control variable.
    This MXBean implements PersistentControlMBean to persist its value across Job Control Plane restarts.

    An attribute change notification (javax.management.AttributeChangeNotification) is sent when the value of this control variable changes. The attribute name is Value.

    It is recommended operators use createDoubleControlVariable instead of manually creating and registering DoubleControlVariable MBeans. ControlVariableAccessor provides simple support of a double control variable, hiding all the JMX interactions with the Job Control Plane.

    Since:
    InfoSphere® Streams Version 4.0
    • Method Detail

      • getName

        java.lang.String getName()
        Get the name of this control variable.
        Returns:
        the name of this control variable
      • getValue

        double getValue()
        Get the value of this control variable.
        Returns:
        the value of this control variable.
      • setValue

        void setValue(double value)
                      throws java.io.IOException
        Set the value of this control variable. If the value changes an AttributeChangeNotification is sent using attribute name Value.
        Parameters:
        value - New value for this control variable.
        Throws:
        java.io.IOException - Exception persisting the control variable in the Job Control Plane.