net.bluebones.boggle
Interface IServer

All Superinterfaces:
Remote
All Known Implementing Classes:
Server

public interface IServer
extends Remote

Interface of remote methods available on a remote Server.

Version:
0.3 $Revision: 1.3 $
Author:
Thomas David Baker

Method Summary
 void addClient(String clientAddr, String clientName)
          Adds the client at the specified RMI address to the IServer's list of current participants.
 boolean isClient(IClient client)
          Determines if the specified client is a current client of this server.
 void returnResults(Turn turn)
          Returns the specified Turn to the IServer.
 void writeMsg(String msg)
          Writes the specified message to the server.
 

Method Detail

addClient

void addClient(String clientAddr,
               String clientName)
               throws RemoteException
Adds the client at the specified RMI address to the IServer's list of current participants.

Parameters:
clientAddr - RMI address of client to add.
clientName - Name of the player at clientAddr.
Throws:
RemoteException - If there is any problem with the RMI.

returnResults

void returnResults(Turn turn)
                   throws RemoteException
Returns the specified Turn to the IServer.

Parameters:
turn - Turn to send to the IServer.
Throws:
RemoteException - If there is any problem with the RMI.

writeMsg

void writeMsg(String msg)
              throws RemoteException
Writes the specified message to the server.

Parameters:
msg - The message to write.
Throws:
RemoteException - If there is any problem with the RMI.

isClient

boolean isClient(IClient client)
                 throws RemoteException
Determines if the specified client is a current client of this server.

Parameters:
client - Client to check.
Returns:
boolean of whether the specified client is a current client of this server (true) or not (false).
Throws:
RemoteException - If there is any problem with the RMI.