java.lang.Object
org.qubership.atp.mia.model.impl.executable.GeneralModel
org.qubership.atp.mia.model.impl.executable.Command
All Implemented Interfaces:
Serializable

public class Command extends GeneralModel
See Also:
  • Constructor Details

    • Command

      public Command(@Nonnull Command command)
      Creates Command copy.
      Parameters:
      command - original command
    • Command

      public Command()
      Creates Command instance without parameters.
    • Command

      public Command(@Nonnull String toExecute)
      Creates Command instance for simple command.
      Parameters:
      toExecute - toExecute
    • Command

      public Command(@Nonnull String name, @Nonnull String type, @Nonnull String system, @Nonnull LinkedHashSet<String> values)
      Creates Command instance with parameters.
      Parameters:
      name - name
      type - type
      system - system
      values - values
  • Method Details

    • clone

      public Command clone()
      Clones Command object.
      Overrides:
      clone in class Object
      Returns:
      Command instance.
    • setValue

      public void setValue(String value)
      Sets value. Do not call! Used during parsing config.
      Overrides:
      setValue in class GeneralModel
      Parameters:
      value - value
    • getValue

      public String getValue()
      Description copied from class: GeneralModel
      Gets values as string.
      Overrides:
      getValue in class GeneralModel
      Returns:
      value
    • setValues

      public void setValues(LinkedHashSet<String> values)
      Sets values. Do not call! Used during parsing config.
      Overrides:
      setValues in class GeneralModel
      Parameters:
      values - values
    • getAtpValues

      public Map<String,String> getAtpValues()
      Gets ATP values.
    • definedCharsetForGeneratedFile

      public Charset definedCharsetForGeneratedFile()
      Get charset for generated file.
      Returns:
      Charset
    • getToExecute

      public String getToExecute()
      Gets toExecute.
      Returns:
      toExecute
    • setToExecute

      public Command setToExecute(String toExecute)
      Sets toExecute.
      Parameters:
      toExecute - toExecute
      Returns:
      Command instance
    • getFileExtension

      @Nullable public String getFileExtension()
    • setFileExtension

      public Command setFileExtension(@Nullable String fileExtension)
      Sets fileExtension.
      Parameters:
      fileExtension - fileExtension
      Returns:
      Command instance
    • getPathForUpload

      @Nullable public String getPathForUpload()
    • setPathForUpload

      public Command setPathForUpload(@Nullable String pathForUpload)
      Sets pathForUpload.
      Parameters:
      pathForUpload - pathForUpload
      Returns:
      Command instance
    • getNamesOfFilesForGeneration

      @Nullable public List<String> getNamesOfFilesForGeneration()
    • setNamesOfFilesForGeneration

      public Command setNamesOfFilesForGeneration(@Nullable List<String> namesOfFilesForGeneration)
      Sets namesOfFilesForGeneration.
      Parameters:
      namesOfFilesForGeneration - namesOfFilesForGeneration
      Returns:
      Command instance
    • getEthalonFilesForGeneration

      @Nullable public List<String> getEthalonFilesForGeneration()
    • setEthalonFilesForGeneration

      public Command setEthalonFilesForGeneration(@Nullable List<String> ethalonFilesForGeneration)
      Sets ethalonFilesForGeneration.
      Parameters:
      ethalonFilesForGeneration - ethalonFilesForGeneration
      Returns:
      Command instance
    • getRegexpForFileRetrieve

      @Nullable public String getRegexpForFileRetrieve()
    • setRegexpForFileRetrieve

      public Command setRegexpForFileRetrieve(@Nullable String regexpForFileRetrieve)
      Sets regexpForFileRetrieve.
      Parameters:
      regexpForFileRetrieve - regexpForFileRetrieve
      Returns:
      Command instance
    • getDelayForGeneration

      @Nullable public String getDelayForGeneration()
    • setDelayForGeneration

      public Command setDelayForGeneration(@Nullable String delayForGeneration)
      Sets delayForGeneration.
      Parameters:
      delayForGeneration - delayForGeneration
      Returns:
      Command instance
    • getPathsForDownload

      @Nullable public List<String> getPathsForDownload()
    • setPathsForDownload

      public Command setPathsForDownload(@Nullable List<String> pathsForDownload)
      Sets pathsForDownload.
      Parameters:
      pathsForDownload - pathsForDownload
      Returns:
      Command instance
    • getMarker

      @Nullable public Marker getMarker()
    • setMarker

      public Command setMarker(@Nullable Marker marker)
      Sets marker.
      Parameters:
      marker - marker
      Returns:
      Command instance
    • getSaveGeneratedFilesToParameter

      @Nullable public String getSaveGeneratedFilesToParameter()
      Gets saveGeneratedFilesToParameter.
      Returns:
      saveGeneratedFilesToParameter value
    • setSaveGeneratedFilesToParameter

      public Command setSaveGeneratedFilesToParameter(@Nullable String saveGeneratedFilesToParameter)
      Sets saveGeneratedFilesToParameter.
      Parameters:
      saveGeneratedFilesToParameter - saveGeneratedFilesToParameter
      Returns:
      Command instance
    • getDescription

      @Nullable public String getDescription()
    • setDescription

      public void setDescription(@Nullable String description)
      Sets description.
      Parameters:
      description - description
    • getWarningDescription

      @Nullable public String getWarningDescription()
    • setWarningDescription

      public void setWarningDescription(@Nullable String warningDescription)
      Sets warningDescription.
      Parameters:
      warningDescription - warningDescription
    • getLogFileNameFormat

      @Nullable public String getLogFileNameFormat()
    • setLogFileNameFormat

      public Command setLogFileNameFormat(@Nullable String logFileNameFormat)
      Sets fileExtension.
      Parameters:
      logFileNameFormat - logFileNameFormat
      Returns:
      Command instance
    • getVariablesToExtractFromLog

      @Nullable public LinkedHashMap<String,String> getVariablesToExtractFromLog()
    • setVariablesToExtractFromLog

      public Command setVariablesToExtractFromLog(@Nullable LinkedHashMap<String,String> variablesToExtractFromLog)
      Sets variablesToExtractFromLog.
      Parameters:
      variablesToExtractFromLog - variablesToExtractFromLog
      Returns:
      Command instance
    • getCharsetForGeneratedFile

      @Nullable public String getCharsetForGeneratedFile()
    • setCharsetForGeneratedFile

      public Command setCharsetForGeneratedFile(@Nullable String charsetForGeneratedFile)
      Sets charsetForGeneratedFile.
      Parameters:
      charsetForGeneratedFile - charsetForGeneratedFile
      Returns:
      Command instance
    • setAtpValues

      public Command setAtpValues(LinkedHashMap<String,String> atpValues)
      Sets ATP values. Do not call! Used during parsing config.
    • getDisplayDownloadedFileContent

      public boolean getDisplayDownloadedFileContent()
    • setDisplayDownloadedFileContent

      public Command setDisplayDownloadedFileContent(boolean displayDownloadedFileContent)
    • getFilesForUpload

      @Nullable public List<String> getFilesForUpload()
    • setFilesForUpload

      public Command setFilesForUpload(@Nullable List<String> filesForUpload)
    • getFileMarkers

      @Nullable public List<FileMarker> getFileMarkers()
    • setFileMarkers

      public void setFileMarkers(@Nullable List<FileMarker> fileMarkers)
    • getTestDataParams

      @Nonnull public TestDataParams getTestDataParams()
      Gets testDataParams value.
      Returns:
      testDataParams
    • setTestDataParams

      public void setTestDataParams(@Nonnull TestDataParams testDataParams)
      Sets testDataParams value.
      Parameters:
      testDataParams - testDataParams value
    • getRest

      @Nullable public Rest getRest()
      Gets rest value.
      Returns:
      rest
    • setRest

      public void setRest(@Nullable Rest rest)
      Sets rest value.
      Parameters:
      rest - rest value
    • getSoap

      @Nullable public Soap getSoap()
      Gets soap value.
      Returns:
      soap
    • setSoap

      public void setSoap(@Nullable Soap soap)
      Sets soap value.
      Parameters:
      soap - soap value
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class GeneralModel