de.cohesion.bssh.impl
Class SSHCommand

java.lang.Object
  extended by de.cohesion.bssh.impl.SSHCommand
All Implemented Interfaces:
Command<Result>
Direct Known Subclasses:
ExecuteSSHCommand, LocalPortForwardCommand

public abstract class SSHCommand
extends java.lang.Object
implements Command<Result>

Author:
schulzs

Constructor Summary
SSHCommand(Cache<Member,ch.ethz.ssh2.Connection> ccache)
           
 
Method Summary
 Result execute(Member m)
           
protected abstract  Result perform(Member m, ch.ethz.ssh2.Connection c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSHCommand

public SSHCommand(Cache<Member,ch.ethz.ssh2.Connection> ccache)
Method Detail

execute

public Result execute(Member m)
               throws java.lang.Exception
Specified by:
execute in interface Command<Result>
Throws:
java.lang.Exception

perform

protected abstract Result perform(Member m,
                                  ch.ethz.ssh2.Connection c)
                           throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2005 . All Rights Reserved.