Package net.sf.colossus.server
Class ManagedGame
java.lang.Object
net.sf.colossus.server.ManagedGame
- All Implemented Interfaces:
Remote
,IManagedGame
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBound()
private void
static void
(package private) void
Register with own GameId-based RegistryId to the GameManager.(package private) Exception
Register this managed game to rmi registry so that GameManager can can find it from there via it's game id.private static void
sleepFor
(long millis) (package private) void
(package private) void
-
Field Details
-
LOGGER
-
id
-
registry
-
gm
-
bound
private boolean boundTrue if registration to registry was successful
-
-
Constructor Details
-
ManagedGame
- Throws:
RemoteException
-
-
Method Details
-
tellStatus
- Specified by:
tellStatus
in interfaceIManagedGame
- Throws:
RemoteException
-
getRegistryId
-
initRegistry
- Throws:
RemoteException
-
getBound
public boolean getBound() -
registerToRegistry
Exception registerToRegistry()Register this managed game to rmi registry so that GameManager can can find it from there via it's game id.- Returns:
- An exception indicating a failure, null if all is ok.
-
unregisterFromRegistry
-
registerToGameManager
Register with own GameId-based RegistryId to the GameManager. -
unregisterFromGameManager
-
main
- Parameters:
args
-
-
sleepFor
private static void sleepFor(long millis)
-