@Beta public class SshPutTaskWrapper extends SshPutTaskStub implements TaskWrapper<java.lang.Void>
ProcessTaskWrapper
, but putting a file on the remote machineModifier and Type | Method and Description |
---|---|
Task<java.lang.Void> |
asTask() |
SshPutTaskWrapper |
block()
blocks until the task completes; does not throw
|
java.lang.Void |
get()
blocks, throwing if there was an exception
|
java.lang.Exception |
getException()
returns any exception encountered in the operation
|
java.lang.Integer |
getExitCode()
returns the exit code from the copy, 0 on success;
null if it has not completed or threw exception
(not sure if this is ever a non-zero integer or if it is meaningful)
|
Task<java.lang.Void> |
getTask() |
boolean |
isDone()
true iff the ssh job has completed (with or without failure)
|
boolean |
isSuccessful()
|
java.lang.String |
toString() |
getMachine, getRemoteFile, getSummary
public Task<java.lang.Void> asTask()
asTask
in interface TaskAdaptable<java.lang.Void>
public Task<java.lang.Void> getTask()
getTask
in interface TaskWrapper<java.lang.Void>
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Void get()
public java.lang.Integer getExitCode()
most callers will want the simpler isSuccessful()
public java.lang.Exception getException()
public SshPutTaskWrapper block()
public boolean isDone()
public boolean isSuccessful()