Class Tool.ToolBuilder

java.lang.Object
org.ivoa.dm.tool.Tool.ToolBuilder
Enclosing class:
Tool

public static class Tool.ToolBuilder extends Object
A builder class for Tool, mainly for use in the functional builder pattern.
  • Field Details

    • id

      public String id
      Unique tool identifier.
    • image

      public ToolImage image
      Tool container image reference.
    • command

      public List<String> command
      Tokenized initial command; supports {{inputs.key}} min_length=1.
    • env

      public List<EnvVar> env
      Environment map entries.
    • interface_

      public ToolInterface interface_
      Tool interface definition - note that the inputs will be mounted in the /inputs directory and the outputs in the /outputs directory.
    • performanceProfile

      public PerformanceProfile performanceProfile
      Performance profile for the tool.
  • Constructor Details

    • ToolBuilder

      public ToolBuilder()
  • Method Details

    • create

      public Tool create()
      create a Tool from this builder.
      Returns:
      an object initialized from the builder.