Protected
constructorhpc this connector will connect to
Optional
job: Jobjob this connector is for
Optional
emitLogFn: emitLogFnTypecallback for emitting logs
Optional
emitEventFn: emitEventFnTypecallback for emitting events
environment to use when running commands
Protected
Optional
emitProtected
Optional
emitProtected
envProtected
hpcProtected
hpcProtected
Optional
jobcreates an empty file at specified path
specified path with filename
dictionary with string options
command execution output
creates file with specified content
file content (either string or dictionary)
destination path (where the file will be created on the remote machine)
dictionary with string options (not used)
set to True if you want to mute maintauner emitted Event
if file transfer of content to remote fails
Downloads the zip of a folder from the HPC to the local machine
path of folder
name of the output file
set to True if you want to mute maintainer emitted Event
if exponentially backed off file transfer fails
Private
emitPrivate
emitExecutes the command on the maintainer and returns the outpt
command/commands that need to be executed
execution options
set to True if you want to mute maintauner emitted Event
set to True if you want to mute maintainer emitted Log
set to True if you want the command/commands to continue despite errors
out - maintainer output
when the ssh command runs into an error; generally doesn't occur
Private
getSSHcreates directory at specified path
specified path with filename
Optional
options: options = {}dictionary with string options
Optional
muteEvent: boolean = falseset to True if you want to mute maintauner emitted Event
command execution output
Determines whether a passed in (absolute) path exists on the HPC.
path to test for
Optional
options: optionsoptions for doing an exec
true if path exists; false if not
removes the file/folder at specified path
specified path with filename
options for the exec
set to True if you want to mute maintauner emitted Event
stdout from rm command
unzips the file/folder at specified path
path to zipped file
destination folder to extract to
whether or not to delete the zip file after unzipping
dictionary with string options
set to True if you want to mute maintauner emitted Event
command execution output
Uploads a file from the local machine to the target machine.
input file string
output folder
set to True if you want to mute maintauner emitted Event (unused)
Uploads the zip of a folder from the local machine to the target machine.
input file string
output folder
set to True if you want to mute maintauner emitted Event (unused)
zips the file/directory at specified path
path of input file/directory (absolute) on the remote machine
path of the compressed file to create on the remote machine
dictionary with string options
set to True if you want to mute maintauner emitted Event
command execution output
Static
buildPublic interface for constructing an sshconnector, has built-in validation that the ssh connection works.
hpc this connector will connect to
Optional
job: Jobjob this connector is for
Optional
emitLogFn: emitLogFnTypecallback for emitting logs
Optional
emitEventFn: emitEventFnTypecallback for emitting events
environment to use when running commands
the connector, or undefined if construction was unsuccessful
Generated using TypeDoc
Base class for connecting to an HPC machine via SSH.