|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Remote interface for NotificationServer Session
Method Summary | |
java.util.Vector |
broadCast(Node sourceNode,
java.lang.String action,
java.lang.String date,
java.lang.Object payload)
This method sends a Notification message to all the RegisteredUsers |
boolean |
isIDRegistered(java.lang.String targetId)
This method determines whether an ID has been registered already |
java.util.Vector |
notifyUser(Node sourceNode,
Node targetNode,
java.lang.String action,
java.lang.String date,
java.lang.Object payload,
java.lang.String direction)
This method is used to notify a user with a payload |
java.util.Vector |
notifyUser(java.lang.String sourceId,
java.lang.String targetId,
java.lang.String action,
java.lang.String date,
java.lang.Object payload)
Deprecated. |
java.util.Vector |
registerUser(java.lang.String targetId,
java.lang.String targetIp,
java.lang.String targetPort)
This method is used to register a user |
java.util.Vector |
unregisterUser(java.lang.String targetId)
This method is used to un-register a user |
java.util.Vector |
unregisterUser(java.lang.String targetId,
java.lang.String targetIp,
java.lang.String targetPort)
Deprecated. |
Method Detail |
public java.util.Vector registerUser(java.lang.String targetId, java.lang.String targetIp, java.lang.String targetPort) throws ProcessingErrorException, java.rmi.RemoteException
targetId
- StringtargetIp
- StringtargetPort
- String
ProcessingErrorException
- This exception is thrown if processing fails
java.rmi.RemoteException
- This exception is thrown if communication fails during the remote method callpublic java.util.Vector unregisterUser(java.lang.String targetId, java.lang.String targetIp, java.lang.String targetPort) throws ProcessingErrorException, java.rmi.RemoteException
targetId
- StringtargetIp
- StringtargetPort
- String
ProcessingErrorException
- This exception is thrown if processing fails
java.rmi.RemoteException
- This exception is thrown if communication fails during the remote method callpublic java.util.Vector unregisterUser(java.lang.String targetId) throws ProcessingErrorException, java.rmi.RemoteException
targetId
- String
ProcessingErrorException
- This exception is thrown if processing fails
java.rmi.RemoteException
- This exception is thrown if communication fails during the remote method callpublic java.util.Vector notifyUser(java.lang.String sourceId, java.lang.String targetId, java.lang.String action, java.lang.String date, java.lang.Object payload) throws ProcessingErrorException, java.rmi.RemoteException
sourceId
- StringtargetId
- Stringaction
- Stringdate
- Stringpayload
- Object
ProcessingErrorException
- This exception is thrown if processing fails
ValidationException
- This exception is thrown if validation fails
java.rmi.RemoteException
- This exception is thrown if communication fails during the remote method call\public java.util.Vector notifyUser(Node sourceNode, Node targetNode, java.lang.String action, java.lang.String date, java.lang.Object payload, java.lang.String direction) throws ProcessingErrorException, java.rmi.RemoteException
sourceNode
- NodetargetNode
- Nodeaction
- Stringdate
- Stringpayload
- Objectdirection
- String
ProcessingErrorException
java.rmi.RemoteException
public java.util.Vector broadCast(Node sourceNode, java.lang.String action, java.lang.String date, java.lang.Object payload) throws ProcessingErrorException, java.rmi.RemoteException
sourceNode
- Nodeaction
- Stringdate
- Stringpayload
- Object
ProcessingErrorException
java.rmi.RemoteException
public boolean isIDRegistered(java.lang.String targetId) throws ProcessingErrorException, java.rmi.RemoteException
targetId
- String
ProcessingErrorException
java.rmi.RemoteException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |