Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Interface fi.hut.tcm.jacob.conduits.NotifyMessenger

Implementing Classes:
Notifier

public abstract interface NotifyMessenger
extends Messenger
NotifyMessenger Interprets notification information, which is stored somewhere in the notification message, probably in the out of band area (NotifyOob). The Conduit that gets a notification message can use the NotifyMessenger referenced by the message to find out if the requested operation was successful by checking a status code contained within the message. If the requestor has stored references to all the requests it has made for which no feedback has been received yet, it will be a simple matter to determine which operation has completed by comparing the reference returned by getRequest() to the list. If this has not been done, the requestor can call getRequest.getMessenger() to get a reference to the original messenger, in order to use it to interpret the request message.


Field Summary
static int FAILURE
           
static int SUCCESS
           
 
Method Summary
Message getRequest(Message message)
          Returns a reference to the request message.
int getStatusCode(Message message)
          Returns the status code for the completion of the request returned by getRequest().
 

Field Detail

SUCCESS

public static final int SUCCESS

FAILURE

public static final int FAILURE
Method Detail

getRequest

public Message getRequest(Message message)
Returns a reference to the request message. (The notify message signals completion/failure of the request returned.)
Parameters:
message - the notification message

getStatusCode

public int getStatusCode(Message message)
Returns the status code for the completion of the request returned by getRequest(). The used status code may be one of the values NotifyMessenger.SUCCESS or NotifyMessenger.FAILURE, but need not be.
Parameters:
message - the notification message

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD