|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omg.CORBA.portable.ObjectImpl
ParkNPark.interfaces._ClientManagerFactoryStub
public class _ClientManagerFactoryStub
The main interface that the client uses to communicate with the server
Field Summary | |
---|---|
private static String[] |
__ids
|
Constructor Summary | |
---|---|
_ClientManagerFactoryStub()
|
Method Summary | |
---|---|
String[] |
_ids()
|
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 |
private void |
readObject(ObjectInputStream s)
|
private void |
writeObject(ObjectOutputStream s)
|
Methods inherited from class org.omg.CORBA.portable.ObjectImpl |
---|
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.omg.CORBA.Object |
---|
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override |
Field Detail |
---|
private static String[] __ids
Constructor Detail |
---|
public _ClientManagerFactoryStub()
Method Detail |
---|
public ClientManager getClientManager(String hostname) throws ServiceUnavailableException
getClientManager
in interface ClientManagerFactoryOperations
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 successfullypublic ClientManager getExistingClientManager(int clientID, String hostname) throws ServiceUnavailableException, InvalidClientException
getExistingClientManager
in interface ClientManagerFactoryOperations
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 successfullypublic void poke() throws ServiceUnavailableException
poke
in interface ClientManagerFactoryOperations
ServiceUnavailableException
- Thrown when the server's database
connection is not working
[Category: Dependability; Requirement: 1]public void hoseDatabaseConnection()
hoseDatabaseConnection
in interface ClientManagerFactoryOperations
public void killServer()
killServer
in interface ClientManagerFactoryOperations
public void exitServer()
exitServer
in interface ClientManagerFactoryOperations
public void flushLogs()
flushLogs
in interface ClientManagerFactoryOperations
public String[] _ids()
_ids
in class ObjectImpl
private void readObject(ObjectInputStream s) throws IOException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |