|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addChild(rice.p2p.scribe.Topic topic,
rice.p2p.commonapi.NodeHandle child)
Adds a child to the given topic |
void |
anycast(rice.p2p.scribe.Topic topic,
rice.p2p.scribe.ScribeContent content)
Anycasts the given content to a member of the given topic |
rice.p2p.commonapi.NodeHandle[] |
getChildren(rice.p2p.scribe.Topic topic)
Returns the list of children for a given topic |
rice.p2p.scribe.ScribePolicy |
getPolicy()
Returns the current policy for this scribe object |
boolean |
isRoot(rice.p2p.scribe.Topic topic)
Returns whether or not this Scribe is the root for the given topic |
void |
publish(rice.p2p.scribe.Topic topic,
rice.p2p.scribe.ScribeContent content)
Publishes the given message to the topic. |
void |
removeChild(rice.p2p.scribe.Topic topic,
rice.p2p.commonapi.NodeHandle child)
Removes a child from the given topic |
void |
setPolicy(rice.p2p.scribe.ScribePolicy policy)
Sets the current policy for this scribe object |
void |
subscribe(rice.p2p.scribe.Topic topic,
rice.p2p.scribe.ScribeClient client)
Subscribes the given client to the provided topic. |
void |
subscribe(rice.p2p.scribe.Topic topic,
rice.p2p.scribe.ScribeClient client,
rice.p2p.scribe.ScribeContent content)
Subscribes the given client to the provided topic. |
void |
unsubscribe(rice.p2p.scribe.Topic topic,
rice.p2p.scribe.ScribeClient client)
Unsubscribes the given client from the provided topic. |
Method Detail |
public void subscribe(rice.p2p.scribe.Topic topic, rice.p2p.scribe.ScribeClient client)
topic
- The topic to subscribe toclient
- The client to give messages topublic void subscribe(rice.p2p.scribe.Topic topic, rice.p2p.scribe.ScribeClient client, rice.p2p.scribe.ScribeContent content)
topic
- The topic to subscribe toclient
- The client to give messages tocontent
- The content to include in the subscribepublic void unsubscribe(rice.p2p.scribe.Topic topic, rice.p2p.scribe.ScribeClient client)
topic
- The topic to unsubscribe fromclient
- The client to unsubscribepublic void publish(rice.p2p.scribe.Topic topic, rice.p2p.scribe.ScribeContent content)
topic
- The topic to publish tocontent
- The content to publishpublic void anycast(rice.p2p.scribe.Topic topic, rice.p2p.scribe.ScribeContent content)
topic
- The topic to anycast tocontent
- The content to anycastpublic rice.p2p.scribe.ScribePolicy getPolicy()
public void setPolicy(rice.p2p.scribe.ScribePolicy policy)
policy
- The current policy for this scribepublic boolean isRoot(rice.p2p.scribe.Topic topic)
topic
- The topic in question
public rice.p2p.commonapi.NodeHandle[] getChildren(rice.p2p.scribe.Topic topic)
topic
- The topic to return the children of
public void addChild(rice.p2p.scribe.Topic topic, rice.p2p.commonapi.NodeHandle child)
topic
- The topic to add the child tochild
- The child to addpublic void removeChild(rice.p2p.scribe.Topic topic, rice.p2p.commonapi.NodeHandle child)
topic
- The topic to remove the child fromchild
- The child to remove
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |