|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JavaScribe
Scribe that uses JavaSerialization for the ScribeContent
Method Summary | |
---|---|
void |
anycast(Topic topic,
ScribeContent content)
Anycasts the given content to a member of the given topic |
void |
anycast(Topic topic,
ScribeContent content,
NodeHandle hint)
Anycasts the given content to a member of the given topic The hint helps us to implement centralized algorithms where the hint is the cachedRoot for the topic. |
void |
publish(Topic topic,
ScribeContent content)
Publishes the given message to the topic. |
void |
subscribe(java.util.Collection<Topic> topics,
ScribeClient client,
ScribeContent content,
NodeHandle hint)
Deprecated. use the version with the MultiClient |
void |
subscribe(java.util.Collection<Topic> topics,
ScribeMultiClient client,
ScribeContent content,
NodeHandle hint)
|
void |
subscribe(Topic topic,
ScribeClient client,
ScribeContent content)
Deprecated. use subscribe(Topic, ScribeMultiClient, ScribeContent, NodeHandle) |
void |
subscribe(Topic topic,
ScribeClient client,
ScribeContent content,
NodeHandle hint)
Deprecated. use the version with the MultiClient |
void |
subscribe(Topic topic,
ScribeMultiClient client,
ScribeContent content,
NodeHandle hint)
|
Methods inherited from interface rice.p2p.scribe.BaseScribe |
---|
addChild, containsChild, containsTopic, getChildren, getChildrenOfTopic, getClients, getClientsByTopic, getEnvironment, getParent, getPolicy, getRoot, getTopics, getTopicsByClient, getTopicsByClient, isRoot, numChildren, removeChild, setPolicy, subscribe, unsubscribe, unsubscribe, unsubscribe |
Methods inherited from interface rice.Destructable |
---|
destroy |
Method Detail |
---|
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 subscribevoid subscribe(Topic topic, ScribeClient client, ScribeContent content, NodeHandle hint)
topic
- The topic to subscribe toclient
- The client to give messages tocontent
- The content to include in the subscribehint
- The first hop of the message ( Helpful to implement a centralized solution)void subscribe(Topic topic, ScribeMultiClient client, ScribeContent content, NodeHandle hint)
void subscribe(java.util.Collection<Topic> topics, ScribeClient client, ScribeContent content, NodeHandle hint)
topics
- client
- content
- hint
- void subscribe(java.util.Collection<Topic> topics, ScribeMultiClient client, ScribeContent content, NodeHandle hint)
void publish(Topic topic, ScribeContent content)
topic
- The topic to publish tocontent
- The content to publishvoid anycast(Topic topic, ScribeContent content)
topic
- The topic to anycast tocontent
- The content to anycastvoid anycast(Topic topic, ScribeContent content, NodeHandle hint)
topic
- The topic to anycast tocontent
- The content to anycasthint
- the first hop of the Anycast
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |