Interface DeploymentState
- All Known Subinterfaces:
MutableDeploymentState
- All Known Implementing Classes:
DbDeploymentState
public interface DeploymentState
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidforeachPendingDeploymentDistribution(DeploymentState.PendingDeploymentVisitor pendingDeploymentVisitor) getStoredDeploymentRecord(long deploymentKey) booleanhasPendingDeploymentDistribution(long deploymentKey) Returns whether there are any deployment distributions pending for a deployment.booleanhasPendingDeploymentDistribution(long deploymentKey, int partitionId) Returns whether a specific deployment distribution for a specific partition is pending.
-
Method Details
-
hasPendingDeploymentDistribution
boolean hasPendingDeploymentDistribution(long deploymentKey) Returns whether there are any deployment distributions pending for a deployment.- Parameters:
deploymentKey- the key of the deployment that may have a pending distribution- Returns:
trueif a pending deployment for the deployment key exists, otherwisefalse.
-
hasPendingDeploymentDistribution
boolean hasPendingDeploymentDistribution(long deploymentKey, int partitionId) Returns whether a specific deployment distribution for a specific partition is pending.- Parameters:
deploymentKey- the key of the deployment that may have a pending distributionpartitionId- the id of the partition to which the distribution might be pending- Returns:
trueif the specific pending deployment exists, otherwisefalse.
-
getStoredDeploymentRecord
-
foreachPendingDeploymentDistribution
void foreachPendingDeploymentDistribution(DeploymentState.PendingDeploymentVisitor pendingDeploymentVisitor)
-