public class IotSPLStreams extends java.lang.Object
com.ibm.streamsx.iot
toolkit. In order to interact with IoT Platform
the SPL application
com.ibm.streamsx.iot.watson.apps::IotfOrganization
must be running.Modifier and Type | Method and Description |
---|---|
static void |
commandPublish(com.ibm.streamsx.topology.spl.SPLStream commandStream) |
static com.ibm.streamsx.topology.spl.SPLStream |
commandsSubscribe(com.ibm.streamsx.topology.TopologyElement te,
java.lang.String[] typeIds,
java.lang.String... cmdId)
Subscribe to sent device commands as SPL tuples.
|
static com.ibm.streamsx.topology.spl.SPLStream |
eventsSubscribe(com.ibm.streamsx.topology.TopologyElement te,
java.lang.String[] typeIds,
java.lang.String... eventId)
Subscribe to device events as SPL tuples.
|
static com.ibm.streamsx.topology.spl.SPLStream |
statusesSubscribe(com.ibm.streamsx.topology.TopologyElement te,
java.lang.String... typeId) |
public static com.ibm.streamsx.topology.spl.SPLStream eventsSubscribe(com.ibm.streamsx.topology.TopologyElement te, java.lang.String[] typeIds, java.lang.String... eventId)
eventId
. If eventId
is empty or passed as a null
array then all device events are subscribed to.
To receive device events the SPL application
com.ibm.streamsx.iot.watson.apps::IotfOrganization
must be
running in the same Streams instance.te
- Topology to create this source in.eventId
- Event identifiers to subscribe to. If no event identfIotStreams.eventsSubscribe(TopologyElement,
String...)
public static com.ibm.streamsx.topology.spl.SPLStream statusesSubscribe(com.ibm.streamsx.topology.TopologyElement te, java.lang.String... typeId)
public static com.ibm.streamsx.topology.spl.SPLStream commandsSubscribe(com.ibm.streamsx.topology.TopologyElement te, java.lang.String[] typeIds, java.lang.String... cmdId)
cmdId
. If cmdId
is empty or passed as a null
array then all device commands are subscribed to.
To receive device events the SPL application
com.ibm.streamsx.iot.watson.apps::IotfOrganization
must be
running in the same Streams instance.te
- Topology to create this source in.cmdId
- Command identifiers to subscribe to. If no command identifier
is passed then all commands are subscribed to.IotStreams.eventsSubscribe(TopologyElement,
String...)
public static void commandPublish(com.ibm.streamsx.topology.spl.SPLStream commandStream)