public interface EPStage
This API is under development for version 8.4 and newer, and is considered UNSTABLE.
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the stage.
|
EPStageDeploymentService |
getDeploymentService()
Returns the stage's deployment service that provides information about staged deployments.
|
EPStageEventService |
getEventService()
Returns the stage's event service that can be used to send events to the stage and to advance time for the stage.
|
java.lang.String |
getURI()
Returns the stage unique identifier URI.
|
void |
stage(java.util.Collection<java.lang.String> deploymentIds)
Stage deployments.
|
void |
unstage(java.util.Collection<java.lang.String> deploymentIds)
Un-stage deployments.
|
void stage(java.util.Collection<java.lang.String> deploymentIds) throws EPStageException, EPStageDestroyedException
This effectively removes the deployment from the runtime and adds it to the stage's deployments.
The deployment can be obtained from EPStageDeploymentService
and can no longer be obtained from EPRuntime.getDeploymentService()
.
The staged deployments only receive events that the application sends using the EPStageEventService
for this stage.
The staged deployments only advance time according to the application advancing time using the EPStageEventService
for this stage.
The staged deployments no longer receive events that the application sends into the runtime EPRuntime.getEventService()
.
The staged deployments no longer advance time according to time advancing for the runtime EPRuntime.getEventService()
.
Requires that dependent public or protected (not preconfigured) EPL objects are also getting staged.
deploymentIds
- deployment ids of deployments to stageEPStageException
- if preconditions validation fails or a deployment does not existEPStageDestroyedException
- if the stage is already destroyedvoid unstage(java.util.Collection<java.lang.String> deploymentIds) throws EPStageException, EPStageDestroyedException
This effectively removes the deployment from the stage and adds it to the runtime deployments.
The deployment can be obtained from EPRuntime.getDeploymentService()
and can no longer be obtained from EPStageDeploymentService
.
The un-staged deployments only receive events that the application sends using the runtime EPRuntime.getEventService()
.
The un-staged deployments only advance time according to the application advancing time using the runtime EPRuntime.getEventService()
.
The staged deployments no longer receive events that the application sends into the EPStageEventService
for this stage.
The staged deployments no longer advance time according to time advancing for the EPStageEventService
for this stage.
Requires that dependent public or protected (not preconfigured) EPL objects are also getting un-staged.
deploymentIds
- deployment ids of deployments to un-stageEPStageException
- if preconditions validation fails or a deployment does not existEPStageDestroyedException
- if the stage is already destroyedEPStageDeploymentService getDeploymentService() throws EPStageDestroyedException
EPStageDestroyedException
- if the stage is already destroyedEPStageEventService getEventService() throws EPStageDestroyedException
EPStageDestroyedException
- if the stage is already destroyedvoid destroy() throws EPException
Requires that any deployments are un-staged.
EPException
- when the destroy operation failsjava.lang.String getURI()