Class DeploymentPropertiesBuilder

java.lang.Object
org.springframework.cloud.dataflow.rest.client.dsl.AbstractPropertiesBuilder
org.springframework.cloud.dataflow.rest.client.dsl.DeploymentPropertiesBuilder

public class DeploymentPropertiesBuilder extends AbstractPropertiesBuilder
Author:
Vinicius Carvalho Utility class to help building a Map of deployment properties
  • Constructor Details

    • DeploymentPropertiesBuilder

      public DeploymentPropertiesBuilder()
  • Method Details

    • put

      public DeploymentPropertiesBuilder put(String key, String value)
    • putAll

    • memory

      public DeploymentPropertiesBuilder memory(String label, Integer memory)
      Configures the memory size allocated for the application.
      Parameters:
      label - - The application name or label to configure the number of instances
      memory - - Memory size in Mb, must be greater or equal 128
      Returns:
      the instance of this DeploymentPropertiesBuilder
    • count

      public DeploymentPropertiesBuilder count(String label, Integer instances)
      Sets the number of instances of the target application.
      Parameters:
      label - - The application name or label to configure the number of instances
      instances - - Number of instances, must be greater than zero
      Returns:
      the instance of this DeploymentPropertiesBuilder