|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SCPClient
Method Summary | |
---|---|
void |
connect()
connect to the remote SSH server; |
void |
disconnect()
disconnect the client from the remote SSH server; |
void |
get()
get data from remote SSH server (specified by configuration parameters RemoteDirectory and RemoteFile ) to the local
machine;
depends on the current status of the configuration, the remote data
could be stored into the payload (in memory buffer) or a local file
specified by configuration parameters LocalDirectory
and LocalFile ;
Note, the remote could be a folder - in this case, if the configuration parameter
Recursive is "Yes" - the folder hierarchy is copied to the
local destination; |
byte[] |
getPayload()
return the payload buffer - byte array; |
void |
getRecursive()
same as get with configuration parameter Recursive
set to "Yes" |
boolean |
isConnected()
test if the client is connected to a remote SSH server; |
void |
put()
put data from local (specified by configuration parameters LocalDirectory
and LocalFile ) to the remote SSH server file specified by
specified by configuration parameters
RemoteDirectory and RemoteFile ;
depends on the current status of the configuration, the local data
could be from payload or a local file;
Note, the local could be a folder - in this case, if the configuration parameter
Recursive is "Yes" - the folder hierarchy is copied to the
remote destination; |
void |
putRecursive()
same as put with configuration parameter Recursive
set to "Yes" |
boolean |
reset()
internal life cycle methods reset the scp client such as discard payload buffer |
void |
setPayload(byte[] newPayload)
set the payload buffer with newPayload |
void |
terminate()
internal life cycle method; |
Method Detail |
---|
boolean reset() throws SCPException
SCPException
void terminate() throws SCPException
SCPException
byte[] getPayload()
void setPayload(byte[] newPayload)
newPayload
newPayload
- void connect() throws SCPException
SCPException
void disconnect() throws SCPException
SCPException
boolean isConnected() throws SCPException
SCPException
void put() throws SCPException
LocalDirectory
and LocalFile
) to the remote SSH server file specified by
specified by configuration parameters
RemoteDirectory
and RemoteFile
;
depends on the current status of the configuration, the local data
could be from payload or a local file;
Note, the local could be a folder - in this case, if the configuration parameter
Recursive
is "Yes" - the folder hierarchy is copied to the
remote destination;
SCPException
void get() throws SCPException
RemoteDirectory
and RemoteFile
) to the local
machine;
depends on the current status of the configuration, the remote data
could be stored into the payload (in memory buffer) or a local file
specified by configuration parameters LocalDirectory
and LocalFile
;
Note, the remote could be a folder - in this case, if the configuration parameter
Recursive
is "Yes" - the folder hierarchy is copied to the
local destination;
SCPException
void putRecursive() throws SCPException
Recursive
set to "Yes"
SCPException
void getRecursive() throws SCPException
Recursive
set to "Yes"
SCPException
|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |