|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.scribe.testing.ScribeRegrTest.TestScribeClient
protected class ScribeRegrTest.TestScribeClient
DESCRIBE THE CLASS
Field Summary | |
---|---|
protected boolean |
acceptAnycast
Whether or not this client should accept anycasts |
protected java.util.Vector |
anycastMessages
The publish messages received so far |
protected int |
i
DESCRIBE THE FIELD |
protected java.util.Vector |
publishMessages
The publish messages received so far |
protected Scribe |
scribe
DESCRIBE THE FIELD |
protected boolean |
subscribeFailed
Whether this client has had a subscribe fail |
protected java.util.List<Topic> |
topics
The topic this client is listening for |
Constructor Summary | |
---|---|
ScribeRegrTest.TestScribeClient(Scribe scribe,
java.util.List<Topic> topics,
int i)
|
|
ScribeRegrTest.TestScribeClient(Scribe scribe,
Topic topic,
int i)
Constructor for TestScribeClient. |
Method Summary | |
---|---|
void |
acceptAnycast(boolean value)
|
boolean |
anycast(Topic topic,
ScribeContent content)
DESCRIBE THE METHOD |
void |
childAdded(Topic topic,
NodeHandle child)
DESCRIBE THE METHOD |
void |
childRemoved(Topic topic,
NodeHandle child)
DESCRIBE THE METHOD |
void |
deliver(Topic topic,
ScribeContent content)
DESCRIBE THE METHOD |
java.util.List<ScribeContent> |
getAnycastMessages()
|
java.util.List<ScribeContent> |
getPublishMessages()
|
boolean |
getSubscribeFailed()
|
void |
subscribeFailed(Topic topic)
Informs the client that a subscribe on the given topic failed - the client should retry the subscribe or take appropriate action. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Scribe scribe
protected int i
protected java.util.Vector publishMessages
protected java.util.Vector anycastMessages
protected java.util.List<Topic> topics
protected boolean acceptAnycast
protected boolean subscribeFailed
Constructor Detail |
---|
public ScribeRegrTest.TestScribeClient(Scribe scribe, Topic topic, int i)
scribe
- DESCRIBE THE PARAMETERi
- DESCRIBE THE PARAMETERpublic ScribeRegrTest.TestScribeClient(Scribe scribe, java.util.List<Topic> topics, int i)
Method Detail |
---|
public java.util.List<ScribeContent> getPublishMessages()
public java.util.List<ScribeContent> getAnycastMessages()
public void acceptAnycast(boolean value)
public boolean anycast(Topic topic, ScribeContent content)
anycast
in interface ScribeClient
topic
- DESCRIBE THE PARAMETERcontent
- DESCRIBE THE PARAMETER
public void deliver(Topic topic, ScribeContent content)
deliver
in interface ScribeClient
topic
- DESCRIBE THE PARAMETERcontent
- DESCRIBE THE PARAMETERpublic void childAdded(Topic topic, NodeHandle child)
childAdded
in interface ScribeClient
topic
- DESCRIBE THE PARAMETERchild
- DESCRIBE THE PARAMETERpublic void childRemoved(Topic topic, NodeHandle child)
childRemoved
in interface ScribeClient
topic
- DESCRIBE THE PARAMETERchild
- DESCRIBE THE PARAMETERpublic void subscribeFailed(Topic topic)
ScribeClient
subscribeFailed
in interface ScribeClient
topic
- The topic which the subscribe failed onpublic boolean getSubscribeFailed()
public java.lang.String toString()
toString
in class java.lang.Object
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |