public interface Runtimes
Modifier and Type | Method and Description |
---|---|
void |
addRuntime(RuntimeDescriptor runtimeDescriptor,
OperatorSet operatorSet)
Adds or replaces an association between a runtime descriptor and an operator set.
|
void |
addRuntimeProvider(RuntimeProvider provider)
Adds the specified runtime provider to this manager.
|
boolean |
containsRuntimeDescriptor(java.lang.String runtimeName)
Returns
true if a descriptor for the runtime name exists, otherwise
false . |
OperatorSet |
getOperatorSet(java.lang.String runtimeName)
Returns the operator set associated with the specified runtime or
null if no such
set can be found. |
RuntimeDescriptor |
getRuntimeDescriptor(java.lang.String runtimeName)
Returns the runtime descriptor with the specified name or
null if no such
descriptor can be found. |
java.util.List<RuntimeDescriptor> |
getRuntimeDescriptors()
Returns a list of available runtime descriptors.
|
OperatorSet.Builder |
newOperatorSetBuilder()
Returns a builder that can be used to create an operator set.
|
RuntimeDescriptor |
newRuntimeDescriptor(java.lang.String name,
java.lang.String platform,
java.lang.String version,
java.lang.String expressionLanguage)
Returns a new runtime descriptor instance.
|
void |
removeRuntimeProvider(RuntimeProvider provider)
Removes the specified runtime provider from this manager.
|
RuntimeDescriptor newRuntimeDescriptor(java.lang.String name, java.lang.String platform, java.lang.String version, java.lang.String expressionLanguage)
name
- the unique runtime name e.g. "spark-scala-1.6"platform
- the platform name e.g. "spark-scala"version
- the platform version e.g. "1.6"expressionLanguage
- the expression language e.g. "spark-sql"addRuntime(RuntimeDescriptor, OperatorSet)
OperatorSet.Builder newOperatorSetBuilder()
java.util.List<RuntimeDescriptor> getRuntimeDescriptors()
addRuntime(RuntimeDescriptor, OperatorSet)
RuntimeDescriptor getRuntimeDescriptor(java.lang.String runtimeName)
null
if no such
descriptor can be found.
Calls the runtime provider to provision the runtime if it is not already defined.runtimeName
- the runtime namenull
getOperatorSet(String)
,
RuntimeDescriptor.getName()
,
containsRuntimeDescriptor(String)
boolean containsRuntimeDescriptor(java.lang.String runtimeName)
true
if a descriptor for the runtime name exists, otherwise
false
. Unlike getRuntimeDescriptor()
, this function does not attempt
to call any runtime providers to provision the runtime.runtimeName
- the runtime nametrue
if a descriptor for the runtime name existsgetRuntimeDescriptor(String)
OperatorSet getOperatorSet(java.lang.String runtimeName)
null
if no such
set can be found.
Calls the runtime provider to provision the runtime if it is not already defined.runtimeName
- the runtime namenull
getRuntimeDescriptor(String)
,
RuntimeDescriptor.getName()
void addRuntime(RuntimeDescriptor runtimeDescriptor, OperatorSet operatorSet)
runtimeDescriptor
- the runtime descriptoroperatorSet
- the operator setvoid addRuntimeProvider(RuntimeProvider provider)
addRuntime
).
If there is more than one provider it will try each
in turn until one is able to provision the runtime.provider
- the runtime providervoid removeRuntimeProvider(RuntimeProvider provider)
provider
- the runtime provider(C) Copyright IBM Corp. 1994, 2015. All Rights Reserved.