public interface RemoteContext<T>
Modifier and Type | Interface and Description |
---|---|
static class |
RemoteContext.Type
Types of the context that a
JSON graph can be executed against.
|
Modifier and Type | Field and Description |
---|---|
static java.util.logging.Logger |
REMOTE_LOGGER
Logger used for the Topology API, name
com.ibm.streamsx.topology . |
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 |
---|---|
RemoteContext.Type |
getType()
The type of this context.
|
java.util.concurrent.Future<T> |
submit(com.google.gson.JsonObject submission)
Submit a topology} to this Streams context as a JSON object.
|
static final java.util.logging.Logger REMOTE_LOGGER
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
RemoteContext.Type getType()
java.util.concurrent.Future<T> submit(com.google.gson.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.RemoteContext.Type
returned by getType()
for details on what the encapsulated returned
value represents.java.lang.Exception
- Exception submitting the topology.