Package org.qubership.atp.mia.repo.impl
Class ShellRepository
java.lang.Object
org.qubership.atp.mia.repo.impl.ShellRepository
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteAndGetLog(Command command) Execute ssh command.fileNotFound(String internalPathToFile, String externalPathToFile, String errorMessage) Generates when file not found.getFileOnServer(Command command, String pathToFile, boolean isDisplayed) Get file from server.Gets Server.voidvoidtransferFileOnServer(Command command, String pathToFile, String pathToUpLoad) Transfer file on server.voiduploadFileOnServer(Server server, String pathToUpLoad, File file) Upload file on server.
-
Field Details
-
genevaParamKey
- See Also:
-
-
Constructor Details
-
ShellRepository
public ShellRepository()
-
-
Method Details
-
transferFileOnServer
Transfer file on server. -
uploadFileOnServer
Upload file on server. -
getFileOnServer
Get file from server. -
getServer
Gets Server.- Parameters:
command- command- Returns:
- Server of command
-
executeAndGetLog
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 machineexternalPathToFile- path to output file on servererrorMessage- message of Error
-
resetCache
public void resetCache()
-