Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
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 |
---|---|
Exception |
getException() |
static void |
main(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, yield
public 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()
Stoppable
stopServer
in interface Stoppable
public Exception getException()
public static void main(String[] args)
Copyright © 1998-2016 Apache Software Foundation. All Rights Reserved.