cgl.narada.matching.jms
Class JmsProfile

java.lang.Object
  extended by cgl.narada.matching.jms.JmsProfile
All Implemented Interfaces:
JmsMatchingDebugFlags

public class JmsProfile
extends Object
implements JmsMatchingDebugFlags

An JMS profile is stored in this class. The profile includes information regarding the jms meeting the client is interested in, and the destination associated with this.


Field Summary
 
Fields inherited from interface cgl.narada.matching.jms.JmsMatchingDebugFlags
ClientJmsMatching_Debug, JmsMatching_Debug, JmsProfile_Debug
 
Constructor Summary
JmsProfile(byte[] jmsProfileBytes)
          This method serves to unmarshall a jmsProfile stream received over the link.
JmsProfile(String subscription, int destinations)
          A JmsProfile is comprised of both the subscription as well as the destination of the unit/super-unit that has expressed an interest in it.
JmsProfile(String subscription, String brokerDestination, int destinations)
           
 
Method Summary
 boolean equals(JmsProfile _jmsProfile)
          Compares two objects for equality.
 String getBrokerDestination()
           
 byte[] getBytes()
          This method returns the jmsProfile as a stream of bytes, the unmarshalling counterpart to this marshalling scheme is contained within one of the JmsProfile constructors
 int getDestination()
          This method returns the destinations assocaited with the subscription.
 String getProfileId()
           
 String getSubscription()
          This method returns the subscription associated with the jmsProfile.
 int hashCode()
          Generates a hash code for the receiver.
static void main(String[] args)
           
 String toString()
          Provides a string representation of the jmsProfile instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JmsProfile

public JmsProfile(String subscription,
                  int destinations)
A JmsProfile is comprised of both the subscription as well as the destination of the unit/super-unit that has expressed an interest in it.

Parameters:
subscription - The jms subscription
destinations - The hierarchial destinations associated with this jmsProfile

JmsProfile

public JmsProfile(String subscription,
                  String brokerDestination,
                  int destinations)

JmsProfile

public JmsProfile(byte[] jmsProfileBytes)
This method serves to unmarshall a jmsProfile stream received over the link. The corresponding marshalling method for the jmsProfile is contained within the getBytes() method.

Parameters:
jmsProfileBytes - The marshalled stream of jmsProfile bytes that are received over a link.
Method Detail

getSubscription

public String getSubscription()
This method returns the subscription associated with the jmsProfile.

Returns:
The subscription.

getDestination

public int getDestination()
This method returns the destinations assocaited with the subscription.

Returns:
The destinations.

getBrokerDestination

public String getBrokerDestination()

getProfileId

public String getProfileId()

equals

public boolean equals(JmsProfile _jmsProfile)
Compares two objects for equality. Returns a boolean that indicates whether this object is equivalent to the specified object. This method is used when an object is stored in a hashtable.

Parameters:
_jmsProfile - the Object to compare with
Returns:
true if these Objects are equal; false otherwise.
See Also:
Hashtable

hashCode

public int hashCode()
Generates a hash code for the receiver. This method is supported primarily for hash tables, such as those provided in java.util. If two objects are equal (equals(Object) returns true) they must have the same hash code

Overrides:
hashCode in class Object
Returns:
an integer hash code for the receiver

getBytes

public byte[] getBytes()
This method returns the jmsProfile as a stream of bytes, the unmarshalling counterpart to this marshalling scheme is contained within one of the JmsProfile constructors

Returns:
The byte stream representation of the jmsProfile

toString

public String toString()
Provides a string representation of the jmsProfile instance.

Overrides:
toString in class Object
Returns:
JmsProfile as a String object.

main

public static void main(String[] args)


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