Class DeploymentHistory


  • public class DeploymentHistory
    extends Object
    • Method Detail

      • addState

        public void addState​(@NotNull
                             DeploymentState newState,
                             @NotNull
                             Date stateChangedAt,
                             @Nullable
                             Long buildId)
        Adds information about new state `newState`, reported at `statusChangedAt`, with optional `buildId` to be associated with the state.
      • addState

        public void addState​(@NotNull
                             DeploymentStateEntry deploymentStateEntry)
        Adds information about new deployment state entry `deploymentStateEntry`.
      • getCurrentState

        public DeploymentStateEntry getCurrentState()
        Returns current (latest) deployment state entry. If none are available, defaults to `DeploymentState.UNKNOWN` state reported with current timestamp.