Class EPRuntimeProvider
java.lang.Object
com.espertech.esper.runtime.client.EPRuntimeProvider
Factory for instances of
EPRuntime
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
For the default runtime instance the URI value is "default". -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EPRuntime
Returns the runtime for the default URI.static EPRuntime
getDefaultRuntime
(com.espertech.esper.common.client.configuration.Configuration configuration) Returns the default runtime.static EPRuntime
getDefaultRuntime
(com.espertech.esper.common.client.configuration.Configuration configuration, EPRuntimeOptions options) Returns the default runtime.static EPRuntime
getExistingRuntime
(String uri) Returns an existing runtime.static EPRuntime
getRuntime
(String uri) Returns a runtime for a given runtime URI.static EPRuntime
getRuntime
(String uri, com.espertech.esper.common.client.configuration.Configuration configuration) Returns a runtime for a given URI.static EPRuntime
getRuntime
(String uri, com.espertech.esper.common.client.configuration.Configuration configuration, EPRuntimeOptions options) Returns a runtime for a given URI.static String[]
Returns a list of known URIs.static boolean
hasRuntime
(String uri) Returns an indicator whether a runtime for the given URI is allocated (true) or is not allocated (false)
-
Field Details
-
DEFAULT_RUNTIME_URI
For the default runtime instance the URI value is "default".- See Also:
-
-
Constructor Details
-
EPRuntimeProvider
public EPRuntimeProvider()
-
-
Method Details
-
getDefaultRuntime
Returns the runtime for the default URI. The URI value for the runtime returned is "default".- Returns:
- default runtime
-
getDefaultRuntime
public static EPRuntime getDefaultRuntime(com.espertech.esper.common.client.configuration.Configuration configuration) throws com.espertech.esper.common.client.configuration.ConfigurationException Returns the default runtime. The URI value for the runtime returned is "default".- Parameters:
configuration
- is the configuration for the runtime- Returns:
- default instance of the runtime.
- Throws:
com.espertech.esper.common.client.configuration.ConfigurationException
- to indicate a configuration problem
-
getDefaultRuntime
public static EPRuntime getDefaultRuntime(com.espertech.esper.common.client.configuration.Configuration configuration, EPRuntimeOptions options) throws com.espertech.esper.common.client.configuration.ConfigurationException Returns the default runtime. The URI value for the runtime returned is "default".- Parameters:
configuration
- is the configuration for the runtimeoptions
- runtime options- Returns:
- default instance of the runtime.
- Throws:
com.espertech.esper.common.client.configuration.ConfigurationException
- to indicate a configuration problem
-
getRuntime
Returns a runtime for a given runtime URI.Use the URI of "default" or null to return the default runtime.
- Parameters:
uri
- - the URI- Returns:
- runtime for the given URI.
-
getRuntime
public static EPRuntime getRuntime(String uri, com.espertech.esper.common.client.configuration.Configuration configuration) throws com.espertech.esper.common.client.configuration.ConfigurationException Returns a runtime for a given URI. Use the URI of "default" or null to return the default runtime.- Parameters:
uri
- - the runtime URI. If null provided it assumes "default".configuration
- is the configuration for the runtime- Returns:
- Runtime for the given URI.
- Throws:
com.espertech.esper.common.client.configuration.ConfigurationException
- to indicate a configuration problem
-
getRuntime
public static EPRuntime getRuntime(String uri, com.espertech.esper.common.client.configuration.Configuration configuration, EPRuntimeOptions options) throws com.espertech.esper.common.client.configuration.ConfigurationException Returns a runtime for a given URI. Use the URI of "default" or null to return the default runtime.- Parameters:
uri
- - the runtime URI. If null provided it assumes "default".configuration
- is the configuration for the runtimeoptions
- runtime startup options- Returns:
- Runtime for the given URI.
- Throws:
com.espertech.esper.common.client.configuration.ConfigurationException
- to indicate a configuration problem
-
getExistingRuntime
Returns an existing runtime. Returns null if the runtime for the given URI has not been initialized or the runtime for the given URI is in destroyed state.- Parameters:
uri
- - the URI. If null provided it assumes "default".- Returns:
- Runtime for the given URI.
-
getRuntimeURIs
Returns a list of known URIs.Returns a the value "default" for the default runtime.
- Returns:
- array of URI strings
-
hasRuntime
Returns an indicator whether a runtime for the given URI is allocated (true) or is not allocated (false)- Parameters:
uri
- runtime uri- Returns:
- indicator
-