Top Fields Constructors Methods
org.apache.sshd.client.session.forward

public abstract Class PortForwardingTracker

extends Object
implements Channel, SessionHolder<ClientSession>, ClientSessionHolder
Class Inheritance
All Implemented Interfaces
org.apache.sshd.client.session.ClientSessionHolder, org.apache.sshd.common.session.SessionHolder, org.apache.sshd.common.session.SessionContextHolder, java.nio.channels.Channel, java.io.Closeable, java.lang.AutoCloseable
Known Direct Subclasses
org.apache.sshd.client.session.forward.DynamicPortForwardingTracker, org.apache.sshd.client.session.forward.ExplicitPortForwardingTracker
Imports
java.nio.channels.Channel, java.util.Objects, java.util.concurrent.atomic.AtomicBoolean, org.apache.sshd.client.session.ClientSession, .ClientSessionHolder, org.apache.sshd.common.session.SessionHolder, org.apache.sshd.common.util.net.SshdSocketAddress

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private final SshdSocketAddress
private final SshdSocketAddress
protected final AtomicBoolean
private final ClientSession

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public SshdSocketAddress
public ClientSession
public SshdSocketAddress
public ClientSession
public boolean
isOpen()

Implements java.nio.channels.Channel.isOpen.

Tells whether or not this channel is open.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

boundAddressback to summary
private final SshdSocketAddress boundAddress
localAddressback to summary
private final SshdSocketAddress localAddress
openback to summary
protected final AtomicBoolean open
sessionback to summary
private final ClientSession session

Constructor Detail

PortForwardingTrackerback to summary
protected PortForwardingTracker(ClientSession session, SshdSocketAddress localAddress, SshdSocketAddress boundAddress)

Method Detail

getBoundAddressback to summary
public SshdSocketAddress getBoundAddress()
getClientSessionback to summary
public ClientSession getClientSession()

Implements org.apache.sshd.client.session.ClientSessionHolder.getClientSession.

Returns:ClientSession

Doc from org.apache.sshd.client.session.ClientSessionHolder.getClientSession.

The underlying ClientSession used

Annotations
@Override
getLocalAddressback to summary
public SshdSocketAddress getLocalAddress()
getSessionback to summary
public ClientSession getSession()

Implements org.apache.sshd.common.session.SessionHolder.getSession.

Annotations
@Override
isOpenback to summary
public boolean isOpen()

Implements java.nio.channels.Channel.isOpen.

Doc from java.nio.channels.Channel.isOpen.

Tells whether or not this channel is open.

Returns:boolean

true if, and only if, this channel is open

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override