package be.demmel.jgws.rmi; import java.io.Serializable; import java.rmi.RemoteException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class GameServerPortalImpl implements GameServerPortal, Serializable { private static final Logger LOGGER = LoggerFactory.getLogger(GameServerPortalImpl.class); @Override public void acceptPlayerRequest(LoginServerPlayerData playerData) throws RemoteException { //TODO: verify utilization and don't accept the player if full LOGGER.info("acceptPlayerRequest received with {}", playerData); be.demmel.jgws.GameServer.addClientKeys(playerData); } @Override public void ping() throws RemoteException { // The Login Server just wants to check if the Game Server is still alive //TODO: refactor this to some "health checking" where utilization and other stats are passed? } }