org.apache.tools.ant.taskdefs.optional.ssh
Class AbstractSshMessage
java.lang.Object
org.apache.tools.ant.taskdefs.optional.ssh.AbstractSshMessage
public abstract class AbstractSshMessage
extends java.lang.Object
AbstractSshMessage
public AbstractSshMessage(Session session)
AbstractSshMessage
public AbstractSshMessage(boolean verbose,
Session session)
execute
public abstract void execute()
throws IOException,
JSchException
getVerbose
protected final boolean getVerbose()
log
protected void log(String message)
logStats
protected void logStats(long timeStarted,
long timeEnded,
int totalLength)
openExecChannel
protected Channel openExecChannel(String command)
throws JSchException
sendAck
protected void sendAck(OutputStream out)
throws IOException
setLogListener
public void setLogListener(LogListener aListener)
trackProgress
protected final int trackProgress(int filesize,
int totalLength,
int percentTransmitted)
waitForAck
protected void waitForAck(InputStream in)
throws IOException,
BuildException
Reads the response, throws a BuildException if the response
indicates an error.
Copyright B) 2000-2008 Apache Software Foundation. All Rights Reserved.