|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Scribe
| Method Summary | |
|---|---|
void |
addChild(Topic topic,
NodeHandle child)
Adds a child to the given topic |
void |
anycast(Topic topic,
RawScribeContent content)
|
void |
anycast(Topic topic,
ScribeContent content)
Anycasts the given content to a member of the given topic |
void |
destroy()
|
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)
|
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)
|
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)
|
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 |
|---|
void subscribe(Topic topic,
ScribeClient client)
topic - The topic to subscribe toclient - The client to give messages to
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 subscribe
void subscribe(Topic topic,
ScribeClient client,
RawScribeContent content)
void unsubscribe(Topic topic,
ScribeClient client)
topic - The topic to unsubscribe fromclient - The client to unsubscribe
void publish(Topic topic,
ScribeContent content)
topic - The topic to publish tocontent - The content to publish
void publish(Topic topic,
RawScribeContent content)
void anycast(Topic topic,
ScribeContent content)
topic - The topic to anycast tocontent - The content to anycast
void anycast(Topic topic,
RawScribeContent content)
ScribePolicy getPolicy()
void setPolicy(ScribePolicy policy)
policy - The current policy for this scribeboolean isRoot(Topic topic)
topic - The topic in question
NodeHandle[] getChildren(Topic topic)
topic - The topic to return the children of
NodeHandle getParent(Topic myTopic)
myTopic - The topic to return the parent of
void addChild(Topic topic,
NodeHandle child)
topic - The topic to add the child tochild - The child to add
void removeChild(Topic topic,
NodeHandle child)
topic - The topic to remove the child fromchild - The child to removeTopic[] getTopics(ScribeClient client)
client - The client in question
Environment getEnvironment()
void destroy()
destroy in interface Destructablevoid setContentDeserializer(ScribeContentDeserializer deserializer)
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||