Package alluxio.network
Class RejectingServer
- java.lang.Object
-
- java.lang.Thread
-
- alluxio.network.RejectingServer
-
- All Implemented Interfaces:
java.lang.Runnable
public final class RejectingServer extends java.lang.Thread
A server which listens on a socket and closes all connections. This is useful for sitting on a socket without causing clients to hang when they try to connect.
-
-
Constructor Summary
Constructors Constructor Description RejectingServer(java.net.InetSocketAddress address)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
void
stopAndJoin()
Stops the server and joins the server thread.-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, 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, suspend, toString, yield
-
-