public class Server
extends java.lang.Thread
| Constructor | Description |
|---|---|
Server(java.io.File activeMapDirectory,
java.io.File previousMapsDirectory,
int port,
java.io.File tokenFile,
java.util.logging.Level logLevel,
java.io.File logFile) |
Create a new server.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
run() |
Run the server.
|
void |
terminate() |
Stop the server.
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactiveCount, 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, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic Server(java.io.File activeMapDirectory,
java.io.File previousMapsDirectory,
int port,
java.io.File tokenFile,
java.util.logging.Level logLevel,
java.io.File logFile)
throws java.io.IOException
activeMapDirectory - The directory where the active maps are stored.previousMapsDirectory - The directory where the directories of old maps can be found.port - The port to start the server at.tokenFile - The token of the device.logLevel - The log level.logFile - The file where to store the logs. If null the logs will be output to the console.java.io.IOException - If the directories are invalid, If the log file is invalid or if the token is invalid.Copyright © 2018. All rights reserved.