public class EPStageImpl extends Object implements EPStageSPI
Constructor and Description |
---|
EPStageImpl(String stageUri,
int stageId,
EPServicesContext servicesContext,
StageSpecificServices stageSpecificServices,
EPStageEventServiceSPI eventServiceStage,
EPStageDeploymentServiceImpl deploymentServiceStage,
com.espertech.esper.common.internal.util.DestroyCallback stageDestroyCallback) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the stage.
|
void |
destroyNoCheck() |
EPStageDeploymentServiceImpl |
getDeploymentService()
Returns the stage's deployment service that provides information about staged deployments.
|
EPStageEventServiceSPI |
getEventService()
Returns the stage's event service that can be used to send events to the stage and to advance time for the stage.
|
int |
getStageId() |
StageSpecificServices |
getStageSpecificServices() |
String |
getURI()
Returns the stage unique identifier URI.
|
void |
stage(Collection<String> deploymentIdsProvided)
Stage deployments.
|
void |
unstage(Collection<String> deploymentIdsProvided)
Un-stage deployments.
|
public EPStageImpl(String stageUri, int stageId, EPServicesContext servicesContext, StageSpecificServices stageSpecificServices, EPStageEventServiceSPI eventServiceStage, EPStageDeploymentServiceImpl deploymentServiceStage, com.espertech.esper.common.internal.util.DestroyCallback stageDestroyCallback)
public void stage(Collection<String> deploymentIdsProvided) throws EPStageException
EPStage
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.
stage
in interface EPStage
deploymentIdsProvided
- deployment ids of deployments to stageEPStageException
- if preconditions validation fails or a deployment does not existpublic void unstage(Collection<String> deploymentIdsProvided) throws EPStageException
EPStage
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.
unstage
in interface EPStage
deploymentIdsProvided
- deployment ids of deployments to un-stageEPStageException
- if preconditions validation fails or a deployment does not existpublic EPStageDeploymentServiceImpl getDeploymentService() throws EPStageDestroyedException
EPStage
getDeploymentService
in interface EPStage
EPStageDestroyedException
- if the stage is already destroyedpublic EPStageEventServiceSPI getEventService() throws EPStageDestroyedException
EPStage
getEventService
in interface EPStage
EPStageDestroyedException
- if the stage is already destroyedpublic StageSpecificServices getStageSpecificServices()
getStageSpecificServices
in interface EPStageSPI
public void destroy()
EPStage
Requires that any deployments are un-staged.
public void destroyNoCheck()
destroyNoCheck
in interface EPStageSPI
public String getURI()
EPStage
public int getStageId()
Copyright © 2005–2021. All rights reserved.