public class EPStageServiceImpl extends Object implements EPStageServiceSPI
Constructor and Description |
---|
EPStageServiceImpl(EPServicesContext services,
AtomicBoolean serviceStatusProvider) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
destroy() |
EPStage |
getExistingStage(String stageUri)
Returns the existing stage for the provided URI, or null if a stage for the URI has not already been allocated.
|
EPStage |
getStage(String stageUri)
Allocate a new stage or returns the existing stage if the stage for the same URI is already allocated.
|
Map<String,EPStageImpl> |
getStages() |
String[] |
getStageURIs()
Returns the URI values of all stages that are currently allocated.
|
boolean |
isEmpty() |
void |
recoverDeployment(String stageUri,
DeploymentInternal deployment) |
void |
recoveredStageInitialize(Supplier<Collection<com.espertech.esper.common.client.EventType>> availableTypes) |
void |
recoverStage(String stageURI,
int stageId,
long stageCurrentTime) |
public EPStageServiceImpl(EPServicesContext services, AtomicBoolean serviceStatusProvider)
public EPStage getStage(String stageUri)
EPStageService
getStage
in interface EPStageService
stageUri
- unique identifierpublic EPStage getExistingStage(String stageUri)
EPStageService
getExistingStage
in interface EPStageService
stageUri
- stage URIpublic String[] getStageURIs() throws EPRuntimeDestroyedException
EPStageService
getStageURIs
in interface EPStageService
EPRuntimeDestroyedException
- if the runtime is already destroyedpublic void clear()
clear
in interface EPStageServiceSPI
public void recoverStage(String stageURI, int stageId, long stageCurrentTime)
recoverStage
in interface EPStageServiceSPI
public void recoverDeployment(String stageUri, DeploymentInternal deployment)
recoverDeployment
in interface EPStageServiceSPI
public void recoveredStageInitialize(Supplier<Collection<com.espertech.esper.common.client.EventType>> availableTypes)
recoveredStageInitialize
in interface EPStageServiceSPI
public boolean isEmpty()
isEmpty
in interface EPStageServiceSPI
public Map<String,EPStageImpl> getStages()
getStages
in interface EPStageServiceSPI
public void destroy()
destroy
in interface EPStageServiceSPI
Copyright © 2005–2021. All rights reserved.