Package it.polimi.ingsw.Server
Class ServerManager
java.lang.Object
it.polimi.ingsw.Server.ServerManager
Server management console
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<GameController,
Object> private static final Map<GameController,
Object> private static final Map<GameController,
Semaphore> private static final int
private static final SimpleDateFormat
private static final ExecutorService
private static FileHandler
private static final Map<String,
GameController> private static Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
private static void
static void
Main method, welcoming Server management consoleprivate static void
private static void
private static void
SocketServer
(String[] args) static void
Outputs an informative message in Server's log (and terminalOutput)static void
writeWarning
(String msg) Outputs a Warning in Server's log (and terminalOutput)
-
Field Details
-
identifierToController
-
controllerToSemaphore
-
controllerToCommuter
-
controllerToLobbyCommuter
-
executor
-
countParameters
private static final int countParameters- See Also:
-
dateFormatter
-
logFile
-
FH
-
-
Constructor Details
-
ServerManager
public ServerManager()
-
-
Method Details
-
main
Main method, welcoming Server management console- Parameters:
args
- default arguments array
-
createLog
private static void createLog() -
manageLog
private static void manageLog() -
writeWarning
Outputs a Warning in Server's log (and terminalOutput)- Parameters:
msg
- message
-
writeInfo
Outputs an informative message in Server's log (and terminalOutput)- Parameters:
msg
- message
-
loadPersistentGames
private static void loadPersistentGames() -
SocketServer
-
RMIServer
-