API Overview API Index Package Overview Direct link to this page
Apache Ant 1.7.1
  org.apache.tools.ant.taskdefs.optional.ssh. AbstractSshMessage View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      AbstractSshMessage
Implements
Subclasses
Description
publicabstract abstract class AbstractSshMessage
Abstract class for ssh upload and download
See also:   
Constructors
public AbstractSshMessage (boolean verbose, Session session)
  Constructor for AbstractSshMessage
public AbstractSshMessage (Session session)
  Constructor for AbstractSshMessage
Methods
Hide/Show inherited methods
publicabstract void execute () throws java.io.IOException .JSchException
  Carry out the transfer.
protected SftpProgressMonitor getProgressMonitor ()
  Get the progress monitor.
protectedfinal boolean getVerbose ()
  Is the verbose attribute set.
protected void log (java.lang.String message)
  Log a message to the log listener.
protected void logStats (long timeStarted, long timeEnded, long totalLength)
  Log transfer stats to the log listener.
protected Channel openExecChannel (java.lang.String command) throws .JSchException
  Open an ssh channel.
protected ChannelSftp openSftpChannel () throws .JSchException
  Open an ssh sftp channel.
protected void sendAck (java.io.OutputStream out) throws java.io.IOException
  Send an ack.
public void setLogListener (LogListener aListener)
  Set a log listener.
protectedfinal int trackProgress (long filesize, long totalLength, int percentTransmitted)
  Track progress every 10% if 100kb < filesize < 1mb.
protected void waitForAck (java.io.InputStream in) throws java.io.IOException BuildException
  Reads the response, throws a BuildException if the response indicates an error.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar