public class StreamsContextFactory
extends java.lang.Object
StreamsContext instances.| Constructor and Description |
|---|
StreamsContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getDefaultDomainId()
Get the default Streams domain identifier.
|
static java.lang.String |
getDefaultInstanceId()
Get the default Streams instance identifier.
|
static java.lang.String |
getDefaultStreamsInstall()
Get the default Streams install location.
|
static StreamsContext<com.ibm.streams.flow.javaprimitives.JavaTestableGraph> |
getEmbedded()
Get an
EMBEDDED context. |
static StreamsContext<?> |
getStreamsContext(StreamsContext.Type type)
Get a
StreamsContext from its type. |
static StreamsContext<?> |
getStreamsContext(java.lang.String type)
Get a
StreamsContext from its type name. |
public static StreamsContext<com.ibm.streams.flow.javaprimitives.JavaTestableGraph> getEmbedded()
EMBEDDED context.
EMBEDDED context.StreamsContext.Type.EMBEDDEDpublic static StreamsContext<?> getStreamsContext(java.lang.String type)
StreamsContext from its type name.
type - Name of the type from its enumeration name.StreamsContext instance.StreamsContext.Typepublic static StreamsContext<?> getStreamsContext(StreamsContext.Type type)
StreamsContext from its type.
type - Type of the context.StreamsContext instance.StreamsContext.Typepublic static java.lang.String getDefaultDomainId()
DISTRIBUTED
and DISTRIBUTED_TESTER.
This is obtained from the environment variable STREAMS_DOMAIN_ID.
public static java.lang.String getDefaultInstanceId()
DISTRIBUTED
and DISTRIBUTED_TESTER.
This is obtained from the environment variable STREAMS_INSTANCE_ID.
public static java.lang.String getDefaultStreamsInstall()
BUNDLE,
STANDALONE_BUNDLE,
STANDALONE,
STANDALONE_TESTER,
DISTRIBUTED
and DISTRIBUTED_TESTER.
This is obtained from the environment variable STREAMS_INSTALL.