hudson.remoting.forward
Interface ListeningPort

All Superinterfaces:
java.io.Closeable
All Known Implementing Classes:
PortForwarder

public interface ListeningPort
extends java.io.Closeable

Represents a listening port that forwards a connection via port forwarding.

Author:
Kohsuke Kawaguchi

Method Summary
 void close()
          Shuts down the port forwarding by removing the server socket.
 int getPort()
          TCP/IP port that is listening.
 

Method Detail

getPort

int getPort()
TCP/IP port that is listening.


close

void close()
           throws java.io.IOException
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 interface java.io.Closeable
Throws:
java.io.IOException


Copyright © 2012. All Rights Reserved.