planet.test.scribe
Class ScribeClientTest

java.lang.Object
  extended byplanet.test.scribe.ScribeClientTest
All Implemented Interfaces:
ScribeClient

public class ScribeClientTest
extends java.lang.Object
implements ScribeClient

Author:
Ruben Mondejar

Field Summary
protected  boolean acceptAnycast
          Whether or not this client should accept anycasts
protected  java.lang.String id
           
protected  boolean subscribeFailed
          Whether this client has had a subscribe fail
 
Constructor Summary
ScribeClientTest(java.lang.String id)
          Constructor.
 
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
 boolean getSubscribeFailed()
           
 boolean isActivated()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.String id

acceptAnycast

protected boolean acceptAnycast
Whether or not this client should accept anycasts


subscribeFailed

protected boolean subscribeFailed
Whether this client has had a subscribe fail

Constructor Detail

ScribeClientTest

public ScribeClientTest(java.lang.String id)
Constructor.

Method Detail

acceptAnycast

public void acceptAnycast(boolean value)

anycast

public boolean anycast(Topic topic,
                       ScribeContent content)
DESCRIBE THE METHOD

Specified by:
anycast in interface ScribeClient
Parameters:
topic - DESCRIBE THE PARAMETER
content - DESCRIBE THE PARAMETER
Returns:
DESCRIBE THE RETURN VALUE

deliver

public void deliver(Topic topic,
                    ScribeContent content)
DESCRIBE THE METHOD

Specified by:
deliver in interface ScribeClient
Parameters:
topic - DESCRIBE THE PARAMETER
content - DESCRIBE THE PARAMETER

childAdded

public void childAdded(Topic topic,
                       NodeHandle child)
DESCRIBE THE METHOD

Specified by:
childAdded in interface ScribeClient
Parameters:
topic - DESCRIBE THE PARAMETER
child - DESCRIBE THE PARAMETER

childRemoved

public void childRemoved(Topic topic,
                         NodeHandle child)
DESCRIBE THE METHOD

Specified by:
childRemoved in interface ScribeClient
Parameters:
topic - DESCRIBE THE PARAMETER
child - DESCRIBE THE PARAMETER

subscribeFailed

public void subscribeFailed(Topic topic)
Description copied from interface: ScribeClient
Informs the client that a subscribe on the given topic failed - the client should retry the subscribe or take appropriate action.

Specified by:
subscribeFailed in interface ScribeClient
Parameters:
topic - The topic which the subscribe failed on

getSubscribeFailed

public boolean getSubscribeFailed()

isActivated

public boolean isActivated()


nbsp;METHOD