org.gwe.drivers.netAccess.handles
Class SSHHostHandle

java.lang.Object
  extended by org.gwe.drivers.ResourceHandle
      extended by org.gwe.drivers.netAccess.HostHandle
          extended by org.gwe.drivers.netAccess.RemoteHostHandle
              extended by org.gwe.drivers.netAccess.handles.SSHHostHandle

public class SSHHostHandle
extends RemoteHostHandle

Since:
Sep 7, 2008
Author:
Marco Ruiz

Field Summary
 
Fields inherited from class org.gwe.drivers.ResourceHandle
link
 
Constructor Summary
SSHHostHandle(ResourceLink<HostHandle> link)
           
 
Method Summary
 void close()
           
protected  void finalize()
           
 void openTunnel(int localPort, int remotePort)
           
 java.lang.String runCommand(ShellCommand cmd)
           
 
Methods inherited from class org.gwe.drivers.netAccess.RemoteHostHandle
openTunnel
 
Methods inherited from class org.gwe.drivers.netAccess.HostHandle
runCommand, runCommand
 
Methods inherited from class org.gwe.drivers.ResourceHandle
createHostHandle, getLink
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSHHostHandle

public SSHHostHandle(ResourceLink<HostHandle> link)
              throws HandleCreationException
Throws:
HandleCreationException
Method Detail

openTunnel

public void openTunnel(int localPort,
                       int remotePort)
                throws HandleOperationException
Overrides:
openTunnel in class RemoteHostHandle
Throws:
HandleOperationException

runCommand

public java.lang.String runCommand(ShellCommand cmd)
                            throws ConnectorException
Specified by:
runCommand in class HostHandle
Throws:
ConnectorException

close

public void close()
           throws HandleOperationException
Overrides:
close in class ResourceHandle
Throws:
HandleOperationException

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable


Copyright © 2007-2009. All Rights Reserved.