|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.omg.PortableServer.Servant
|
+--org.tfe.core.AlertServerPOA
|
+--org.tfe.core.AlertServerImpl
| Constructor Summary | |
AlertServerImpl()
|
|
| Method Summary | |
void |
_initialize_inheritance_tree()
|
void |
addAlert(Alert a)
Adds an Alert to the memory buffer. |
static int |
assignAlertID()
Assigns an ID number to each new alert. |
static int |
assignCollectionID()
Assigns a collection ID to each alert. |
User |
authenticate(java.lang.String username,
java.lang.String pwHash)
|
void |
deregisterApp(User user,
int appnum)
De-registers a client application from the RTA Server. |
Alert |
get(User user,
int index)
Retrieves alerts from the server. |
Alert |
getAlert(User user,
int ID)
Retrieves an Alert from the server. |
int |
getAlertBufferSize(User user)
Gets the number of Alerts that are currently in the alertBuffer. |
AppsCallBack |
getApp(int index)
Accessor method for the registeredApps array. |
int |
getNumClients()
Accessor method for the numClients variable. |
int |
getNumClients(User user)
|
int |
getNumCollections(User user)
|
int |
getNumUsers(User user)
|
static int |
getRegisteredAppsLength()
Accessor method for the registeredApps size. |
java.lang.String |
getServerStatus(User user)
|
int |
registerApp(AppsCallBack objRef,
User user,
java.lang.String host)
Registers a client with the RTA Server. |
void |
removeAlert(int ID,
User user,
java.lang.String host)
Removes an Alert from the server. |
java.lang.String |
requestSeed(java.lang.String user)
|
void |
resetAlerts(User user,
java.lang.String host)
Removes all Alerts from the server. |
void |
sendMessage(User user,
java.lang.String message)
Used to send a text message to other clients. |
| Methods inherited from class org.tfe.core.AlertServerPOA |
_all_interfaces, _invoke, _this, _this |
| Methods inherited from class org.omg.PortableServer.Servant |
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AlertServerImpl()
| Method Detail |
public void addAlert(Alert a)
a - the Alert to be added to the alertBuffer
public Alert getAlert(User user,
int ID)
throws NotAuthorizedException
user - the username associated with the client making the request.ID - the ID number of the Alert to be retrieved.
NotAuthorizedException
public Alert get(User user,
int index)
throws NotAuthorizedException
user - the username associated with the client making the request.index - the index of the alert to be retrieved.
NotAuthorizedException
public void removeAlert(int ID,
User user,
java.lang.String host)
throws NotAuthorizedException
ID - the ID number of the Alert to be removed.user - the username associated with the client making the request.host - the hostname associated with the client making the request.
NotAuthorizedException
public void resetAlerts(User user,
java.lang.String host)
throws NotAuthorizedException
user - the username associated with the client making the request.host - the hostname associated with the client making the request.
NotAuthorizedException
public int registerApp(AppsCallBack objRef,
User user,
java.lang.String host)
throws NotAuthorizedException
objRef - a callback reference to the client, so that the RTA Server can exchange objects with the client.user - the username associated with the client.host - the hostname associated with the client.
NotAuthorizedException
public void deregisterApp(User user,
int appnum)
throws NotAuthorizedException
EventServantMaintenanceThread sends periodic messages to the clients and if a
client fails to respond, it is deregistered.
user - the username associated with the client making the request.appnum - the index number of the client making the request.
NotAuthorizedException
public void sendMessage(User user,
java.lang.String message)
throws NotAuthorizedException
user - the username of the client that is sending the message.message - the text of the message.
NotAuthorizedExceptionpublic static int assignCollectionID()
public static int assignAlertID()
public int getNumClients()
public AppsCallBack getApp(int index)
public static int getRegisteredAppsLength()
public int getAlertBufferSize(User user)
throws NotAuthorizedException
user - the username associated with the client making the request.
NotAuthorizedException
public User authenticate(java.lang.String username,
java.lang.String pwHash)
throws AuthenticationFailedException
AuthenticationFailedExceptionpublic java.lang.String requestSeed(java.lang.String user)
public java.lang.String getServerStatus(User user)
throws NotAuthorizedException
NotAuthorizedException
public int getNumClients(User user)
throws NotAuthorizedException
NotAuthorizedException
public int getNumCollections(User user)
throws NotAuthorizedException
NotAuthorizedException
public int getNumUsers(User user)
throws NotAuthorizedException
NotAuthorizedExceptionpublic void _initialize_inheritance_tree()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||