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 TypeMethodDescriptionbooleangetBound()private voidstatic void(package private) voidRegister with own GameId-based RegistryId to the GameManager.(package private) ExceptionRegister this managed game to rmi registry so that GameManager can can find it from there via it's game id.private static voidsleepFor(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:
tellStatusin 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)
-