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

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

public class RMINotificationServerImpl
extends 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
 Vector broadCast(Node sourceNode, String action, String date, Object payload)
          This method broadcasts a NotificationEvent to all 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)
          This method sends a notificationEvent to a registeredUser
 Vector notifyUser(String sourceId, String targetId, String action, String date, Object payload)
          Deprecated. @ see notifyUser(Node sourceNode, Node targetNode, String action, String date, Object payload, String direction)
 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. @ 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 RemoteException
Implementations must have an explicit constructor in order to declare the RemoteException exception

Throws:
RemoteException
Method Detail

registerUser

public Vector registerUser(String targetId,
                           String targetIp,
                           String targetPort)
                    throws ProcessingErrorException,
                           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
RemoteException - This exception is thrown if communication fails during the remote method call

unregisterUser

public Vector unregisterUser(String targetId,
                             String targetIp,
                             String targetPort)
                      throws ProcessingErrorException,
                             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
RemoteException - This exception is thrown if communication fails during the remote method call

unregisterUser

public Vector unregisterUser(String targetId)
                      throws ProcessingErrorException,
                             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
RemoteException - This exception is thrown if communication fails during the remote method call

notifyUser

public Vector notifyUser(String sourceId,
                         String targetId,
                         String action,
                         String date,
                         Object payload)
                  throws ProcessingErrorException,
                         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:
ProcessingErrorException - This exception is thrown if processing fails
RemoteException - This exception is thrown if communication fails during the remote method call\

notifyUser

public Vector notifyUser(Node sourceNode,
                         Node targetNode,
                         String action,
                         String date,
                         Object payload,
                         String direction)
                  throws ProcessingErrorException,
                         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
RemoteException

broadCast

public Vector broadCast(Node sourceNode,
                        String action,
                        String date,
                        Object payload)
                 throws ProcessingErrorException,
                        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
RemoteException

isIDRegistered

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

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


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