Brooklyn

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

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

@Beta
public class SshFetchTaskWrapper

As ProcessTaskWrapper, but putting a file on the remote machine

Since:
0.6.0


Method Summary
Task asTask()

SshFetchTaskWrapper block()

blocks until the task completes; does not throw

java.lang.String get()

blocks, returns the fetched file as a string, throwing if there was an exception

byte[] getBytes()

blocks, returns the fetched file as bytes, throwing if there was an exception

SshMachineLocation getMachine()

java.lang.String getRemoteFile()

Task getTask()

boolean isDone()

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

java.lang.String toString()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

asTask

public Task asTask() {
public Task asTask()


block

public SshFetchTaskWrapper block()
blocks until the task completes; does not throw


get

public java.lang.String get()
blocks, returns the fetched file as a string, throwing if there was an exception


getBytes

public byte[] getBytes()
blocks, returns the fetched file as bytes, throwing if there was an exception


getMachine

public SshMachineLocation getMachine()


getRemoteFile

public java.lang.String getRemoteFile()


getTask

public Task getTask() {
public Task getTask()


isDone

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


toString

public String toString() {
public java.lang.String toString()


 

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