Class SshExecutionHelperService

java.lang.Object
org.qubership.atp.mia.service.execution.SshExecutionHelperService

@Service public class SshExecutionHelperService extends Object
  • Constructor Details

    • SshExecutionHelperService

      public SshExecutionHelperService()
  • Method Details

    • executeSingleCommand

      @AtpJaegerLog public CommandResponse executeSingleCommand(Command command)
      Executes single SSH command.
    • executeCommandAndGenerateFile

      @AtpJaegerLog public CommandResponse executeCommandAndGenerateFile(Command command)
      Generates a file from ethalon, uploads it on server and executes ssh command.
    • executeCommandAndUploadFile

      @AtpJaegerLog public CommandResponse executeCommandAndUploadFile(Command command)
      Uploads file from input on server, executes command.
    • generateEventFilesAndExecuteCommand

      @AtpJaegerLog public CommandResponse generateEventFilesAndExecuteCommand(Command command)
      Generates a event files from ethalon, uploads files on server, executes a ssh command.
    • executeCommandAndCheckFileOnServer

      @AtpJaegerLog public CommandResponse executeCommandAndCheckFileOnServer(Command command)
      Executes a ssh command, searches file into logs with regexp and downloads this file.
    • executeCommandAndTransferFileOnServer

      @AtpJaegerLog public CommandResponse executeCommandAndTransferFileOnServer(Command command)
      Executes a ssh command and transfers files on server.
    • executeCommandAndDownloadFilesFromServer

      @AtpJaegerLog public CommandResponse executeCommandAndDownloadFilesFromServer(Command command)
      Executes a ssh command, searches files on server with find + regexp and downloads files from server.
    • uploadFilesAndDownloadResults

      @AtpJaegerLog public CommandResponse uploadFilesAndDownloadResults(Command command)
      Generates a files from ethalon, uploads files on server, executes a ssh command, downloads result files.
    • resetCache

      public void resetCache()