|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BaseScribe
Scribe functions not specific to serialization type.
Method Summary | |
---|---|
void |
addChild(Topic topic,
NodeHandle child)
Adds a child to the given topic |
boolean |
containsChild(Topic topic,
NodeHandle child)
|
boolean |
containsTopic(Topic topic)
Returns true if there is a TopicManager object corresponding to this topic |
NodeHandle[] |
getChildren(Topic topic)
Deprecated. use getChildrenOfTopic |
java.util.Collection<NodeHandle> |
getChildrenOfTopic(Topic topic)
|
java.util.Collection<ScribeClient> |
getClients(Topic topic)
|
java.util.Collection<ScribeMultiClient> |
getClientsByTopic(Topic topic)
|
Environment |
getEnvironment()
|
NodeHandle |
getParent(Topic topic)
Returns the parent node for a given topic |
ScribePolicy |
getPolicy()
Returns the current policy for this scribe object |
NodeHandle |
getRoot(Topic topic)
Returns the root of the topic, if we can determine it. |
Topic[] |
getTopics(ScribeClient client)
Deprecated. use getTopicsByClient() |
java.util.Collection<Topic> |
getTopicsByClient(ScribeClient client)
|
java.util.Collection<Topic> |
getTopicsByClient(ScribeMultiClient client)
|
boolean |
isRoot(Topic topic)
Returns whether or not this Scribe is the root for the given topic |
int |
numChildren(Topic topic)
|
void |
removeChild(Topic topic,
NodeHandle child)
Removes a child from the given topic |
void |
setPolicy(ScribePolicy policy)
Sets the current policy for this scribe object |
void |
subscribe(Topic topic,
ScribeClient client)
Deprecated. use subscribe(Topic, ScribeMultiClient, ScribeContent, NodeHandle hint) |
void |
unsubscribe(java.util.Collection<Topic> topicsToUnsubscribe,
ScribeMultiClient client)
|
void |
unsubscribe(Topic topic,
ScribeClient client)
Deprecated. use unsubscribe(Topic, ScribeMultiClient) |
void |
unsubscribe(Topic topic,
ScribeMultiClient client)
|
Methods inherited from interface rice.Destructable |
---|
destroy |
Method Detail |
---|
void subscribe(Topic topic, ScribeClient client)
topic
- The topic to subscribe toclient
- The client to give messages tovoid unsubscribe(Topic topic, ScribeClient client)
topic
- The topic to unsubscribe fromclient
- The client to unsubscribevoid unsubscribe(Topic topic, ScribeMultiClient client)
void unsubscribe(java.util.Collection<Topic> topicsToUnsubscribe, ScribeMultiClient client)
void addChild(Topic topic, NodeHandle child)
topic
- The topic to add the child tochild
- The child to addvoid removeChild(Topic topic, NodeHandle child)
topic
- The topic to remove the child fromchild
- The child to removeboolean isRoot(Topic topic)
topic
- The topic in question
NodeHandle getRoot(Topic topic)
topic
-
NodeHandle[] getChildren(Topic topic)
topic
- The topic to return the children of
java.util.Collection<NodeHandle> getChildrenOfTopic(Topic topic)
NodeHandle getParent(Topic topic)
myTopic
- The topic to return the parent of
Topic[] getTopics(ScribeClient client)
client
- The client in question
java.util.Collection<Topic> getTopicsByClient(ScribeClient client)
java.util.Collection<Topic> getTopicsByClient(ScribeMultiClient client)
int numChildren(Topic topic)
java.util.Collection<ScribeClient> getClients(Topic topic)
java.util.Collection<ScribeMultiClient> getClientsByTopic(Topic topic)
boolean containsTopic(Topic topic)
boolean containsChild(Topic topic, NodeHandle child)
ScribePolicy getPolicy()
void setPolicy(ScribePolicy policy)
policy
- The current policy for this scribeEnvironment getEnvironment()
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |