public class HttpMirrorServer extends java.lang.Thread implements Stoppable, NonTestElement
| Constructor and Description |
|---|
HttpMirrorServer(int port)
Create a new Daemon with the specified port and target.
|
HttpMirrorServer(int port,
int maxThreadPoolSize,
int maxQueueSize)
Create a new Daemon with the specified port and target.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Exception |
getException() |
static void |
main(java.lang.String[] args) |
void |
run()
Listen on the daemon port and handle incoming requests.
|
void |
stopServer()
Stop server
|
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 HttpMirrorServer(int port)
port - the port to listen on.public HttpMirrorServer(int port,
int maxThreadPoolSize,
int maxQueueSize)
port - the port to listen on.maxThreadPoolSize - Max Thread pool sizemaxQueueSize - Max Queue sizepublic void run()
stopServer() is called or an error occurs.run in interface java.lang.Runnablerun in class java.lang.Threadpublic void stopServer()
StoppablestopServer in interface Stoppablepublic java.lang.Exception getException()
public static void main(java.lang.String[] args)
Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.