コード例 #1
0
 public void setServerState(ServerState serverState) {
   ServerState oldState = serverInfo.getServerState();
   serverInfo.setServerState(serverState);
   LOGGER.info("Changing server state to " + serverState);
   notifyStateChangeListeners(oldState, serverState);
 }
コード例 #2
0
 public ServerState getServerState() {
   return serverInfo.getServerState();
 }
コード例 #3
0
 public boolean isAvailable() {
   return serverInfo.getErrorMessage() == null
       && serverInfo.getServerState() == ServerState.RUNNING;
 }