com.ibm.streamsx.topology.context.remote

Interface RemoteContext<T>



  • public interface RemoteContext<T>
    • Field Detail

      • REMOTE_LOGGER

        static final java.util.logging.Logger REMOTE_LOGGER
        Logger used for the Topology API, name com.ibm.streamsx.topology. Must be defined here, in addition to Topology, since Topology depends on JSON4j.jar.
      • SUBMISSION_RESULTS_FILE

        static final java.lang.String SUBMISSION_RESULTS_FILE
        See Also:
        Constant Field Values
    • Method Detail

      • getType

        RemoteContext.Type getType()
        The type of this context.
        Returns:
        type of this context.
      • submit

        java.util.concurrent.Future<T> submit(com.google.gson.JsonObject submission)
                                       throws java.lang.Exception
        Submit a topology} to this Streams context as a JSON object. The JSON object contains two keys:
        • deploy - Optional - Deployment information.
        • graph - Required - JSON representation of the topology graph.
        Parameters:
        submission - Topology and deployment info to be submitted.
        Returns:
        Future for the submission, see the descriptions for the RemoteContext.Type returned by getType() for details on what the encapsulated returned value represents.
        Throws:
        java.lang.Exception - Exception submitting the topology.
streamsx.topology 1.5 @ IBMStreams GitHub