com.ibm.streamsx.topology.context

Class StreamsContextFactory

  • java.lang.Object
    • com.ibm.streamsx.topology.context.StreamsContextFactory


  • public class StreamsContextFactory
    extends java.lang.Object
    Factory for creating StreamsContext instances.
    • Constructor Detail

      • StreamsContextFactory

        public StreamsContextFactory()
    • Method Detail

      • getEmbedded

        public static StreamsContext<com.ibm.streams.flow.javaprimitives.JavaTestableGraph> getEmbedded()
        Get an EMBEDDED context.
        Topology is executed within the Java virtual machine that declared it. This requires that the topology only contains Java functions or primitive operators.
        Returns:
        An EMBEDDED context.
        See Also:
        StreamsContext.Type.EMBEDDED
      • getStreamsContext

        public static StreamsContext<?> getStreamsContext(java.lang.String type)
        Get a StreamsContext from its type name.
        Parameters:
        type - Name of the type from its enumeration name.
        Returns:
        An StreamsContext instance.
        See Also:
        StreamsContext.Type
      • getDefaultDomainId

        public static java.lang.String getDefaultDomainId()
        Get the default Streams domain identifier.
        Returns the default Streams domain identifier used by contexts DISTRIBUTED and DISTRIBUTED_TESTER.

        This is obtained from the environment variable STREAMS_DOMAIN_ID.

        Returns:
        Default Streams domain identifier.
        Since:
        1.7
      • getDefaultInstanceId

        public static java.lang.String getDefaultInstanceId()
        Get the default Streams instance identifier.
        Returns the default Streams instance identifier used by contexts DISTRIBUTED and DISTRIBUTED_TESTER.

        This is obtained from the environment variable STREAMS_INSTANCE_ID.

        Returns:
        Default Streams instance identifier.
        Since:
        1.7
streamsx.topology 2.1 @ IBMStreams GitHub