|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
hudson.remoting.forward.PortForwarder
public class PortForwarder
Port forwarder over a remote channel.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
PortForwarder(int localPort,
Forwarder forwarder)
|
|
| Method Summary | |
|---|---|
void |
close()
Shuts down this port forwarder. |
static ListeningPort |
create(VirtualChannel ch,
int acceptingPort,
Forwarder forwarder)
Starts a PortForwarder accepting remotely at the given channel,
which connects by using the given connector. |
int |
getPort()
TCP/IP port that is listening. |
void |
run()
|
| Methods inherited from class java.lang.Thread |
|---|
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, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PortForwarder(int localPort,
Forwarder forwarder)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public int getPort()
ListeningPort
getPort in interface ListeningPortpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
public void close()
throws java.io.IOException
close in interface ListeningPortclose in interface java.io.Closeablejava.io.IOException
public static ListeningPort create(VirtualChannel ch,
int acceptingPort,
Forwarder forwarder)
throws java.io.IOException,
java.lang.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.
java.io.IOException
java.lang.InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||