|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RawScribe
Scribe that uses RawSerialization for the Clients
Method Summary | |
---|---|
void |
anycast(Topic topic,
RawScribeContent content)
Anycasts the given content to a member of the given topic |
void |
anycast(Topic topic,
RawScribeContent 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. |
ScribeContentDeserializer |
getContentDeserializer()
|
void |
publish(Topic topic,
RawScribeContent content)
Publishes the given message to the topic. |
void |
setContentDeserializer(ScribeContentDeserializer deserializer)
|
void |
subscribe(java.util.Collection<Topic> topics,
ScribeClient client,
RawScribeContent content,
NodeHandle hint)
Deprecated. use the version with the MultiClient |
void |
subscribe(java.util.Collection<Topic> topics,
ScribeMultiClient client,
RawScribeContent content,
NodeHandle hint)
|
void |
subscribe(Topic topic,
ScribeClient client,
RawScribeContent content)
Deprecated. use subscribe(Topic, ScribeMultiClient, RawScribeContent, NodeHandle) |
void |
subscribe(Topic topic,
ScribeClient client,
RawScribeContent content,
NodeHandle hint)
Deprecated. use the version with the MultiClient |
void |
subscribe(Topic topic,
ScribeMultiClient client,
RawScribeContent 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, RawScribeContent 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, RawScribeContent 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, RawScribeContent content, NodeHandle hint)
void subscribe(java.util.Collection<Topic> topics, ScribeClient client, RawScribeContent content, NodeHandle hint)
topics
- client
- content
- hint
- the first hopvoid subscribe(java.util.Collection<Topic> topics, ScribeMultiClient client, RawScribeContent content, NodeHandle hint)
void publish(Topic topic, RawScribeContent content)
topic
- The topic to publish tocontent
- The content to publishvoid anycast(Topic topic, RawScribeContent content)
topic
- The topic to anycast tocontent
- The content to anycastvoid anycast(Topic topic, RawScribeContent content, NodeHandle hint)
topic
- The topic to anycast tocontent
- The content to anycasthint
- the first hop of the Anycastvoid setContentDeserializer(ScribeContentDeserializer deserializer)
ScribeContentDeserializer getContentDeserializer()
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |