Click or drag to resize

EPRuntime Interface

The runtime for deploying and executing EPL.

Namespace:  com.espertech.esper.runtime.client
Assembly:  NEsper.Runtime (in NEsper.Runtime.dll) Version: 8.0.0.0
Syntax
C#
public interface EPRuntime

The EPRuntime type exposes the following members.

Properties
  NameDescription
Public propertyConfigurationDeepCopy
Returns a deep-copy of the configuration that is actively in use by the runtime.

Note: This can be an expensive operation.

Public propertyConfigurationTransient
Returns the transient configuration, which are configuration values that are passed by reference (and not by value)
Public propertyContext
Provides naming context for public named objects.

An extension point designed for use by input and output adapters as well as other extension services.

Public propertyContextPartitionService
Returns the context partition service, for context partition information
Public propertyDataFlowService
Returns the data flow service, for managing dataflows
Public propertyDeploymentService
Returns the deployment service, for deploying and undeploying compiled modules
Public propertyEventService
Returns the event service, for sending events to the runtime and for controlling time
Public propertyEventTypeService
Returns the event type service, for obtaining information on event types
Public propertyFireAndForgetService
Returns the fire-and-forget service, for executing fire-and-forget queries
Public propertyIsDestroyed
Returns true if the runtime is in destroyed state, or false if not.
Public propertyMetricsService
Returns the metrics service, for managing runtime and statement metrics reporting
Public propertyRenderEventService
Returns the event rendering service, for rendering events to JSON and XML
Public propertyRuntimeInstanceWideLock
Returns the runtime-instance global read-write lock. The send-event methods takes a read lock. The {@link EPDeploymentService#deploy(EPCompiled)} and {@link EPDeploymentService#undeploy(String)} methods take a write lock.
Public propertyRuntimePath
Returns a path object for use by the compiler that represents the EPL objects deployed into the runtime.
Public propertyURI
Returns the runtime URI, or "default" if this is the default runtime.
Public propertyVariableService
Returns the variable service, for reading and writing variables
Top
Methods
  NameDescription
Public methodAddRuntimeStateListener
Add a listener to runtime state changes that receives a before-destroy event. The listener collection applies set-semantics.
Public methodDestroy
Destroys the runtime.

Releases any resources held by the runtime. The runtime enteres a state in which operations provided by the runtime are not guaranteed to operate properly.

Removes the runtime URI from the known URIs. Allows configuration to change for the instance.

When destroying a runtime your application must make sure that threads that are sending events into the runtime have completed their work. More generally, the runtime should not be currently in use during or after the destroy operation.

Public methodInitialize
Frees any resources associated with this runtime instance, and leaves the runtime instance ready for further use.

Do not use the administrative and runtime instances obtained before the initialize (including related services such as configuration, module management, etc.). Your application must obtain new administrative and runtime instances.

Retains the existing configuration of the runtime instance but forgets any runtime configuration changes.

Stops and destroys any existing statement resources such as filters, patterns, expressions, views.

Public methodRemoveAllRuntimeStateListeners
Remove all listeners to runtime state changes.
Public methodRemoveRuntimeStateListener
Removate a listener to runtime state changes.
Top
See Also