org.isam.exehda.services
Class Collector.Sensor

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

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

Represents an elementary source of monitoring data.

See Also:
Serialized Form

Constructor Summary
Collector.Sensor(CellInformationBase.ResourceName n, java.lang.Class t, java.lang.Object k)
          Creates a new Sensor instance.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object getKey()
          Returns the unique key associated with this sensor.
 CellInformationBase.ResourceName getName()
          Returns the name of this sensor in the forma of a Resource Name.
 java.lang.Class getType()
          Returns the type of the data produced by this sensor.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Collector.Sensor

public Collector.Sensor(CellInformationBase.ResourceName n,
                        java.lang.Class t,
                        java.lang.Object k)
Creates a new Sensor instance. Note: the key must be serializable in order to allow the sensor object to be transmited between hosts.

Parameters:
n - the sensor name
t - the sensor type
k - key
Method Detail

getName

public CellInformationBase.ResourceName getName()
Returns the name of this sensor in the forma of a Resource Name.

Returns:
this sensor name

getType

public java.lang.Class getType()
Returns the type of the data produced by this sensor.

Returns:
a Class representing the type of the sensor.

getKey

public java.lang.Object getKey()
Returns the unique key associated with this sensor. This key is typically used to link the sensor object to a peer raw representation used internally by the sensor provider. Note: the key must be serializable in order to allow the sensor object to be transmited between hosts.

Returns:
the key assigned to this sensor by the sensor provider.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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