|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClientManagerFactoryOperations
The main interface that the client uses to communicate with the server
Method Summary | |
---|---|
void |
exitServer()
Exits the server gracefully [TO TERMINATE THE SERVICE] |
void |
flushLogs()
Flushes the server's log files [FOR EXPERIMENTS] |
ClientManager |
getClientManager(String hostname)
Creates a new client manager instance for a new client |
ClientManager |
getExistingClientManager(int clientID,
String hostname)
Returns the existing client manager instance for an existing client. |
void |
hoseDatabaseConnection()
Causes the server's database connection to become "hosed," meaning that it will fail to work after this method is called. |
void |
killServer()
Kills the server [TO TEST FAILURES] |
void |
poke()
Pokes the server to see if it is still alive and that it can still communicate with the database |
Method Detail |
---|
ClientManager getClientManager(String hostname) throws ServiceUnavailableException
hostname
- The host name of the client
ServiceUnavailableException
- Thrown if the database cannot be
contacted or if some other reason prevents the client manager from
being created successfullyClientManager getExistingClientManager(int clientID, String hostname) throws ServiceUnavailableException, InvalidClientException
clientID
- The ID of the client to get the ClientManager ofhostname
- The host name of the client
InvalidClientException
- Thrown when the given client ID is not known to the system
ServiceUnavailableException
- Thrown if the database cannot be contacted or if
some other reason prevents the client manager from being retrieved successfullyvoid poke() throws ServiceUnavailableException
ServiceUnavailableException
- Thrown when the server's database
connection is not working
[Category: Dependability; Requirement: 1]void hoseDatabaseConnection()
void killServer()
void exitServer()
void flushLogs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |