Class CommandLineDescriptor

java.lang.Object
org.nuxeo.ecm.platform.commandline.executor.service.CommandLineDescriptor
All Implemented Interfaces:
Descriptor

public class CommandLineDescriptor extends Object implements Descriptor
XMap descriptor for a CommandLine.
Author:
tiry
  • Field Details

    • name

      protected String name
    • enabled

      protected boolean enabled
    • command

      protected String command
    • parameterString

      protected String parameterString
    • testParameterString

      protected String testParameterString
      Since:
      8.4
    • winParameterString

      protected String winParameterString
    • winTestParameterString

      protected String winTestParameterString
      Since:
      8.4
    • winCommand

      protected String winCommand
    • tester

      protected String tester
    • readOutput

      protected boolean readOutput
    • installationDirective

      protected String installationDirective
    • timeout

      public Duration timeout
  • Constructor Details

    • CommandLineDescriptor

      public CommandLineDescriptor()
  • Method Details

    • getId

      public String getId()
      Description copied from interface: Descriptor
      The descriptor id, descriptors with same id are merged.

      To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.

      To forbid merge use a unique value, non-overriden toString() for exemple.

      Specified by:
      getId in interface Descriptor
    • getName

      public String getName()
    • isEnabled

      public boolean isEnabled()
    • getCommand

      public String getCommand()
    • getParametersString

      public String getParametersString()
    • getTestParametersString

      public String getTestParametersString()
    • getTester

      public String getTester()
    • getReadOutput

      public boolean getReadOutput()
    • getInstallationDirective

      public String getInstallationDirective()
    • getTimeout

      public Duration getTimeout()
      Returns the time limit for the command
      Since:
      11.5
    • getExecutor

      public String getExecutor()
    • toString

      public String toString()
      Overrides:
      toString in class Object