org.lsst.ccs.bus
Class TrendingStatus

java.lang.Object
  extended by org.lsst.ccs.bus.BusMessage
      extended by org.lsst.ccs.bus.Status
          extended by org.lsst.ccs.bus.DataStatus
              extended by org.lsst.ccs.bus.TrendingStatus
All Implemented Interfaces:
Serializable, BusPayload
Direct Known Subclasses:
PreparedTrendingStatus

public class TrendingStatus
extends DataStatus

A special status publishing a name/value pair on the status bus

Though it extends DataStatus the main purpose is slightly different.

Author:
aubourg
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.lsst.ccs.bus.DataStatus
value
 
Fields inherited from class org.lsst.ccs.bus.Status
state
 
Fields inherited from class org.lsst.ccs.bus.BusMessage
detailLevel, origin, priorityLevel, summary, timeStamp
 
Constructor Summary
TrendingStatus()
           
TrendingStatus(DataValueNotification value)
           
TrendingStatus(List<? extends ValueNotification> list)
           
TrendingStatus(Object value)
          Deprecated. 
 
Method Summary
 String dummy()
           
 Object getData()
          gets the data content but throws an Excepton if the object cannot be deserialized
 String getDataClassName()
          what is the class of the contained data? Developers of subclasses should override this method.
 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.
 Object getValue()
          Deprecated. 
 boolean isOfPrimitiveType()
          is the content to be considered of a primitive type? Developers of subclasses should override this method.
 boolean isOfWellKnownType()
          is the content of a "Well known type" as defined in ObjectNType.
 void setValue(Object value)
          Deprecated. 
 String toString()
           
 
Methods inherited from class org.lsst.ccs.bus.DataStatus
contentString
 
Methods inherited from class org.lsst.ccs.bus.Status
getMessageType, getState, setState
 
Methods inherited from class org.lsst.ccs.bus.BusMessage
getDetailLevel, getOrigin, getPriorityLevel, getSummary, getTimeStamp, setDetailLevel, setOrigin, setPriorityLevel, setSummary, setTimeStamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrendingStatus

public TrendingStatus()

TrendingStatus

@Deprecated
public TrendingStatus(Object value)
Deprecated. 


TrendingStatus

public TrendingStatus(DataValueNotification value)

TrendingStatus

public TrendingStatus(List<? extends ValueNotification> list)
Method Detail

dummy

public String dummy()

getValue

@Deprecated
public Object getValue()
Deprecated. 

gets the content

Returns:

getData

public Object getData()
               throws ClassNotFoundException
Description copied from class: DataStatus
gets the data content but throws an Excepton if the object cannot be deserialized

Overrides:
getData in class DataStatus
Returns:
Throws:
ClassNotFoundException

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. if the content is a list of DataValueNotification all trending info is added to the same Map.


setValue

@Deprecated
public void setValue(Object value)
Deprecated. 


isOfWellKnownType

public boolean isOfWellKnownType()
Description copied from class: DataStatus
is the content of a "Well known type" as defined in ObjectNType. Developers of subclasses should override this method.

Overrides:
isOfWellKnownType in class DataStatus
Returns:

isOfPrimitiveType

public boolean isOfPrimitiveType()
Description copied from class: DataStatus
is the content to be considered of a primitive type? Developers of subclasses should override this method.

Overrides:
isOfPrimitiveType in class DataStatus
Returns:

getDataClassName

public String getDataClassName()
Description copied from class: DataStatus
what is the class of the contained data? Developers of subclasses should override this method.

Beware: having the corresponding class in the ClassPath does not guarantee that the object will be deserialized properly (depends on class version)

Overrides:
getDataClassName in class DataStatus
Returns:

toString

public String toString()
Overrides:
toString in class DataStatus


Copyright © 2013 LSST. All Rights Reserved.