com.bankframe.services.notification.notificationserver
Interface NotificationServer

All Known Subinterfaces:
NotificationServer, RMINotificationServer
All Known Implementing Classes:
NotificationServerBean, NotificationServerBean, NotificationServerSessionBean, RMINotificationServerImpl, RMINotificationServerImpl_Stub

public interface NotificationServer

Remote interface for NotificationServer Session


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)
          This method is used to notify a user with a payload
 Vector notifyUser(String sourceId, String targetId, String action, String date, Object payload)
          Deprecated.  
 Vector registerUser(String targetId, String targetIp, String targetPort)
          This method is used to register a user
 Vector unregisterUser(String targetId)
          This method is used to un-register a user
 Vector unregisterUser(String targetId, String targetIp, String targetPort)
          Deprecated.  
 

Method Detail

registerUser

Vector registerUser(String targetId,
                    String targetIp,
                    String targetPort)
                    throws ProcessingErrorException,
                           RemoteException
This method is used to register a user

Parameters:
targetId - String
targetIp - String
targetPort - String
Returns:
Vector
Throws:
ProcessingErrorException - This exception is thrown if processing fails
RemoteException - This exception is thrown if communication fails during the remote method call

unregisterUser

Vector unregisterUser(String targetId,
                      String targetIp,
                      String targetPort)
                      throws ProcessingErrorException,
                             RemoteException
Deprecated. 

This method is used to un-register a user

Parameters:
targetId - String
targetIp - String
targetPort - String
Returns:
Vector
Throws:
ProcessingErrorException - This exception is thrown if processing fails
RemoteException - This exception is thrown if communication fails during the remote method call

unregisterUser

Vector unregisterUser(String targetId)
                      throws ProcessingErrorException,
                             RemoteException
This method is used to un-register a user

Parameters:
targetId - String
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

Vector notifyUser(String sourceId,
                  String targetId,
                  String action,
                  String date,
                  Object payload)
                  throws ProcessingErrorException,
                         RemoteException
Deprecated. 

This method is used to notify a user with a payload

Parameters:
sourceId - String
targetId - String
action - String
date - String
payload - Object
Returns:
Vector
Throws:
ProcessingErrorException - This exception is thrown if processing fails
ValidationException - This exception is thrown if validation fails
RemoteException - This exception is thrown if communication fails during the remote method call\

notifyUser

Vector notifyUser(Node sourceNode,
                  Node targetNode,
                  String action,
                  String date,
                  Object payload,
                  String direction)
                  throws ProcessingErrorException,
                         RemoteException
This method is used to notify a user with a payload

Parameters:
sourceNode - Node
targetNode - Node
action - String
date - String
payload - Object
direction - String
Returns:
Vector containing the Targets response
Throws:
ProcessingErrorException
RemoteException

broadCast

Vector broadCast(Node sourceNode,
                 String action,
                 String date,
                 Object payload)
                 throws ProcessingErrorException,
                        RemoteException
This method sends a Notification message to all the RegisteredUsers

Parameters:
sourceNode - Node
action - String
date - String
payload - Object
Returns:
Vector containing the Targets response
Throws:
ProcessingErrorException
RemoteException

isIDRegistered

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

Parameters:
targetId - String
Returns:
boolean
Throws:
ProcessingErrorException
RemoteException


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