Class ShellRepository

java.lang.Object
org.qubership.atp.mia.repo.impl.ShellRepository

@Repository public class ShellRepository extends Object
  • Field Details

  • Constructor Details

    • ShellRepository

      public ShellRepository()
  • Method Details

    • transferFileOnServer

      public void transferFileOnServer(Command command, String pathToFile, String pathToUpLoad)
      Transfer file on server.
    • uploadFileOnServer

      public void uploadFileOnServer(Server server, String pathToUpLoad, File file)
      Upload file on server.
    • getFileOnServer

      public CommandOutput getFileOnServer(Command command, String pathToFile, boolean isDisplayed)
      Get file from server.
    • getServer

      public Server getServer(Command command)
      Gets Server.
      Parameters:
      command - command
      Returns:
      Server of command
    • executeAndGetLog

      public CommandResponse executeAndGetLog(Command command)
      Execute ssh command.
    • fileNotFound

      public CommandOutput fileNotFound(@NotNull String internalPathToFile, String externalPathToFile, String errorMessage)
      Generates when file not found.
      Parameters:
      internalPathToFile - path to output file on local machine
      externalPathToFile - path to output file on server
      errorMessage - message of Error
    • resetCache

      public void resetCache()