public abstract class RConThreadBase
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
protected int |
maxStopWait |
protected java.lang.Thread |
rconThread |
protected boolean |
running |
protected IServer |
server |
protected java.util.List<java.net.ServerSocket> |
serverSocketList |
protected java.util.List<java.net.DatagramSocket> |
socketList |
private static java.util.concurrent.atomic.AtomicInteger |
THREAD_ID |
protected java.lang.String |
threadName |
Modifier | Constructor and Description |
---|---|
protected |
RConThreadBase(IServer serverIn,
java.lang.String threadName) |
Modifier and Type | Method and Description |
---|---|
protected void |
closeAllSockets_do(boolean logWarning) |
protected void |
closeAllSockets() |
protected boolean |
closeServerSocket_do(java.net.ServerSocket socket,
boolean removeFromList) |
protected boolean |
closeServerSocket(java.net.ServerSocket socket) |
protected boolean |
closeSocket(java.net.DatagramSocket socket,
boolean removeFromList) |
protected int |
getNumberOfPlayers() |
boolean |
isRunning() |
protected void |
logDebug(java.lang.String msg) |
protected void |
logInfo(java.lang.String msg) |
protected void |
logSevere(java.lang.String msg) |
protected void |
logWarning(java.lang.String msg) |
protected void |
registerSocket(java.net.DatagramSocket socket) |
void |
startThread() |
private static final java.util.concurrent.atomic.AtomicInteger THREAD_ID
protected boolean running
protected IServer server
protected final java.lang.String threadName
protected java.lang.Thread rconThread
protected int maxStopWait
protected java.util.List<java.net.DatagramSocket> socketList
protected java.util.List<java.net.ServerSocket> serverSocketList
protected RConThreadBase(IServer serverIn, java.lang.String threadName)
public void startThread()
public boolean isRunning()
protected void logDebug(java.lang.String msg)
protected void logInfo(java.lang.String msg)
protected void logWarning(java.lang.String msg)
protected void logSevere(java.lang.String msg)
protected int getNumberOfPlayers()
protected void registerSocket(java.net.DatagramSocket socket)
protected boolean closeSocket(java.net.DatagramSocket socket, boolean removeFromList)
protected boolean closeServerSocket(java.net.ServerSocket socket)
protected boolean closeServerSocket_do(java.net.ServerSocket socket, boolean removeFromList)
protected void closeAllSockets()
protected void closeAllSockets_do(boolean logWarning)