public class DefaultScpClient extends AbstractScpClient
AbstractScpClient.ScpOperationExecutor<T>ScpClient.Option| Modifier and Type | Field and Description |
|---|---|
protected ScpTransferEventListener |
listener |
protected ScpFileOpener |
opener |
COMMAND_WAIT_EVENTSlogDEFAULT_EXEC_CHANNEL_EXIT_STATUS_TIMEOUT, DEFAULT_EXEC_CHANNEL_OPEN_TIMEOUT, SCP_EXEC_CHANNEL_EXIT_STATUS_TIMEOUT, SCP_EXEC_CHANNEL_OPEN_TIMEOUT| Constructor and Description |
|---|
DefaultScpClient(ClientSession clientSession,
ScpFileOpener fileOpener,
ScpTransferEventListener eventListener) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
download(String remote,
FileSystem fs,
Path local,
Collection<ScpClient.Option> options) |
void |
download(String remote,
OutputStream local) |
ClientSession |
getClientSession() |
protected <T> void |
runUpload(String remote,
Collection<ScpClient.Option> options,
Collection<T> local,
AbstractScpClient.ScpOperationExecutor<T> executor) |
void |
upload(InputStream local,
String remote,
long size,
Collection<PosixFilePermission> perms,
ScpTimestamp time) |
addTargetIsDirectory, download, download, download, download, getSession, handleCommandExitStatus, handleCommandExitStatus, isOpen, openCommandChannel, upload, uploadgetSimplifiedLoggerprotected final ScpFileOpener opener
protected final ScpTransferEventListener listener
public DefaultScpClient(ClientSession clientSession, ScpFileOpener fileOpener, ScpTransferEventListener eventListener)
public ClientSession getClientSession()
public void download(String remote, OutputStream local) throws IOException
IOExceptionprotected void download(String remote, FileSystem fs, Path local, Collection<ScpClient.Option> options) throws IOException
download in class AbstractScpClientIOExceptionpublic void upload(InputStream local, String remote, long size, Collection<PosixFilePermission> perms, ScpTimestamp time) throws IOException
IOExceptionprotected <T> void runUpload(String remote, Collection<ScpClient.Option> options, Collection<T> local, AbstractScpClient.ScpOperationExecutor<T> executor) throws IOException
runUpload in class AbstractScpClientIOExceptionCopyright © 2018–2019 The Apache Software Foundation. All rights reserved.