Java Native Functions: com.ibm.streamsx.plumbing.control

com.ibm.streamsx.plumbing > com.ibm.streamsx.plumbing 1.0.0 > com.ibm.streamsx.plumbing.control > Java Native Functions

This page documents native functions that can be invoked from SPL, including the SPL interfaces that can be used to invoke each of the native functions.

Functions

<string T> public stateful boolean createBooleanControlVariable(T name, boolean shared, boolean initialValue)

Create a boolean control variable named name. If shared is true then the control variable is intended for use by multiple operators,if false then the control variable is intended for use for a single operator. A control variable may be created by multiple operators, the first will create the MXBeanrepresenting the control variable, subsequent creates will just reference the exisitng MXBean.

<string T> public stateful boolean createFloat64ControlVariable(T name, boolean shared, float64 initialValue)

Create a float64 control variable named name. If shared is true then the control variable is intended for use by multiple operators,if false then the control variable is intended for use for a single operator. A control variable may be created by multiple operators, the first will create the MXBeanrepresenting the control variable, subsequent creates will just reference the exisitng MXBean.

<string T> public boolean getBooleanControlVariable(T name)

Get the value of name boolean control variable. Any operator invoking this function must call createBooleanControlVariable, typically in its logic state clause, before invoking this function.

<string T> public float64 getFloat64ControlVariable(T name)

Get the value of name float64 control variable. Any operator invoking this function must call createFloat64ControlVariable, typically in its logic state clause, before invoking this function.

<string T> public stateful void setBooleanControlVariable(T name, boolean value)

Set the value of name boolean control variable to value. Any operator invoking this function must call createBooleanControlVariable, typically in its logic state clause, before invoking this function.

<string T> public stateful void setFloat64ControlVariable(T name, float64 value)

Set the value of name float64 control variable to value. Any operator invoking this function must call createFloat64ControlVariable, typically in its logic state clause, before invoking this function.