public class DefaultStateCalculator extends java.lang.Object implements DeploymentUnitStateCalculator
DeploymentUnitStateCalculator
implementation for streams and jobs. This implementation uses the following
criteria:
deployed
.incomplete
.failed
.Constructor and Description |
---|
DefaultStateCalculator() |
Modifier and Type | Method and Description |
---|---|
DeploymentUnitStatus |
calculate(DeploymentUnit deploymentUnit,
ModuleDeploymentPropertiesProvider<ModuleDeploymentProperties> provider,
java.util.Collection<ModuleDeploymentStatus> deploymentStatuses)
For a given deployment unit (stream or job) calculate the overall status.
|
public DeploymentUnitStatus calculate(DeploymentUnit deploymentUnit, ModuleDeploymentPropertiesProvider<ModuleDeploymentProperties> provider, java.util.Collection<ModuleDeploymentStatus> deploymentStatuses)
calculate
in interface DeploymentUnitStateCalculator
deploymentUnit
- deployment unit (stream or job)provider
- deployment properties providerdeploymentStatuses
- deployment statuses for each module in the
deployment unit.