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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SshdSocketAddressprivate final SshdSocketAddressprotected final AtomicBooleanprivate final ClientSession -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPortForwardingTracker(ClientSession session, SshdSocketAddress localAddress, SshdSocketAddress boundAddress) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.sshd.common.session.SessionHolder
getSessionContext
-
Field Details
-
open
-
session
-
localAddress
-
boundAddress
-
-
Constructor Details
-
PortForwardingTracker
protected PortForwardingTracker(ClientSession session, SshdSocketAddress localAddress, SshdSocketAddress boundAddress)
-
-
Method Details
-
isOpen
public boolean isOpen() -
getLocalAddress
-
getBoundAddress
-
getClientSession
- Specified by:
getClientSessionin interfaceClientSessionHolder- Returns:
- The underlying
ClientSessionused
-
getSession
- Specified by:
getSessionin interfaceSessionHolder<ClientSession>
-
toString
-