Class StatusIntermediate
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
it.polimi.ingsw.Server.Controller.StatusIntermediate
- All Implemented Interfaces:
StatusIntermediateInterface
,Serializable
,Remote
Client Status Intermediate
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<ClientStatusInterface,
GameController> Client Status objectprivate final RMIServer
RMI Server implementationFields inherited from class java.rmi.server.RemoteObject
ref
-
Constructor Summary
ConstructorDescriptionStatusIntermediate
(RMIServer server, Map<ClientStatusInterface, GameController> clientStatusToController) Status Intermediate Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
lifeline()
Naive KeepAlive implementation, used for disconnections managementvoid
Setter for Client Status Object It makes the server manage Game's evolutionMethods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
Field Details
-
server
RMI Server implementation -
clientStatusToController
-
csi
Client Status object
-
-
Constructor Details
-
StatusIntermediate
public StatusIntermediate(RMIServer server, Map<ClientStatusInterface, GameController> clientStatusToController) throws RemoteExceptionStatus Intermediate Constructor- Parameters:
server
- RMI Server implementationclientStatusToController
- maps a Client Status Interface to the Game's controller- Throws:
RemoteException
- related to RMI
-
-
Method Details
-
setIntermediate
Setter for Client Status Object It makes the server manage Game's evolution- Specified by:
setIntermediate
in interfaceStatusIntermediateInterface
- Parameters:
csi
- Interface for the Client Status- Throws:
RemoteException
- related to RMIInterruptedException
- related to Thread managementException
-
lifeline
public void lifeline()Naive KeepAlive implementation, used for disconnections management- Specified by:
lifeline
in interfaceStatusIntermediateInterface
-