cgl.narada.matching
Interface MatchingTree

All Known Implementing Classes:
ClientHierarchicalMatching, ClientIntegerMatching, ClientRegExMatching, ClientStringMatching, ClientXPathMatching, HierarchicalMatching, IntegerMatching, RegExMatching, StringMatching, TagValueClientMatching, TagValueMatching, XPathMatching

public interface MatchingTree

This interface specifies the operations that need to be supported by client matching trees and cluster/unit-contoller trees.


Method Summary
 void addSubscriptionProfile(Profile profile)
          This method adds a subscription profile to the matching tree
 int getManagedProfileType()
          Returns the type of profiles managed by this matching engine
 int getMatchingLevel()
          This method returns the level assocaited with this matching tree.
 Object matchEvent(NBEvent nbEvent)
           
 void propagateChangesToHigherLevels(Profile profile, boolean addProfile)
          Propagates profile changes to higher levels
 void removeSubscriptionProfile(Profile profile)
          This method adds a subscription profile to the matching tree
 void setNodeDestination(Destinations destination)
          This method sets the destination address for this node
 

Method Detail

getMatchingLevel

int getMatchingLevel()
This method returns the level assocaited with this matching tree. A node could be a gateway at multiple levels. How it handles destinations at different levels, and propagates destinations at different levels is dicatated by the level of the matching tree which computes the destinations and initiates profile propagation changes.

Returns:
The level of the matching tree.

setNodeDestination

void setNodeDestination(Destinations destination)
This method sets the destination address for this node


addSubscriptionProfile

void addSubscriptionProfile(Profile profile)
This method adds a subscription profile to the matching tree

Parameters:
profile - The profile comprising the subscription and the destination assocaited with the subscription.

removeSubscriptionProfile

void removeSubscriptionProfile(Profile profile)
This method adds a subscription profile to the matching tree


propagateChangesToHigherLevels

void propagateChangesToHigherLevels(Profile profile,
                                    boolean addProfile)
Propagates profile changes to higher levels


matchEvent

Object matchEvent(NBEvent nbEvent)

getManagedProfileType

int getManagedProfileType()
Returns the type of profiles managed by this matching engine



For comments and suggestions please send e-mail to The NaradaBrokering Project