cgl.narada.matching.rtp
Class RtpProfile

java.lang.Object
  extended by cgl.narada.matching.rtp.RtpProfile
All Implemented Interfaces:
RtpMatchingDebugFlags

public class RtpProfile
extends Object
implements RtpMatchingDebugFlags

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


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

Constructor Detail

RtpProfile

public RtpProfile(long subscription,
                  int destinations)
A RtpProfile 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 rtp subscription
destinations - The hierarchial destinations associated with this rtpProfile

RtpProfile

public RtpProfile(long subscription,
                  String brokerDestination,
                  int destinations)

RtpProfile

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

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

getSubscription

public long getSubscription()
This method returns the subscription associated with the rtpProfile.

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(RtpProfile _rtpProfile)
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:
obj - the Object to compare with
Returns:
true if these Objects are equal; false otherwise.
See Also:
Hashtable

getBytes

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

Returns:
The byte stream representation of the rtpProfile

toString

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

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

main

public static void main(String[] args)


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