|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.protocol.TagValueProfilePropagation
public class TagValueProfilePropagation
This determines if a profile change needs to be propagated to a higher level node, and is responsible for doing so. In addition, a node could be gateway at multiple levels. Depending on the level for which profile changes have taken place, the propagation needs to be done accordingly.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
TagValueProfilePropagation(GatewayInfo gatewayInfo,
ProtocolHandler protocolHandler)
|
|
| Method Summary | |
|---|---|
Hashtable |
computeClientDestinations(MEvent mEvent)
|
int |
computeDestinationsAtLevel(MEvent mEvent,
int level)
This method is called only if the isGatewayAtLevel returns true. |
EventDestinations |
computeStorageDestinationsAtLevel(MEvent mEvent,
int level)
This method is called only if the isGatewayAtLevel returns true. |
void |
connectionToClientLost(Object clientIdentifier)
|
void |
forwardProfilePropagationRequest(Predicate predicate,
int level)
This method is responsble for forwarding a profile propagation request |
void |
handleProfilePropagationRequest(byte[] propagationRequest)
This method handles the profile propagation requests received over the protocol Handler. |
boolean |
isGatewayAtLevel(int level)
This method indicates if the node in question is a gateway at the level in the argument |
static void |
main(String[] args)
|
void |
processPropagationRequestFromClient(byte[] propagationRequest)
|
void |
propagateProfileChange(Predicate predicate,
int level,
boolean addPredicate)
This method is responsible for propagating profile changes to trees at the next highest level. |
void |
setAsGatewayAtLevel(int level)
This designates this node as a gateway at level level. |
void |
setDestination(Destinations destination)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TagValueProfilePropagation(GatewayInfo gatewayInfo,
ProtocolHandler protocolHandler)
| Method Detail |
|---|
public void setDestination(Destinations destination)
public void setAsGatewayAtLevel(int level)
public void processPropagationRequestFromClient(byte[] propagationRequest)
public boolean isGatewayAtLevel(int level)
level - The level for which we are testing if the node is a
gateway.
public int computeDestinationsAtLevel(MEvent mEvent,
int level)
mEvent - The event that needs to be matched.level - The destinations at level (level-1) that we are
interested in.
public Hashtable computeClientDestinations(MEvent mEvent)
public EventDestinations computeStorageDestinationsAtLevel(MEvent mEvent,
int level)
mEvent - The event that needs to be matched.level - The destinations at level (level-1) that we are
interested in.
public void propagateProfileChange(Predicate predicate,
int level,
boolean addPredicate)
predicate - This is the subscription predicate that needs to be
propagated.level - The level for which this change is being propagatedaddPredicate - A boolean variable indicating wether this predicate
is being added to the system or is being removed.public void handleProfilePropagationRequest(byte[] propagationRequest)
propagationRequest - The byte stream containing the profile
propagation request.public void connectionToClientLost(Object clientIdentifier)
public void forwardProfilePropagationRequest(Predicate predicate,
int level)
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||