Package | Description |
---|---|
org.kepler.io | |
org.kepler.io.test | |
org.kepler.ssh | |
org.sdm.spa.actors.transport |
Modifier and Type | Method and Description |
---|---|
int |
DirectoryListing.list()
Kept for compatibility with older codes.
|
int |
DirectoryListing.list(boolean useLsOnly)
List the directory now.
|
Modifier and Type | Method and Description |
---|---|
static void |
TestDirectoryListingLocal.main(java.lang.String[] arg) |
static void |
TestDirectoryListingRemote.main(java.lang.String[] arg) |
Modifier and Type | Class and Description |
---|---|
class |
ExecTimeoutException
Exception for timeout failures in classes implementing ExecInterface thrown
in SshExec.java and LocalExec.java
|
class |
SshException
Exception for the ssh class failures thrown in Ssh*.java
|
Modifier and Type | Method and Description |
---|---|
int |
LocalExec.copyFrom(java.lang.String sourcePath,
java.util.Collection files,
java.io.File localPath,
boolean recursive)
Copy files from a directory to a local path Input: 'files' is a
Collection of files of type String (!
|
int |
ExecInterface.copyFrom(java.lang.String sourcePath,
java.util.Collection files,
java.io.File localPath,
boolean recursive)
Copy files from a local/remote directory to a local path Input: 'files'
is a Collection of files of type String (!
|
int |
LocalExec.copyFrom(java.lang.String sourcePath,
java.io.File localPath,
boolean recursive)
Copy a local file into a local file Input: 'sfile' of type String (can be
a directory or filename) 'localPath' is either a directory or filename
Only if 'recursive' is set, will directories copied recursively.
|
int |
ExecInterface.copyFrom(java.lang.String sourcePath,
java.io.File localPath,
boolean recursive)
Copy a local/remote file into a local file Input: 'sourcePath' of type
String (can be a directory or filename) 'localPath' is either a directory
or filename Only if 'recursive' is set, will directories copied
recursively.
|
int |
LocalExec.copyTo(java.util.Collection files,
java.lang.String targetPath,
boolean recursive)
Copy local files to a local/remote directory Input: files is a Collection
of files of type File, targetPath is either a directory in case of
several files, or it is either a dir or filename in case of one single
local file recursive: true if you want traverse directories
|
int |
ExecInterface.copyTo(java.util.Collection files,
java.lang.String targetPath,
boolean recursive)
Copy local files to a local/remote directory Input: files is a Collection
of files of type File, targetPath is either a directory in case of
several files, or it is either a dir or filename in case of one single
local file recursive: true if you want traverse directories The files can
have wildcards in their names but not in their path.
|
int |
LocalExec.copyTo(java.io.File lfile,
java.lang.String targetPath,
boolean recursive)
Copy a local file to a local directory/path Input: file of type File
(which can be a directory).
|
int |
ExecInterface.copyTo(java.io.File lfile,
java.lang.String targetPath,
boolean recursive)
Copy a local file to a local/remote directory Input: file of type File
(which can be a directory) The input can have wildcards in its name but
not in its path. targetPath is either a directory or filename
|
boolean |
LocalExec.createDir(java.lang.String dir,
boolean parentflag)
Create a directory given as String parameter.
|
boolean |
ExecInterface.createDir(java.lang.String dir,
boolean parentflag)
Create directory.
|
boolean |
RemoteExec.createDir(java.lang.String dir,
boolean parentflag)
Create directory on the remote site with "mkdir" or "mkdir -p" command.
|
boolean |
LocalExec.deleteFile(java.lang.String fname,
boolean recursive,
boolean allowFileMask)
To be implemented.
|
boolean |
ExecInterface.deleteFile(java.lang.String fname,
boolean recursive,
boolean allowFileMask)
Delete file or directory on the local/remote site It should be relative
to the user's home dir in case of remote machines, or to the current dir
in case of local machine, or an absolute path For safety, * and ?
|
boolean |
RemoteExec.deleteFile(java.lang.String fname,
boolean recursive,
boolean allowFileMask)
Delete file or directory on the remote site with "rm -rf" command!
|
boolean |
LocalDelete.deleteFiles(java.lang.String mask,
boolean recursive) |
int |
GsiSshExec.executeCmd(java.lang.String command,
java.io.OutputStream streamOut,
java.io.OutputStream streamErr) |
int |
LocalExec.executeCmd(java.lang.String command,
java.io.OutputStream streamOut,
java.io.OutputStream streamErr)
Execute a command on the local machine 'command' is the full command with
arguments to be executed return: the exit code of the command additional
effects: streamOut is continuously written during execution the stdout of
the command.
|
int |
SshExec.executeCmd(java.lang.String command,
java.io.OutputStream streamOut,
java.io.OutputStream streamErr)
Execute a command on the remote machine.
|
int |
ExecInterface.executeCmd(java.lang.String command,
java.io.OutputStream streamOut,
java.io.OutputStream streamErr)
Execute a command externally.
|
int |
GsiSshExec.executeCmd(java.lang.String command,
java.io.OutputStream streamOut,
java.io.OutputStream streamErr,
java.lang.String thirdPartyTarget) |
int |
LocalExec.executeCmd(java.lang.String command,
java.io.OutputStream streamOut,
java.io.OutputStream streamErr,
java.lang.String thirdPartyTarget) |
int |
SshExec.executeCmd(java.lang.String command,
java.io.OutputStream streamOut,
java.io.OutputStream streamErr,
java.lang.String thirdPartyTarget)
Execute a command on the remote machine and expect a password/passphrase
question from the command.
|
int |
ExecInterface.executeCmd(java.lang.String command,
java.io.OutputStream streamOut,
java.io.OutputStream streamErr,
java.lang.String thirdParty)
Execute a command externally where the command connects to a third party
and needs to authenticate to that third party.
|
static ExecInterface |
ExecFactory.getExecObject(java.lang.String target)
Helper method to provide the target as a complete string.
|
static ExecInterface |
ExecFactory.getExecObject(java.lang.String user,
java.lang.String host) |
static ExecInterface |
ExecFactory.getExecObject(java.lang.String user,
java.lang.String host,
int port)
Return an object with ExecInterface, based on the specified target.
|
java.lang.String |
SshExec.getwildcardFileListingBBCP(java.lang.String srcConn,
java.lang.String wildcardPattern) |
static void |
TestCopyTo.main(java.lang.String[] arg) |
boolean |
LocalExec.openConnection() |
boolean |
ExecInterface.openConnection() |
void |
GsiSshExec.setPortForwardingL(java.lang.String spec)
port forwarding not working on local exec
|
void |
LocalExec.setPortForwardingL(java.lang.String spec)
port forwarding not working on local exec
|
void |
ExecInterface.setPortForwardingL(java.lang.String spec)
port forwarding not working on local exec
|
void |
GsiSshExec.setPortForwardingR(java.lang.String spec)
port forwarding not working on local exec
|
void |
LocalExec.setPortForwardingR(java.lang.String spec)
port forwarding not working on local exec
|
void |
ExecInterface.setPortForwardingR(java.lang.String spec)
port forwarding not working on local exec
|
Modifier and Type | Method and Description |
---|---|
protected FileCopierBase.CopyResult |
FileCopierBase.copy(ConnectionDetails srcDetails,
java.lang.String srcFile,
ConnectionDetails destDetails,
java.lang.String destFile,
boolean recursive)
Generic copy method that does the initial input validation and calls the
copyTo, copyFrom or copyRemote of the appropriate FileCopier subclass.
|
protected FileCopierBase.CopyResult |
SftpCopier.copyFrom(ConnectionDetails srcDetails,
java.lang.String srcFile,
java.lang.String destFile,
boolean recursive) |
protected FileCopierBase.CopyResult |
LocalFileCopier.copyFrom(ConnectionDetails srcDetails,
java.lang.String srcFile,
java.lang.String destFile,
boolean recursive) |
protected abstract FileCopierBase.CopyResult |
FileCopierBase.copyFrom(ConnectionDetails srcDetails,
java.lang.String srcFile,
java.lang.String destFile,
boolean recursive)
Copies file from a remote host to local machine
|
protected FileCopierBase.CopyResult |
FileCopierBase.copyLocalOnRemoteMachine(ConnectionDetails srcDetails,
java.lang.String srcFile,
ConnectionDetails destDetails,
java.lang.String destFile,
boolean recursive)
Connects to the remote machines and execute a 'cp' command to copy files
to destination dir on the same remote machine
|
protected FileCopierBase.CopyResult |
SftpCopier.copyRemote(ConnectionDetails srcDetails,
java.lang.String srcFile,
ConnectionDetails destDetails,
java.lang.String destFile,
boolean recursive) |
protected FileCopierBase.CopyResult |
ScpCopier.copyRemote(ConnectionDetails srcDetails,
java.lang.String srcFile,
ConnectionDetails destDetails,
java.lang.String destFile,
boolean recursive) |
protected FileCopierBase.CopyResult |
LocalFileCopier.copyRemote(ConnectionDetails srcDetails,
java.lang.String srcFile,
ConnectionDetails destDetails,
java.lang.String destFile,
boolean recursive) |
protected FileCopierBase.CopyResult |
SrmliteCopier.copyRemote(ConnectionDetails srcDetails,
java.lang.String srcFile,
ConnectionDetails destDetails,
java.lang.String destFile,
boolean recursive) |
protected FileCopierBase.CopyResult |
BbcpCopier.copyRemote(ConnectionDetails srcDetails,
java.lang.String srcFile,
ConnectionDetails destDetails,
java.lang.String destFile,
boolean recursive) |
protected abstract FileCopierBase.CopyResult |
FileCopierBase.copyRemote(ConnectionDetails srcDetails,
java.lang.String srcFile,
ConnectionDetails destDetails,
java.lang.String destFile,
boolean recursive)
Copies files between two remote machines.
|
protected FileCopierBase.CopyResult |
SftpCopier.copyTo(java.lang.String srcFile,
ConnectionDetails destDetails,
java.lang.String destFile,
boolean recursive) |
protected FileCopierBase.CopyResult |
LocalFileCopier.copyTo(java.lang.String srcFile,
ConnectionDetails destDetails,
java.lang.String destFile,
boolean recursive) |
protected abstract FileCopierBase.CopyResult |
FileCopierBase.copyTo(java.lang.String srcFile,
ConnectionDetails destDetails,
java.lang.String destFile,
boolean recursive)
Copies files from local machine to a remote host
|