public class SCPcopy extends Object
Execute
is being developed.| Modifier and Type | Field and Description |
|---|---|
(package private) String |
dsthost
Name of the destination host
|
(package private) String |
dstpath
Root-path of the file at the destination host
|
(package private) String |
dstuser
Name of the destination user.
|
(package private) Execute |
exec
Program runner for executing the 'ssh' command.
|
(package private) String |
sshpath
Path to ssh command
|
(package private) String |
thisserver
Name of the current server
|
| Constructor and Description |
|---|
SCPcopy()
Deprecated.
vpro-specific
|
SCPcopy(String sshpath)
Deprecated.
vpro-specific
|
SCPcopy(String sshpath,
String user)
Deprecated.
vpro-specific
|
SCPcopy(String sshpath,
String user,
String host)
Deprecated.
vpro-specific
|
SCPcopy(String sshpath,
String user,
String host,
String path)
SCPCopy Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copy(String base,
String src)
Transfers a file from this server to the host.
|
void |
copy(String base,
String src,
String dst)
Transfers a file from this server to a host.
|
String |
getHost()
Get name of the destination host
|
String |
getPath()
Get root-path of the file at the destination host
|
String |
getSSHpath()
Get path to ssh command
|
String |
getUser()
Get name of the destination user.
|
static void |
main(String[] args)
Deprecated.
VPRO-specific
|
boolean |
mkdir(String path)
Creates a directory at the host.
|
boolean |
mkdirs(String path)
Creates a full directory path at the host.
|
boolean |
realcopy(String src,
String dst)
Transfers a file at this server to the host.
|
boolean |
remove(String path)
Removes a file at the host.
|
boolean |
removedir(String path)
Removes a directory at the host.
|
boolean |
rename(String src,
String dst)
Renames a file at the host.
|
void |
setHost(String host)
Set name of the destination host
|
void |
setPath(String path)
Set root-path of the file at the destination host
|
void |
setSSHpath(String path)
Set path to ssh command
|
void |
setUser(String user)
Set name of the destination user.
|
Execute exec
String thisserver
String dstpath
String dstuser
String dsthost
String sshpath
public SCPcopy()
public SCPcopy(String sshpath)
sshpath - Path to ssh commandpublic SCPcopy(String sshpath, String user)
sshpath - Path to ssh commanduser - User name needed to log on at the destination hostpublic SCPcopy(String sshpath, String user, String host)
sshpath - Path to ssh commanduser - User name needed to log on at the destination hosthost - Name of the destination hostpublic void copy(String base, String src, String dst)
base - Root path of the file on this serversrc - The actual file to transfer (includes path info)dst - Name of the destination hostpublic void copy(String base, String src)
base - Root path of the file on this serversrc - The actual file to transfer (includes path info)public boolean mkdir(String path)
path - directory to createtrue if successfulpublic boolean mkdirs(String path)
path - path to createtrue if successfulpublic boolean rename(String src, String dst)
src - Original file namedst - New file nametrue if successfulpublic boolean realcopy(String src, String dst)
src - file path at this serverdst - new file path at the hosttrue if successfulpublic boolean remove(String path)
path - path of the file to removetrue if successfulpublic boolean removedir(String path)
path - path of the directory to removetrue if successfulpublic String getSSHpath()
public String getPath()
public String getHost()
public String getUser()
public void setSSHpath(String path)
public void setPath(String path)
public void setHost(String host)
public void setUser(String user)
public static void main(String[] args)
args - The commandline argumentsMMBase 1.9-SNAPSHOT - ${javadoctimestamp}