T - Type of value returned from submitpublic interface StreamsContext<T>
StreamsContext provides the ability to turn
a Topology into an executable.
The type of the context determines
the form of the executable, see StreamsContext.Type.| Modifier and Type | Interface and Description |
|---|---|
static class |
StreamsContext.Type
Types of the
IBM Streams context that a
Topology can be executed against. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SUBMISSION_DEPLOY |
static java.lang.String |
SUBMISSION_GRAPH |
static java.lang.String |
SUBMISSION_RESULTS |
static java.lang.String |
SUBMISSION_RESULTS_FILE |
| Modifier and Type | Method and Description |
|---|---|
StreamsContext.Type |
getType()
The type of this context.
|
boolean |
isSupported(Topology topology)
Answers if this StreamsContext supports execution of the
topology. |
java.util.concurrent.Future<T> |
submit(com.ibm.json.java.JSONObject submission)
Submit a topology} to this Streams context as a JSON object.
|
java.util.concurrent.Future<T> |
submit(Topology topology)
Submit
topology to this Streams context. |
java.util.concurrent.Future<T> |
submit(Topology topology,
java.util.Map<java.lang.String,java.lang.Object> config)
Submit
topology to this Streams context with a specific configuration. |
static final java.lang.String SUBMISSION_DEPLOY
static final java.lang.String SUBMISSION_GRAPH
static final java.lang.String SUBMISSION_RESULTS
static final java.lang.String SUBMISSION_RESULTS_FILE
StreamsContext.Type getType()
boolean isSupported(Topology topology)
topology.topology - Topology to evaluate.StreamsContext.Type.EMBEDDEDjava.util.concurrent.Future<T> submit(Topology topology) throws java.lang.Exception
topology to this Streams context.topology - Topology to be submitted.StreamsContext.Type
returned by getType() for details on what the encapsulated returned
value represents.java.lang.Exception - Exception submitting the topology.java.util.concurrent.Future<T> submit(Topology topology, java.util.Map<java.lang.String,java.lang.Object> config) throws java.lang.Exception
topology to this Streams context with a specific configuration.topology - Topology to be submitted.config - Configuration to be used for the submission, may be modified by this method.StreamsContext.Type
returned by getType() for details on what the encapsulated returned
value represents.java.lang.Exception - Exception submitting the topology.ContextPropertiesjava.util.concurrent.Future<T> submit(com.ibm.json.java.JSONObject submission) throws java.lang.Exception
deploy - Optional - Deployment information.graph - Required - JSON representation of the topology graph.submission - Topology and deployment info to be submitted.StreamsContext.Type
returned by getType() for details on what the encapsulated returned
value represents.java.lang.Exception - Exception submitting the topology.ContextProperties