Package com.aoindustries.aoserv.daemon
Class AoservDaemonServer
java.lang.Object
java.lang.Thread
com.aoindustries.aoserv.daemon.AoservDaemonServer
- All Implemented Interfaces:
Runnable
The
AoservDaemonServer
accepts connections from an SimpleAoservClient
.
Once the connection is accepted and authenticated, the server carries out all actions requested
by the client.
This server is completely threaded to handle multiple, simultaneous clients.
- Author:
- AO Industries, Inc.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
The protocol to support.final int
The port that this server will listen on.Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionAoservDaemonServer
(InetAddress serverBind, int serverPort, String protocol) Creates a new, runningAOServServer
. -
Method Summary
Modifier and TypeMethodDescriptionstatic DaemonAccessEntry
getDaemonAccessEntry
(long key) static void
grantDaemonAccess
(long key, int command, String param1, String param2, String param3, String param4) void
run()
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
-
Field Details
-
serverPort
public final int serverPortThe port that this server will listen on. -
protocol
The protocol to support.
-
-
Constructor Details
-
AoservDaemonServer
Creates a new, runningAOServServer
.
-
-
Method Details
-
grantDaemonAccess
-
getDaemonAccessEntry
- Throws:
IOException
-
run
public void run()
-