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 AtomicBoolean
open
-
Constructor Summary
Constructors Modifier Constructor Description protected
PortForwardingTracker(ClientSession session, SshdSocketAddress localAddress, SshdSocketAddress boundAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SshdSocketAddress
getBoundAddress()
ClientSession
getClientSession()
SshdSocketAddress
getLocalAddress()
ClientSession
getSession()
boolean
isOpen()
String
toString()
-
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:
getClientSession
in interfaceClientSessionHolder
- Returns:
- The underlying
ClientSession
used
-
getSession
public ClientSession getSession()
- Specified by:
getSession
in interfaceSessionHolder<ClientSession>
-
-