net.grinder.communication
Class SocketAcceptorThread
java.lang.Object
java.lang.Thread
net.grinder.communication.SocketAcceptorThread
- All Implemented Interfaces:
- Runnable
public final class SocketAcceptorThread
- extends Thread
Active acceptor that accepts a single connection.
| 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 |
create
public static SocketAcceptorThread create()
throws Exception
- Throws:
Exception
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
getHostName
public String getHostName()
throws UnknownHostException
- Throws:
UnknownHostException
getPort
public int getPort()
getAcceptedSocket
public Socket getAcceptedSocket()
close
public final void close()
throws Exception
- Throws:
Exception
Copyright © 2000-2013. All Rights Reserved.