|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.services.notification.notificationserver.NotificationServerBean
public abstract class NotificationServerBean
The Bean class for NotificationServerBean Session
| Constructor Summary | |
|---|---|
NotificationServerBean()
|
|
| Method Summary | |
|---|---|
Vector |
broadCast(Node sourceNode,
String action,
String date,
Object payload)
This method sends a Notification message to all the RegisteredUsers. |
boolean |
isIDRegistered(String targetId)
This method determines whether an ID has been registered already |
Vector |
notifyUser(Node sourceNode,
Node targetNode,
String action,
String date,
Object payload,
String direction)
The direction parameter can have one of 2 values :[Request | Response] If the value is Request, a Source Node is sending a Notification to a Target Node If the value is Response, a Target Node is sending a Response to a Notification back to the Source Node where the Notification originated from In this method we determine what targetIP and targetPort to use based on the following logic: if direction == Request if targetNode.ID != null Retrieve RegisteredAddress using targetNode.ID else Read targetNode.IP and targetPort.PORT from TargetSelectionFactory.getTargetIPForSource() else if direction == Response Read the targetNode.IP Read the targetNode.PORT connectToServer(targetIP,targetPort,sourceNode,action,date,payload) |
Vector |
notifyUser(String sourceId,
String target,
String action,
String date,
Object payload)
Deprecated. |
Vector |
registerUser(String targetId,
String targetIp,
String targetPort)
This method registers a user |
Vector |
unregisterUser(String targetId)
This method unregisters a user |
Vector |
unregisterUser(String targetId,
String targetIp,
String targetPort)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NotificationServerBean()
| Method Detail |
|---|
public Vector unregisterUser(String targetId,
String targetIp,
String targetPort)
throws ProcessingErrorException
unregisterUser in interface NotificationServertargetId - StringtargetIp - StringtargetPort - String
ProcessingErrorException - thrown when processing fails
public Vector unregisterUser(String targetId)
throws ProcessingErrorException
unregisterUser in interface NotificationServertargetId - String
ProcessingErrorException - thrown when processing fails
public Vector registerUser(String targetId,
String targetIp,
String targetPort)
throws ProcessingErrorException
registerUser in interface NotificationServertargetId - StringtargetIp - StringtargetPort - String
ProcessingErrorException - thrown when processing fails
public Vector notifyUser(String sourceId,
String target,
String action,
String date,
Object payload)
throws ProcessingErrorException
payloadLogFile setting in BankframeResource.properties
notifyUser in interface NotificationServersourceId - Stringtarget - Stringaction - Stringdate - Stringpayload - Object
ProcessingErrorException - This exception is thrown if processing fails
public Vector notifyUser(Node sourceNode,
Node targetNode,
String action,
String date,
Object payload,
String direction)
throws ProcessingErrorException
notifyUser in interface NotificationServersourceNode - NodetargetNode - Nodeaction - Stringdate - Stringpayload - Objectdirection - String
ProcessingErrorException
public Vector broadCast(Node sourceNode,
String action,
String date,
Object payload)
throws ProcessingErrorException
broadCast in interface NotificationServersourceNode - Nodeaction - Stringdate - Stringpayload - Object
ProcessingErrorException
public boolean isIDRegistered(String targetId)
throws ProcessingErrorException,
RemoteException
isIDRegistered in interface NotificationServertargetId - String
ProcessingErrorException
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||