Interface DeploymentState
- All Known Subinterfaces:
MutableDeploymentState
- All Known Implementing Classes:
DbDeploymentState
public interface DeploymentState
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
foreachPendingDeploymentDistribution
(DeploymentState.PendingDeploymentVisitor pendingDeploymentVisitor) getStoredDeploymentRecord
(long deploymentKey) boolean
hasPendingDeploymentDistribution
(long deploymentKey) Returns whether there are any deployment distributions pending for a deployment.boolean
hasPendingDeploymentDistribution
(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:
true
if 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:
true
if the specific pending deployment exists, otherwisefalse
.
-
getStoredDeploymentRecord
-
foreachPendingDeploymentDistribution
void foreachPendingDeploymentDistribution(DeploymentState.PendingDeploymentVisitor pendingDeploymentVisitor)
-