Package | Description |
---|---|
edu.illinois.ncsa.datawolf.executor.hpc.util | |
edu.illinois.ncsa.datawolf.service |
Modifier and Type | Method and Description |
---|---|
static SSHSession |
SshUtils.maybeGetSession(URI contact,
String user,
String userHome) |
Modifier and Type | Method and Description |
---|---|
static void |
SshUtils.copyFrom(String remotePath,
String localPath,
SSHSession session)
Copy remote to local.
|
static void |
SshUtils.copyTo(String localPath,
String remotePath,
SSHSession session)
Copy local to remote.
|
static void |
SshUtils.deleteAll(String path,
boolean force,
SSHSession session)
Calls rm -rf.
|
static void |
SshUtils.deleteFile(String path,
boolean force,
SSHSession session)
Calls rm.
|
static void |
SshUtils.exec(SSHSession session,
String command)
Execs process without reading output stream, but throws exception if
error stream has been written to.
|
static void |
SshUtils.exec(SSHSession session,
String command,
OutputStream out,
OutputStream err)
Executes a single command using the given session; does not disconnect
session.
|
static void |
SshUtils.exec(SSHSession session,
String command,
StringBuffer stdout,
StringBuffer stderr)
Execs process, reading output stream into the string buffer; throws
exception if error stream has been written to.
|
static boolean |
SshUtils.exists(String path,
SSHSession session)
Checks for existence of path.
|
static boolean |
SshUtils.isDirectory(String path,
SSHSession session)
Checks for existence of directory.
|
static boolean |
SshUtils.isFile(String path,
SSHSession session)
Checks for existence of file.
|
static void |
SshUtils.mkdirs(String path,
SSHSession session)
Makes directory and all its parents.
|
static void |
SshUtils.mv(String from,
String to,
SSHSession session)
For use on same file system instead of copy + delete.
|
static void |
SshUtils.removeDir(String path,
SSHSession session)
Calls rmdir.
|
static void |
SshUtils.touch(String path,
SSHSession session,
long timestamp)
Calls touch -m -t.
|
Modifier and Type | Method and Description |
---|---|
protected SSHSession |
KistiHPCResource.maybeGetSession(URI contact,
String user,
String userHome) |
Copyright © 2022. All rights reserved.