org.lsst.ccs.bus
Class DataValueNotification

java.lang.Object
  extended by org.lsst.ccs.bus.ValueNotification
      extended by org.lsst.ccs.bus.DataValueNotification
All Implemented Interfaces:
Serializable

public class DataValueNotification
extends ValueNotification

this class is to replace ValueNotification which is temporarily kept for compatibility.

Object that are not of a "well known type" (as of ObjectNType definition) are "crystallized" for explicit deserialization by the receiving code. They are also analyzed and if they are annotated with the Trending annotation their content is split in as many key/primitiveValue as needed (this is a recursive process).

Author:
bamade
See Also:
Serialized Form

Constructor Summary
DataValueNotification(String name, char val)
           
DataValueNotification(String name, Class classOfData, Serializable object)
           
DataValueNotification(String name, double val)
           
DataValueNotification(String name, float val)
           
DataValueNotification(String name, int val)
           
DataValueNotification(String name, Serializable object)
           
DataValueNotification(String name, Serializable object, long tStamp)
           
DataValueNotification(ValueNotification notification)
           
 
Method Summary
 Object getData()
          Deprecated. 
 ObjectNType getObjectNType()
           
 Object getRealData()
          to be used to retrieve the contained data.
 Map<String,ObjectNType> getTrendingMap()
          Map of Trending key/values: the values are itself of type ObjectNType so you can get the real type to be used.
 boolean isOfPrimitiveType()
           
 boolean isOfWellKnownType()
           
 String toString()
           
 
Methods inherited from class org.lsst.ccs.bus.ValueNotification
getName, gettStamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataValueNotification

public DataValueNotification(String name,
                             Serializable object,
                             long tStamp)

DataValueNotification

public DataValueNotification(String name,
                             Serializable object)

DataValueNotification

public DataValueNotification(String name,
                             Class classOfData,
                             Serializable object)

DataValueNotification

public DataValueNotification(String name,
                             int val)

DataValueNotification

public DataValueNotification(String name,
                             double val)

DataValueNotification

public DataValueNotification(String name,
                             float val)

DataValueNotification

public DataValueNotification(String name,
                             char val)

DataValueNotification

public DataValueNotification(ValueNotification notification)
Method Detail

isOfWellKnownType

public boolean isOfWellKnownType()

isOfPrimitiveType

public boolean isOfPrimitiveType()

getTrendingMap

public Map<String,ObjectNType> getTrendingMap()
Map of Trending key/values: the values are itself of type ObjectNType so you can get the real type to be used.

Returns:

getRealData

public Object getRealData()
                   throws ClassNotFoundException
to be used to retrieve the contained data. An Exception is thrown if the contained Object cannot be deserialized

Returns:
Throws:
ClassNotFoundException

getData

@Deprecated
public Object getData()
Deprecated. 

kept for compatibility reasons (use getRealData instead).

Overrides:
getData in class ValueNotification
Returns:

getObjectNType

public ObjectNType getObjectNType()

toString

public String toString()
Overrides:
toString in class ValueNotification


Copyright © 2013 LSST. All Rights Reserved.