public interface DataSignal
Modifier and Type | Interface and Description |
---|---|
static interface |
DataSignal.ActivityHandler
Reacts to data being emitted from a producer i.e.
|
static interface |
DataSignal.DataToken
Token representing sensor/data processor output.
|
static interface |
DataSignal.ProcessorConfig
Base class representing processor configurations
|
Modifier and Type | Method and Description |
---|---|
DataSignal |
branch()
Starts a new branch on the most recent split signal.
|
AsyncOperation<RouteManager> |
commit()
Writes the data route to the board.
|
DataSignal |
end()
Signifies an end the current branch and reverts control back to the previous split signal.
|
DataSignal |
log(java.lang.String key)
Logs the data from the most recent data processor or sensor.
|
DataSignal |
monitor(DataSignal.ActivityHandler handler)
Attaches a monitor to the most recent data producer that watches for data activity
|
DataSignal |
process(DataSignal.ProcessorConfig config)
Attaches a data processor to the signal to filter to transform the data.
|
DataSignal |
process(java.lang.String configUri)
Attaches a data processor to the signal to filter or transform the data.
|
DataSignal |
process(java.lang.String key,
DataSignal.ProcessorConfig config)
Attaches a data processor to the signal to filter or transform the data.
|
DataSignal |
process(java.lang.String key,
java.lang.String configUri)
Attaches a data processor to the signal to filter or transform the data.
|
DataSignal |
split()
Splits a signal, allowing multiple processors to be attached to the same data.
|
DataSignal |
stream(java.lang.String key)
Creates a data stream that will broadcast data live from the most recent producer to your mobile device.
|
DataSignal split()
DataSignal branch()
DataSignal end()
DataSignal log(java.lang.String key)
key
- Unique key identifying this loggerRouteManager.setLogMessageHandler(String, RouteManager.MessageHandler)
DataSignal stream(java.lang.String key)
key
- Unique key identifying the streamRouteManager.subscribe(String, RouteManager.MessageHandler)
,
RouteManager.unsubscribe(String)
DataSignal monitor(DataSignal.ActivityHandler handler)
handler
- Handler to deal with when the signal is activeDataSignal process(java.lang.String key, DataSignal.ProcessorConfig config)
key
- Unique key identifying the processorconfig
- Token holding the processor configurationDataSignal process(DataSignal.ProcessorConfig config)
config
- Token holding the processor configurationDataSignal process(java.lang.String configUri)
configUri
- String URI specifying a processor configurationDataSignal process(java.lang.String key, java.lang.String configUri)
key
- Unique key identifying the processorconfigUri
- String URI specifying a processor configurationAsyncOperation<RouteManager> commit()