Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor | 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 | Description |
|---|---|---|
Exception |
getException() |
|
static void |
main(String[] args) |
|
void |
run() |
Listen on the daemon port and handle incoming requests.
|
void |
stopServer() |
Stop server
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactiveCount, 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, onSpinWait, 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.public void stopServer()
StoppablestopServer in interface Stoppablepublic Exception getException()
public static void main(String[] args)
Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.