|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of remote interface this server supplies to clientspublic interface RemoteServer<T extends Remote>
Defines the methods available to remote clients.
Field Summary | |
---|---|
static String |
SERVER_ADMIN_PREFIX
|
Method Summary | |
---|---|
T |
connect(ClientInfo clientInfo)
Establishes a connection to this RemoteServer |
T |
connect(User user,
UUID clientID,
String clientTypeID)
Establishes a connection to this RemoteServer |
boolean |
connectionsAvailable()
|
void |
disconnect(UUID clientID)
Disconnects the connection identified by the given key. |
int |
getServerLoad()
|
String |
getServerName()
|
int |
getServerPort()
|
Field Detail |
---|
static final String SERVER_ADMIN_PREFIX
Method Detail |
---|
T connect(ClientInfo clientInfo) throws RemoteException, ServerException.ServerFullException, ServerException.LoginException
clientInfo
- the client info
RemoteException
- in case of a RemoteException
ServerException.ServerFullException
- in case the server isn't accepting more connections
ServerException.LoginException
- in case the login failsT connect(User user, UUID clientID, String clientTypeID) throws RemoteException, ServerException.ServerFullException, ServerException.LoginException
user
- the userclientID
- a UUID identifying the clientclientTypeID
- a String identifying the client
RemoteException
- in case of a RemoteException
ServerException.ServerFullException
- in case the server isn't accepting more connections
ServerException.LoginException
- in case the login failsvoid disconnect(UUID clientID) throws RemoteException
clientID
- the UUID identifying the client that should be disconnected
RemoteException
- in case of a communication errorString getServerName() throws RemoteException
RemoteException
- in case of a communication errorint getServerPort() throws RemoteException
RemoteException
- in case of a RemoteExceptionint getServerLoad() throws RemoteException
RemoteException
- in case of an exceptionboolean connectionsAvailable() throws RemoteException
RemoteException
- in case of an exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |