org.isam.exehda.services
Class Collector.ConsumerId

java.lang.Object
  |
  +--org.isam.exehda.services.Collector.ConsumerId
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Collector

public static class Collector.ConsumerId
extends java.lang.Object
implements java.io.Serializable

Monitoring consumer identifier.

See Also:
Serialized Form

Constructor Summary
Collector.ConsumerId(java.lang.Object k, CellInformationBase.ResourceName c, java.lang.String ch)
          Creates a new ConsumerId instance.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 CellInformationBase.ResourceName getCollector()
          Returns the name of the Collector instance which have generated this consumer id.
 java.lang.Object getKey()
          Returns the unique key associated with this consumer id.
 java.lang.String getMulticastChannel()
          Returns the name of the multicast channel where the monitoring data for this consumer will be made available.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Collector.ConsumerId

public Collector.ConsumerId(java.lang.Object k,
                            CellInformationBase.ResourceName c,
                            java.lang.String ch)
Creates a new ConsumerId instance.

Parameters:
k - an Object value
c - a ResourceName value
ch - a String value
Method Detail

getKey

public java.lang.Object getKey()
Returns the unique key associated with this consumer id. This key is typically used to link the consumerid object to a peer internal representation used by the collector. Note: the key must be serializable in order to allow the ConsumerId to be transmitted between hosts.

Returns:
an Object value

getCollector

public CellInformationBase.ResourceName getCollector()
Returns the name of the Collector instance which have generated this consumer id.

Returns:
the resource name of the collector instance

getMulticastChannel

public java.lang.String getMulticastChannel()
Returns the name of the multicast channel where the monitoring data for this consumer will be made available. Typically , this value will be null the consumer provided a non-null call back by the time it requested the id.

Returns:
a String value

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object