public class SmartPortForwarder extends Thread implements Closeable, hudson.remoting.forward.ListeningPort
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
SmartPortForwarder(SlaveProxyConfiguration sp) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shuts down this port forwarder.
|
static hudson.remoting.forward.ListeningPort |
create(hudson.remoting.VirtualChannel ch,
int acceptingPort,
hudson.remoting.forward.Forwarder forwarder)
Starts a
PortForwarder accepting remotely at the given channel,
which connects by using the given connector. |
int |
getPort() |
void |
run() |
void |
setSlaveSelector(hudson.model.Label slaveSelector) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic SmartPortForwarder(SlaveProxyConfiguration sp) throws IOException
IOExceptionpublic int getPort()
getPort in interface hudson.remoting.forward.ListeningPortpublic void setSlaveSelector(hudson.model.Label slaveSelector)
public void close()
throws IOException
close in interface hudson.remoting.forward.ListeningPortclose in interface Closeableclose in interface AutoCloseableIOExceptionpublic static hudson.remoting.forward.ListeningPort create(hudson.remoting.VirtualChannel ch,
int acceptingPort,
hudson.remoting.forward.Forwarder forwarder)
throws IOException,
InterruptedException
PortForwarder accepting remotely at the given channel,
which connects by using the given connector.Closeable that can be used to shut the port forwarding down.IOExceptionInterruptedExceptionCopyright © 2004-2013. All Rights Reserved.