com.bankframe.services.notification.impl.rminotificationserver
Class RMINotificationServerImpl

java.lang.Object
  extended bycom.bankframe.services.notification.impl.rminotificationserver.RMINotificationServerImpl
All Implemented Interfaces:
NotificationServer, java.rmi.Remote, RMINotificationServer

public class RMINotificationServerImpl
extends java.lang.Object
implements RMINotificationServer

This class implements the Remote services defined in: com.bankframe.services.notification.impl.rminotificationserver.RMINotificationServer.


Constructor Summary
RMINotificationServerImpl()
          Implementations must have an explicit constructor in order to declare the RemoteException exception
 
Method Summary
 java.util.Vector broadCast(Node sourceNode, java.lang.String action, java.lang.String date, java.lang.Object payload)
          This method broadcasts a NotificationEvent to all 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 sends a notificationEvent to a registeredUser
 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. @ see notifyUser(Node sourceNode, Node targetNode, String action, String date, Object payload, String direction)
 java.util.Vector registerUser(java.lang.String targetId, java.lang.String targetIp, java.lang.String targetPort)
          This method registers a user
 java.util.Vector unregisterUser(java.lang.String targetId)
          This method unregisters a user
 java.util.Vector unregisterUser(java.lang.String targetId, java.lang.String targetIp, java.lang.String targetPort)
          Deprecated. @ see unregisterUser(String targetId)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMINotificationServerImpl

public RMINotificationServerImpl()
                          throws java.rmi.RemoteException
Implementations must have an explicit constructor in order to declare the RemoteException exception

Method Detail

registerUser

public java.util.Vector registerUser(java.lang.String targetId,
                                     java.lang.String targetIp,
                                     java.lang.String targetPort)
                              throws ProcessingErrorException,
                                     java.rmi.RemoteException
This method registers a user

Specified by:
registerUser in interface NotificationServer
Parameters:
targetId - String
targetIp - String
targetPort - String
Returns:
Vector containing the result
Throws:
ProcessingErrorException - thrown when processing fails
java.rmi.RemoteException - This exception is thrown if communication fails during the remote method call

unregisterUser

public java.util.Vector unregisterUser(java.lang.String targetId,
                                       java.lang.String targetIp,
                                       java.lang.String targetPort)
                                throws ProcessingErrorException,
                                       java.rmi.RemoteException
Deprecated. @ see unregisterUser(String targetId)

This method unregisters a user

Specified by:
unregisterUser in interface NotificationServer
Parameters:
targetId - String
targetIp - String
targetPort - String
Returns:
Vector containing the result
Throws:
ProcessingErrorException - thrown when processing fails
java.rmi.RemoteException - This exception is thrown if communication fails during the remote method call

unregisterUser

public java.util.Vector unregisterUser(java.lang.String targetId)
                                throws ProcessingErrorException,
                                       java.rmi.RemoteException
This method unregisters a user

Specified by:
unregisterUser in interface NotificationServer
Parameters:
targetId - String
Returns:
Vector containing the result
Throws:
ProcessingErrorException - thrown when processing fails
java.rmi.RemoteException - This exception is thrown if communication fails during the remote method call

notifyUser

public 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
Deprecated. @ see notifyUser(Node sourceNode, Node targetNode, String action, String date, Object payload, String direction)

This method sends a notificationEvent to a registeredUser

Specified by:
notifyUser in interface NotificationServer
Parameters:
sourceId - String
targetId - String
action - String
date - String
payload - Object
Returns:
Vector
Throws:
java.rmi.RemoteException - This exception is thrown if communication fails during the remote method call\
ProcessingErrorException - This exception is thrown if processing fails

notifyUser

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
This method sends a notificationEvent to a registeredUser

Specified by:
notifyUser in interface NotificationServer
Parameters:
sourceNode - Node
targetNode - Node
action - String
date - String
payload - Object
direction - String
Returns:
Vector
Throws:
ProcessingErrorException
java.rmi.RemoteException

broadCast

public java.util.Vector broadCast(Node sourceNode,
                                  java.lang.String action,
                                  java.lang.String date,
                                  java.lang.Object payload)
                           throws ProcessingErrorException,
                                  java.rmi.RemoteException
This method broadcasts a NotificationEvent to all registeredUsers

Specified by:
broadCast in interface NotificationServer
Parameters:
sourceNode - Node
action - String
date - String
payload - Object
Returns:
Vector containing the result
Throws:
ProcessingErrorException - thrown when processing fails
java.rmi.RemoteException

isIDRegistered

public boolean isIDRegistered(java.lang.String targetId)
                       throws ProcessingErrorException,
                              java.rmi.RemoteException
This method determines whether an ID has been registered already

Specified by:
isIDRegistered in interface NotificationServer
Parameters:
targetId - String
Returns:
boolean
Throws:
ProcessingErrorException
java.rmi.RemoteException


Copyright © 2005, 2007, Oracle. All rights reserved.