org.apache.agila.services.rendezvous
Interface RendezvousPolicy


public interface RendezvousPolicy

Version:
$Id: $
Author:
Geir Magnusson Jr.

Method Summary
 RendezvousPolicy addSibling(RendezvousPolicy sibling)
          Adds a sibling to this RendezvousPolicy.
 java.util.List fire()
          Returns list of tokens to be fired back into engine to indicate continue.
 boolean nodeReached(TokenID tokenID)
          used when a node is reached
 

Method Detail

addSibling

RendezvousPolicy addSibling(RendezvousPolicy sibling)
Adds a sibling to this RendezvousPolicy. The model is that we want the policies to be pluggable - they manage themselves. So when an instance is started, given a set of policies that make up a rondezvous, one is chosen and fed the others, and that one is used to make decisions. What happens inside is up to the rondezvous implementations

Parameters:
sibling -
Returns:

nodeReached

boolean nodeReached(TokenID tokenID)
used when a node is reached

Parameters:
tokenID - token that reflects the rendezvous node. Note that this is the next token, and is used to fire back to the engine
Returns:
true if continue, false if wait

fire

java.util.List fire()
Returns list of tokens to be fired back into engine to indicate continue. Called immediately after nodeReached()

Returns:
list of tokens


Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.