|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stc.connector.ssh.SSHProvider
com.stc.connector.ssh.cp.client.impl.SCPClientImpl
public class SCPClientImpl
Field Summary |
---|
Fields inherited from class com.stc.connector.ssh.SSHProvider |
---|
iSSHVer, mCFG, mInterface, mSSHClient |
Constructor Summary | |
---|---|
SCPClientImpl(SCP intf,
java.util.Map aParams)
|
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()
the source file must be a local file and it must exists, the remote destination is the file to write to the remote path will be created if it does not exists |
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; |
Methods inherited from class com.stc.connector.ssh.SSHProvider |
---|
connectWithAuthentication, getConfiguration, verifyHost |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SCPClientImpl(SCP intf, java.util.Map aParams) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public boolean reset() throws SCPException
SCPClient
reset
in interface SCPClient
SCPException
public void terminate() throws SCPException
SCPClient
terminate
in interface SCPClient
SCPException
public byte[] getPayload()
SCPClient
getPayload
in interface SCPClient
public void setPayload(byte[] newPayload)
SCPClient
newPayload
setPayload
in interface SCPClient
public void connect() throws SCPException
SCPClient
connect
in interface SCPClient
SCPException
public void disconnect() throws SCPException
SCPClient
disconnect
in interface SCPClient
SCPException
public boolean isConnected() throws SCPException
SCPClient
isConnected
in interface SCPClient
SCPException
public void put() throws SCPException
put
in interface SCPClient
SCPException
public void putRecursive() throws SCPException
SCPClient
Recursive
set to "Yes"
putRecursive
in interface SCPClient
SCPException
public void get() throws SCPException
SCPClient
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;
get
in interface SCPClient
SCPException
public void getRecursive() throws SCPException
SCPClient
Recursive
set to "Yes"
getRecursive
in interface SCPClient
SCPException
|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |