Class GatewayEventStreamRpc
java.lang.Object
com.inductiveautomation.eventstream.gateway.rpc.GatewayEventStreamRpc
- All Implemented Interfaces:
EventStreamRpc
-
Field Summary
Fields inherited from interface com.inductiveautomation.eventstream.rpc.EventStreamRpc
SERIALIZER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDiagnostics
(String projectName, String path) Returns the current diagnostics for the given Event Stream.Returns a list of all available Event Stream encoders.List of all available Event Stream Handler descriptors.List of all available Event Stream Source descriptors.Returns the current state of the Event Stream.listEventStreams
(String project) Returns a list of all Event Streams in the given project.runEventStream
(String projectName, String path, EventStreamConfig config, EventStreamRunConfig runConfig) Starts the Event Stream with the given configuration.
-
Constructor Details
-
GatewayEventStreamRpc
-
-
Method Details
-
getSourceDescriptors
Description copied from interface:EventStreamRpc
List of all available Event Stream Source descriptors.- Specified by:
getSourceDescriptors
in interfaceEventStreamRpc
-
getHandlerDescriptors
Description copied from interface:EventStreamRpc
List of all available Event Stream Handler descriptors.- Specified by:
getHandlerDescriptors
in interfaceEventStreamRpc
-
getEventStreamEncoders
Description copied from interface:EventStreamRpc
Returns a list of all available Event Stream encoders.- Specified by:
getEventStreamEncoders
in interfaceEventStreamRpc
- Returns:
- List of Event Stream encoder descriptors
-
listEventStreams
Description copied from interface:EventStreamRpc
Returns a list of all Event Streams in the given project.- Specified by:
listEventStreams
in interfaceEventStreamRpc
- Parameters:
project
- Project name- Returns:
- List of Event Stream descriptions
-
getDiagnostics
Description copied from interface:EventStreamRpc
Returns the current diagnostics for the given Event Stream.- Specified by:
getDiagnostics
in interfaceEventStreamRpc
- Parameters:
projectName
- Project namepath
- Path to Event Stream- Returns:
- Current diagnostics for the Event Stream
-
runEventStream
public EventStreamDiagnostics runEventStream(String projectName, String path, EventStreamConfig config, EventStreamRunConfig runConfig) Description copied from interface:EventStreamRpc
Starts the Event Stream with the given configuration. Stops immediately after the first event.- Specified by:
runEventStream
in interfaceEventStreamRpc
- Parameters:
projectName
- Project namepath
- Path to Event Streamconfig
- Configuration for the Event StreamrunConfig
- Run configuration for the Event Stream- Returns:
- Current diagnostics for the Event Stream
-
getState
Description copied from interface:EventStreamRpc
Returns the current state of the Event Stream.- Specified by:
getState
in interfaceEventStreamRpc
- Parameters:
project
- Project namepath
- Path to Event Stream- Returns:
- Current state of the Event Stream
-