|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.matching.tagvalue.Predicate
public class Predicate
Predicate.java
| Field Summary |
|---|
| Fields inherited from interface cgl.narada.matching.tagvalue.MatchingDebugFlags |
|---|
EdgeAttributes_Debug, EventID_Debug, Matching_Debug, MatchingTreeEdge_Debug, MatchingTreeNode_Debug, MEvent_Debug, Predicate_Debug |
| Constructor Summary | |
|---|---|
Predicate(byte[] predicateBytes)
This method serves to unmarshall a predicate stream received over the link. |
|
Predicate(String subscription,
int destinations)
A Predicate is comprised of both the subscription as well as the destination of the unit/super-unit that has expressed an interest in it. |
|
Predicate(String subscription,
String brokerDestination,
int destinations)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Predicate _predicate)
Compares two objects for equality. |
String |
getBrokerDestination()
|
byte[] |
getBytes()
This method returns the predicate as a stream of bytes, the unmarshalling counterpart to this marshalling scheme is contained within one of the Predicate constructors |
int |
getDestination()
This method returns the destinations assocaited with the subscription. |
String |
getPredicateId()
|
String |
getSubscription()
This method returns the subscription associated with the predicate. |
int |
hashCode()
Generates a hash code for the receiver. |
static void |
main(String[] args)
|
String |
toString()
Provides a string representation of the predicate instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Predicate(String subscription,
int destinations)
subscription - The subscription is tag=value, tag=value pairsdestinations - The hierarchial destinations associated with this
predicate
public Predicate(String subscription,
String brokerDestination,
int destinations)
public Predicate(byte[] predicateBytes)
predicateBytes - The marshalled stream of predicate bytes that are
received over a link.| Method Detail |
|---|
public String getSubscription()
public int getDestination()
public String getBrokerDestination()
public String getPredicateId()
public boolean equals(Predicate _predicate)
_predicate - the Object to compare with
Hashtablepublic int hashCode()
hashCode in class Objectpublic byte[] getBytes()
public String toString()
toString in class Objectpublic static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||