|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MessageListener
Interface for classes that want to be informed about messages between hosts
| Method Summary | |
|---|---|
void |
messageDeleted(Message m,
DTNHost where,
boolean dropped)
Method is called when a message is deleted |
void |
messageTransferAborted(Message m,
DTNHost from,
DTNHost to)
Method is called when a message's transfer was aborted before it finished |
void |
messageTransferred(Message m,
DTNHost from,
DTNHost to,
boolean firstDelivery)
Method is called when a message is succesfully transferred from a node to another. |
void |
messageTransferStarted(Message m,
DTNHost from,
DTNHost to)
Method is called when a message's transfer is started |
void |
newMessage(Message m)
Method is called when a new message is created |
| Method Detail |
|---|
void newMessage(Message m)
m - Message that was created
void messageTransferStarted(Message m,
DTNHost from,
DTNHost to)
m - The message that is going to be transferredfrom - Node where the message is transferred fromto - Node where the message is transferred to
void messageDeleted(Message m,
DTNHost where,
boolean dropped)
m - The message that was deletedwhere - The host where the message was deleteddropped - True if the message was dropped, false if removed
void messageTransferAborted(Message m,
DTNHost from,
DTNHost to)
m - The message that was being transferredfrom - Node where the message was being transferred fromto - Node where the message was being transferred to
void messageTransferred(Message m,
DTNHost from,
DTNHost to,
boolean firstDelivery)
m - The message that was transferredfrom - Node where the message was transferred fromto - Node where the message was transferred tofirstDelivery - Was the target node final destination of the message
and received this message for the first time.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||