|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FrameworkSubscriber
This interface must be implemented by the application using the Peer2Me framework, and defines required methods
Method Summary | |
---|---|
void |
messagePartReceived(java.lang.String messageID,
int part,
int total)
This method is called for every part of a whole Message
that is received. |
void |
messageReceived(Message message)
This method is called whenever a Message is received |
void |
nodeDiscovered(Node node)
This method is called whenever a new Node is discovered |
void |
nodeLost(Node node)
This is called whenever a Node is lost or abscent |
void |
searchCompleted()
This method is called whenever a search for devices and services is finished. |
Method Detail |
---|
void nodeDiscovered(Node node)
Node
is discovered
node
- the node which is discoveredvoid nodeLost(Node node)
Node
is lost or abscent
node
- the node that is lost or abscentvoid messageReceived(Message message)
Message
is received
message
- the message that is receivedvoid messagePartReceived(java.lang.String messageID, int part, int total)
Message
that is received. Is well suited for display progressbars in the GUI etc.
messageID
- the id of the message the part belongs topart
- the current part receivedtotal
- the total of parts to be receivedvoid searchCompleted()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |