org.apache.tools.ant.taskdefs.optional.ssh

Class AbstractSshMessage

public abstract class AbstractSshMessage extends Object

Constructor Summary
AbstractSshMessage(Session session)
AbstractSshMessage(boolean verbose, Session session)
Method Summary
abstract voidexecute()
protected booleangetVerbose()
protected voidlog(String message)
protected voidlogStats(long timeStarted, long timeEnded, int totalLength)
protected ChannelopenExecChannel(String command)
protected voidsendAck(OutputStream out)
voidsetLogListener(LogListener aListener)
protected inttrackProgress(int filesize, int totalLength, int percentTransmitted)
protected voidwaitForAck(InputStream in)
Reads the response, throws a BuildException if the response indicates an error.

Constructor Detail

AbstractSshMessage

public AbstractSshMessage(Session session)

AbstractSshMessage

public AbstractSshMessage(boolean verbose, Session session)

Since: Ant 1.6.2

Method Detail

execute

public abstract void execute()

getVerbose

protected final boolean getVerbose()

Since: Ant 1.6.2

log

protected void log(String message)

logStats

protected void logStats(long timeStarted, long timeEnded, int totalLength)

openExecChannel

protected Channel openExecChannel(String command)

sendAck

protected void sendAck(OutputStream out)

setLogListener

public void setLogListener(LogListener aListener)

trackProgress

protected final int trackProgress(int filesize, int totalLength, int percentTransmitted)

waitForAck

protected void waitForAck(InputStream in)
Reads the response, throws a BuildException if the response indicates an error.
Copyright