radtools.services.linux
Class LinuxSession.Tunnel

java.lang.Object
  extended by rcf.core.framework.component.DynamicComponent.Abstract
      extended by radtools.services.AbstractRADService
          extended by radtools.services.network.AbstractNetworkTunnel<UsernamePasswordPrincipal>
              extended by radtools.services.linux.LinuxSession.Tunnel
All Implemented Interfaces:
HostPort, HostedRADService, NetworkTunnel<UsernamePasswordPrincipal>, RADService, RemoteHostedRADService, RemoteRADService, DynamicBound, DynamicComponent, ReflectedBindable<DynamicComponent>, ReflectedComponent, rcf.core.util.accessor.GUIAccessible
Enclosing class:
LinuxSession

protected static class LinuxSession.Tunnel
extends AbstractNetworkTunnel<UsernamePasswordPrincipal>

TODO: Javadoc

TODO: Unit tests, Code review, Javadoc review, Seal/Finalize TODO: equals, hashCode, toString

Version:
$Revision: 1.14 $
Author:
Greg Gibeling

Nested Class Summary
 
Nested classes/interfaces inherited from class radtools.services.network.AbstractNetworkTunnel
AbstractNetworkTunnel.SessionStateProxy, AbstractNetworkTunnel.State
 
Nested classes/interfaces inherited from class radtools.services.AbstractRADService
AbstractRADService.AbstractRADServiceState, AbstractRADService.RefreshTask, AbstractRADService.StateProxy, AbstractRADService.UpdateTask
 
Nested classes/interfaces inherited from interface radtools.security.HostPort
HostPort.Default
 
Nested classes/interfaces inherited from interface rcf.core.framework.component.DynamicComponent
DynamicComponent.Abstract
 
Nested classes/interfaces inherited from interface rcf.core.framework.component.DynamicBound
DynamicBound.GUIType
 
Nested classes/interfaces inherited from interface rcf.core.framework.component.DynamicComponent
DynamicComponent.Abstract
 
Nested classes/interfaces inherited from interface rcf.core.framework.component.DynamicBound
DynamicBound.GUIType
 
Field Summary
 
Fields inherited from class radtools.services.network.AbstractNetworkTunnel
hostport, port, proxy, session
 
Fields inherited from class radtools.services.AbstractRADService
composition, dependency, management, state, window
 
Fields inherited from class rcf.core.framework.component.DynamicComponent.Abstract
component, operations, properties
 
Constructor Summary
LinuxSession.Tunnel(RADService _management, LinuxSession _session, RADService _composition, HostPort _hostport)
          TODO: Javadoc
 
Method Summary
protected  void connect()
          Connect to AbstractNetworkTunnel.hostport relative to the remote machine using the AbstractNetworkTunnel.session, and set the AbstractNetworkTunnel.port field to match the local port being forwarded.
protected  void disconnect()
          Disconnect from AbstractNetworkTunnel.hostport relative to the remote machine using the AbstractNetworkTunnel.session, and set the AbstractNetworkTunnel.port field to 0 to indicate that this tunnel is disconnected.
 
Methods inherited from class radtools.services.network.AbstractNetworkTunnel
equals, hashCode, host, hostname, hostport, isConcrete, port, radServiceState, toString
 
Methods inherited from class radtools.services.AbstractRADService
check, communication, composition, dependency, icon, management, radTools, refresh, update, window
 
Methods inherited from class rcf.core.framework.component.DynamicComponent.Abstract
bind, component, gui, interfaces, isInstance, o, operations, popupMenu, properties
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface radtools.services.RADService
communication, composition, dependency, management, refresh, update, window
 
Methods inherited from interface rcf.core.framework.component.DynamicComponent
component, operations, properties
 
Methods inherited from interface rcf.core.framework.component.DynamicBound
gui
 
Methods inherited from interface rcf.core.framework.component.ReflectedComponent
interfaces, isInstance
 
Methods inherited from interface rcf.core.framework.component.ReflectedBindable
bind
 
Methods inherited from interface radtools.services.RADService
communication, composition, dependency, management, refresh, update, window
 
Methods inherited from interface rcf.core.framework.component.DynamicComponent
component, operations, properties
 
Methods inherited from interface rcf.core.framework.component.DynamicBound
gui
 
Methods inherited from interface rcf.core.framework.component.ReflectedComponent
interfaces, isInstance
 
Methods inherited from interface rcf.core.framework.component.ReflectedBindable
bind
 

Constructor Detail

LinuxSession.Tunnel

public LinuxSession.Tunnel(RADService _management,
                           LinuxSession _session,
                           RADService _composition,
                           HostPort _hostport)
TODO: Javadoc

Parameters:
_management -
_session -
_composition -
_hostport -
Method Detail

connect

protected void connect()
                throws Exception
Description copied from class: AbstractNetworkTunnel
Connect to AbstractNetworkTunnel.hostport relative to the remote machine using the AbstractNetworkTunnel.session, and set the AbstractNetworkTunnel.port field to match the local port being forwarded.

Specified by:
connect in class AbstractNetworkTunnel<UsernamePasswordPrincipal>
Throws:
Exception

disconnect

protected void disconnect()
Description copied from class: AbstractNetworkTunnel
Disconnect from AbstractNetworkTunnel.hostport relative to the remote machine using the AbstractNetworkTunnel.session, and set the AbstractNetworkTunnel.port field to 0 to indicate that this tunnel is disconnected. If the connection has already failed, this method may not throw an exception. The point of this method is to ensure that this tunnel is no longer connected by whatever means necessary.

Specified by:
disconnect in class AbstractNetworkTunnel<UsernamePasswordPrincipal>