Package hudson.remoting.forward
Interface ListeningPort
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
PortForwarder
Represents a listening port that forwards a connection
via port forwarding.
- Author:
- Kohsuke Kawaguchi
-
Method Summary
-
Method Details
-
getPort
int getPort()TCP/IP port that is listening. -
close
Shuts down the port forwarding by removing the server socket. Connections that are already established will not be affected by this operation.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-