Class PortForwardingTracker
- java.lang.Object
-
- org.apache.sshd.client.session.forward.PortForwardingTracker
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,ClientSessionHolder,SessionContextHolder,SessionHolder<ClientSession>
- Direct Known Subclasses:
DynamicPortForwardingTracker,ExplicitPortForwardingTracker
public abstract class PortForwardingTracker extends Object implements Channel, SessionHolder<ClientSession>, ClientSessionHolder
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description protected AtomicBooleanopen
-
Constructor Summary
Constructors Modifier Constructor Description protectedPortForwardingTracker(ClientSession session, SshdSocketAddress localAddress, SshdSocketAddress boundAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SshdSocketAddressgetBoundAddress()ClientSessiongetClientSession()SshdSocketAddressgetLocalAddress()ClientSessiongetSession()booleanisOpen()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.session.SessionHolder
getSessionContext
-
-
-
-
Field Detail
-
open
protected final AtomicBoolean open
-
-
Constructor Detail
-
PortForwardingTracker
protected PortForwardingTracker(ClientSession session, SshdSocketAddress localAddress, SshdSocketAddress boundAddress)
-
-
Method Detail
-
getLocalAddress
public SshdSocketAddress getLocalAddress()
-
getBoundAddress
public SshdSocketAddress getBoundAddress()
-
getClientSession
public ClientSession getClientSession()
- Specified by:
getClientSessionin interfaceClientSessionHolder- Returns:
- The underlying
ClientSessionused
-
getSession
public ClientSession getSession()
- Specified by:
getSessionin interfaceSessionHolder<ClientSession>
-
-