Rice Pastry API

rice.p2p.scribe.testing
Class ScribeRegrTest.TestScribePolicy

java.lang.Object
  |
  +--rice.p2p.scribe.ScribePolicy.DefaultScribePolicy
        |
        +--rice.p2p.scribe.testing.ScribeRegrTest.TestScribePolicy
All Implemented Interfaces:
ScribePolicy
Enclosing class:
ScribeRegrTest

public class ScribeRegrTest.TestScribePolicy
extends ScribePolicy.DefaultScribePolicy


Nested Class Summary
 
Nested classes inherited from class rice.p2p.scribe.ScribePolicy
ScribePolicy.DefaultScribePolicy, ScribePolicy.LimitedScribePolicy
 
Field Summary
protected  boolean allowSubscribe
           
protected  boolean neverAllowSubscribe
           
protected  rice.p2p.scribe.Scribe scribe
           
 
Constructor Summary
ScribeRegrTest.TestScribePolicy(rice.p2p.scribe.Scribe scribe)
           
 
Method Summary
 void allowSubscribe(boolean allowSubscribe)
           
 boolean allowSubscribe(rice.p2p.scribe.messaging.SubscribeMessage message, rice.p2p.scribe.ScribeClient[] clients, rice.p2p.commonapi.NodeHandle[] children)
          This method always return true;
 void neverAllowSubscribe(boolean neverAllowSubscribe)
           
 
Methods inherited from class rice.p2p.scribe.ScribePolicy.DefaultScribePolicy
directAnycast
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scribe

protected rice.p2p.scribe.Scribe scribe

allowSubscribe

protected boolean allowSubscribe

neverAllowSubscribe

protected boolean neverAllowSubscribe
Constructor Detail

ScribeRegrTest.TestScribePolicy

public ScribeRegrTest.TestScribePolicy(rice.p2p.scribe.Scribe scribe)
Method Detail

allowSubscribe

public void allowSubscribe(boolean allowSubscribe)

neverAllowSubscribe

public void neverAllowSubscribe(boolean neverAllowSubscribe)

allowSubscribe

public boolean allowSubscribe(rice.p2p.scribe.messaging.SubscribeMessage message,
                              rice.p2p.scribe.ScribeClient[] clients,
                              rice.p2p.commonapi.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 question
children - The list of children who are currently subscribed
clients - The list of clients are are currently subscribed
Returns:
True.

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection