|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addChild(Topic topic,
NodeHandle child)
Adds a child to the given topic |
void |
anycast(Topic topic,
RawScribeContent content)
DESCRIBE THE METHOD |
void |
anycast(Topic topic,
ScribeContent content)
Anycasts the given content to a member of the given topic |
void |
destroy()
DESCRIBE THE METHOD |
NodeHandle[] |
getChildren(Topic topic)
Returns the list of children for a given topic |
Environment |
getEnvironment()
|
NodeHandle |
getParent(Topic myTopic)
Returns the parent node for a given topic |
ScribePolicy |
getPolicy()
Returns the current policy for this scribe object |
Topic[] |
getTopics(ScribeClient client)
Returns the list of topics the given client is subscribed to. |
boolean |
isRoot(Topic topic)
Returns whether or not this Scribe is the root for the given topic |
void |
publish(Topic topic,
RawScribeContent content)
DESCRIBE THE METHOD |
void |
publish(Topic topic,
ScribeContent content)
Publishes the given message to the topic. |
void |
removeChild(Topic topic,
NodeHandle child)
Removes a child from the given topic |
void |
setContentDeserializer(ScribeContentDeserializer deserializer)
Sets the ContentDeserializer attribute of the Scribe object |
void |
setPolicy(ScribePolicy policy)
Sets the current policy for this scribe object |
void |
subscribe(Topic topic,
ScribeClient client)
Subscribes the given client to the provided topic. |
void |
subscribe(Topic topic,
ScribeClient client,
RawScribeContent content)
DESCRIBE THE METHOD |
void |
subscribe(Topic topic,
ScribeClient client,
ScribeContent content)
Subscribes the given client to the provided topic. |
void |
unsubscribe(Topic topic,
ScribeClient client)
Unsubscribes the given client from the provided topic. |
Method Detail |
public void subscribe(Topic topic, ScribeClient client)
topic
- The topic to subscribe toclient
- The client to give messages topublic void subscribe(Topic topic, ScribeClient client, ScribeContent content)
topic
- The topic to subscribe toclient
- The client to give messages tocontent
- The content to include in the subscribepublic void subscribe(Topic topic, ScribeClient client, RawScribeContent content)
topic
- DESCRIBE THE PARAMETERclient
- DESCRIBE THE PARAMETERcontent
- DESCRIBE THE PARAMETERpublic void unsubscribe(Topic topic, ScribeClient client)
topic
- The topic to unsubscribe fromclient
- The client to unsubscribepublic void publish(Topic topic, ScribeContent content)
topic
- The topic to publish tocontent
- The content to publishpublic void publish(Topic topic, RawScribeContent content)
topic
- DESCRIBE THE PARAMETERcontent
- DESCRIBE THE PARAMETERpublic void anycast(Topic topic, ScribeContent content)
topic
- The topic to anycast tocontent
- The content to anycastpublic void anycast(Topic topic, RawScribeContent content)
topic
- DESCRIBE THE PARAMETERcontent
- DESCRIBE THE PARAMETERpublic ScribePolicy getPolicy()
public void setPolicy(ScribePolicy policy)
policy
- The current policy for this scribepublic boolean isRoot(Topic topic)
topic
- The topic in question
public NodeHandle[] getChildren(Topic topic)
topic
- The topic to return the children of
public NodeHandle getParent(Topic myTopic)
myTopic
- The topic to return the parent of
public void addChild(Topic topic, NodeHandle child)
topic
- The topic to add the child tochild
- The child to addpublic void removeChild(Topic topic, NodeHandle child)
topic
- The topic to remove the child fromchild
- The child to removepublic Topic[] getTopics(ScribeClient client)
client
- The client in question
public Environment getEnvironment()
public void destroy()
destroy
in interface Destructable
public void setContentDeserializer(ScribeContentDeserializer deserializer)
deserializer
- The new ContentDeserializer value
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |