public interface ContextProperties
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APP_DIR
Location of the generated application directory
when creating a Streams application bundle.
|
static java.lang.String |
COMPILE_INSTALL_DIR
Override IBM Streams install directory for
bundle compilation, defaults to $STREAMS_INSTALL.
|
static java.lang.String |
FORCE_REMOTE_BUILD
Flag to be supplied to force the compilation to occur on a
Bluemix instance, if possible.
|
static java.lang.String |
KEEP_ARTIFACTS
Keep any intermediate artifacts.
|
static java.lang.String |
SUBMISSION_PARAMS
Submission parameters to be supplied to the topology when
submitted for
DISTRIBUTED , STANDALONE
or ANALYTIC_SERVICE execution. |
static java.lang.String |
TOOLKIT_DIR
Location of the generated toolkit root.
|
static java.lang.String |
TRACING_LEVEL
Trace level for a
StreamsContext.Type.DISTRIBUTED or
StreamsContext.Type.STANDALONE application. |
static java.lang.String |
VMARGS
Java virtual machine arguments.
|
static final java.lang.String APP_DIR
StreamsContext.submit(com.ibm.streamsx.topology.Topology, java.util.Map)
then a unique location will be used, and placed into the configuration with this key.
The value should be a String
that is the absolute path of the application directory.static final java.lang.String TOOLKIT_DIR
StreamsContext.submit(com.ibm.streamsx.topology.Topology, java.util.Map)
then a unique location will be used, and placed into the configuration with this key.
The value should be a String
that is the absolute path of the toolkit directory.static final java.lang.String VMARGS
JavaPrimitive
.
For example, setting the maximum heap memory to 2GB:
List<String> vmArgs = new ArrayList<>();
vmArgs.add("-Xmx2048m");
config.put(ContextProperties.VMARGS, vmArgs);
List<String>
.
static final java.lang.String KEEP_ARTIFACTS
Boolean
.static final java.lang.String TRACING_LEVEL
StreamsContext.Type.DISTRIBUTED
or
StreamsContext.Type.STANDALONE
application. Value is an instance
of java.util.logging.Level
including instances of
com.ibm.streams.operator.logging.TraceLevel
.static final java.lang.String COMPILE_INSTALL_DIR
static final java.lang.String SUBMISSION_PARAMS
DISTRIBUTED
, STANDALONE
or ANALYTIC_SERVICE
execution.
The property value is a Map<String,Object>
where the key
is the parameter name and the value is the parameter value.
e.g.,
Supplier<Integer> topology.createSubmissionParameter("p1", 5);
...
ContextProperties config = new HashMap<>();
Map<String,Object> params = new HashMap<>();
params.put("p1", 10);
config.put(SUBMISSION_PARAMS, params);
... StreamsContextFactory.getStreamsContext(DISTRIBUTED)
.submit(topology, config);
See Topology.createSubmissionParameter(String, Class)
static final java.lang.String FORCE_REMOTE_BUILD
ANALYTICS_SERVICE
context.
Its values can be true
and false
. If true,
it will force remote compilation when possible. If false
(or unset), the parameter will have no impact.
If the FORCE_REMOTE
parameter is supplied with a
value of true
, the SERVICE_NAME
and
VCAP_SERVICES
parameters must also supplied.
Otherwise, an error will be thrown.