Brooklyn

brooklyn.util.task.ssh
[Java] Class SshPutTaskWrapper

java.lang.Object
  brooklyn.util.task.ssh.SshPutTaskStub
      brooklyn.util.task.ssh.SshPutTaskWrapper
All Implemented Interfaces:
TaskWrapper

@Beta
public class SshPutTaskWrapper
extends SshPutTaskStub

As ProcessTaskWrapper, but putting a file on the remote machine


Field Summary
protected java.lang.Exception exception

protected java.lang.Integer exitCodeOfCopy

protected boolean successful

 
Fields inherited from class SshPutTaskStub
allowFailure, contents, createDirectory, machine, permissions, remoteFile, summary
 
Method Summary
Task asTask()

SshPutTaskWrapper block()

true iff the scp has completed successfully; guaranteed to be set before isDone() or block() are satisfied

java.lang.Void get()

java.lang.Exception getException()

true iff the ssh job has completed (with or without failure)

java.lang.Integer getExitCode()

returns any exception encountered in the operation

Task getTask()

boolean isDone()

boolean isSuccessful()

java.lang.String toString()

blocks, throwing if there was an exception

 
Methods inherited from class SshPutTaskStub
getMachine, getRemoteFile, getSummary
 

Field Detail

exception

protected java.lang.Exception exception


exitCodeOfCopy

protected java.lang.Integer exitCodeOfCopy


successful

protected boolean successful


 
Method Detail

asTask

public Task asTask() {
public Task asTask()


block

public SshPutTaskWrapper block()
true iff the scp has completed successfully; guaranteed to be set before isDone() or block() are satisfied


get

public java.lang.Void get()


getException

public java.lang.Exception getException()
true iff the ssh job has completed (with or without failure)


getExitCode

public java.lang.Integer getExitCode()
returns any exception encountered in the operation


getTask

public Task getTask() {
public Task getTask()


isDone

public boolean isDone()


isSuccessful

public boolean isSuccessful()


toString

* null if it has not completed or threw exception
public java.lang.String toString()
blocks, throwing if there was an exception


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.