public final class EPRuntimeProvider
extends java.lang.Object
EPRuntime
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_RUNTIME_URI
For the default runtime instance the URI value is "default".
|
Constructor and Description |
---|
EPRuntimeProvider() |
Modifier and Type | Method and Description |
---|---|
static EPRuntime |
getDefaultRuntime()
Returns the runtime for the default URI.
|
static EPRuntime |
getDefaultRuntime(Configuration configuration)
Returns the default runtime.
|
static EPRuntime |
getExistingRuntime(java.lang.String uri)
Returns an existing runtime.
|
static EPRuntime |
getRuntime(java.lang.String uri)
Returns a runtime for a given runtime URI.
|
static EPRuntime |
getRuntime(java.lang.String uri,
Configuration configuration)
Returns a runtime for a given URI.
|
static java.lang.String[] |
getRuntimeURIs()
Returns a list of known URIs.
|
static boolean |
hasRuntime(java.lang.String uri)
Returns an indicator whether a runtime for the given URI is allocated (true) or is not allocated (false)
|
public static final java.lang.String DEFAULT_RUNTIME_URI
public static EPRuntime getDefaultRuntime()
public static EPRuntime getDefaultRuntime(Configuration configuration) throws ConfigurationException
configuration
- is the configuration for the runtimeConfigurationException
- to indicate a configuration problempublic static EPRuntime getRuntime(java.lang.String uri)
Use the URI of "default" or null to return the default runtime.
uri
- - the URIpublic static EPRuntime getRuntime(java.lang.String uri, Configuration configuration) throws ConfigurationException
uri
- - the runtime URI. If null provided it assumes "default".configuration
- is the configuration for the runtimeConfigurationException
- to indicate a configuration problempublic static EPRuntime getExistingRuntime(java.lang.String uri)
uri
- - the URI. If null provided it assumes "default".public static java.lang.String[] getRuntimeURIs()
Returns a the value "default" for the default runtime.
public static boolean hasRuntime(java.lang.String uri)
uri
- runtime uri