rice.p2p.scribe.testing
Class RawScribeRegrTest.TestScribePolicy
java.lang.Object
rice.p2p.scribe.ScribePolicy.DefaultScribePolicy
rice.p2p.scribe.testing.RawScribeRegrTest.TestScribePolicy
- All Implemented Interfaces:
- ScribePolicy
- Enclosing class:
- RawScribeRegrTest
public class RawScribeRegrTest.TestScribePolicy
- extends ScribePolicy.DefaultScribePolicy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
scribe
protected Scribe scribe
allowSubscribe
protected boolean allowSubscribe
neverAllowSubscribe
protected boolean neverAllowSubscribe
RawScribeRegrTest.TestScribePolicy
public RawScribeRegrTest.TestScribePolicy(Scribe scribe)
allowSubscribe
public void allowSubscribe(boolean allowSubscribe)
neverAllowSubscribe
public void neverAllowSubscribe(boolean neverAllowSubscribe)
allowSubscribe
public boolean allowSubscribe(SubscribeMessage message,
ScribeClient[] clients,
NodeHandle[] children)
- Description copied from class:
ScribePolicy.DefaultScribePolicy
- This method always return true;
- Specified by:
allowSubscribe
in interface ScribePolicy
- Overrides:
allowSubscribe
in class ScribePolicy.DefaultScribePolicy
- Parameters:
message
- The subscribe message in questionclients
- The list of clients are are currently subscribedchildren
- The list of children who are currently subscribed
- Returns:
- True.
Copyright © 2001-2005 - Rice Pastry.