Interface Deployer


public interface Deployer
A deployer is used to deploy applications.
Author:
bratseth
  • Method Details

    • deployFromLocalActive

      default Optional<Deployment> deployFromLocalActive(ApplicationId application)
      Creates a new deployment from the active application, if available. Will use the default timeout for deployment.
      Parameters:
      application - the active application to be redeployed
      Returns:
      a new deployment from the active application, or empty if application does not exist
    • deployFromLocalActive

      Optional<Deployment> deployFromLocalActive(ApplicationId application, boolean bootstrap)
      Creates a new deployment from the active application, if available. Will use the default timeout for deployment.
      Parameters:
      application - the active application to be redeployed
      bootstrap - the deployment is done when bootstrapping
      Returns:
      a new deployment from the active application, or empty if application does not exist
    • deployFromLocalActive

      default Optional<Deployment> deployFromLocalActive(ApplicationId application, Duration timeout)
      Creates a new deployment from the active application, if available. Prefer deployFromLocalActive(ApplicationId) if possible, this method is for testing and will override the default timeout for deployment.
      Parameters:
      application - the active application to be redeployed
      timeout - the timeout to use for each individual deployment operation
      Returns:
      a new deployment from the active application, or empty if application does not exist
    • deployFromLocalActive

      Optional<Deployment> deployFromLocalActive(ApplicationId application, Duration timeout, boolean bootstrap)
      Creates a new deployment from the active application, if available. Prefer deployFromLocalActive(ApplicationId) if possible, this method is for testing and will override the default timeout for deployment.
      Parameters:
      application - the active application to be redeployed
      timeout - the timeout to use for each individual deployment operation
      bootstrap - the deployment is done when bootstrapping
      Returns:
      a new deployment from the active application, or empty if application does not exist
    • lastDeployTime

      Optional<Instant> lastDeployTime(ApplicationId application)
      Returns the time the current local active session was activated, or empty if there is no local active session
    • bootstrapping

      default boolean bootstrapping()
      Whether the deployer is bootstrapping, some users of the deployer will want to hold off with deployments in that case.
    • serverDeployTimeout

      Duration serverDeployTimeout()
      Timeout for deploy in server, clients can use this to set correct client timeout