|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.protocol.XPathProfilePropagation
public class XPathProfilePropagation
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 | |
|---|---|
XPathProfilePropagation(GatewayInfo gatewayInfo,
ProtocolHandler protocolHandler)
|
|
| Method Summary | |
|---|---|
Hashtable |
computeClientDestinations(XmlEvent xmlEvent)
|
int |
computeDestinationsAtLevel(XmlEvent xmlEvent,
int level)
This method is called only if the isGatewayAtLevel returns true. |
EventDestinations |
computeStorageDestinationsAtLevel(XmlEvent xmlEvent,
int level)
This method is called only if the isGatewayAtLevel returns true. |
void |
connectionToClientLost(Object clientIdentifier)
|
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(XPathProfile xPathProfile,
int level,
boolean addProfile)
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 XPathProfilePropagation(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(XmlEvent xmlEvent,
int level)
xmlEvent - The event that needs to be matched.level - The destinations at level (level-1) that we are
interested in.
public Hashtable computeClientDestinations(XmlEvent xmlEvent)
public EventDestinations computeStorageDestinationsAtLevel(XmlEvent xmlEvent,
int level)
xmlEvent - The event that needs to be matched.level - The destinations at level (level-1) that we are
interested in.
public void propagateProfileChange(XPathProfile xPathProfile,
int level,
boolean addProfile)
xPathProfile - This is the subscription profile that needs to be
propagated.level - The level for which this change is being propagatedaddProfile - A boolean variable indicating wether this profile
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 static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||