public abstract class RConThread
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
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 |
RConThread(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) |
void |
func_219591_b() |
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 org.apache.logging.log4j.Logger LOGGER
private static final java.util.concurrent.atomic.AtomicInteger THREAD_ID
protected boolean running
protected final IServer server
protected final java.lang.String threadName
protected java.lang.Thread rconThread
protected final int maxStopWait
protected final java.util.List<java.net.DatagramSocket> socketList
protected final java.util.List<java.net.ServerSocket> serverSocketList
protected RConThread(IServer serverIn, java.lang.String threadName)
public void startThread()
public void func_219591_b()
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)