org.cafesip.gwtcomp.server
Class LiveDataSessionInfo

java.lang.Object
  extended by org.cafesip.gwtcomp.server.LiveDataSessionInfo
All Implemented Interfaces:
Serializable

public class LiveDataSessionInfo
extends Object
implements Serializable

This class contains information about a live data session. The application can use this information to look for a deliver the data for rendering in charts. The userAttributes attribute allows the application to add its own attributes.

Author:
Amit Chatterjee
See Also:
Serialized Form

Constructor Summary
LiveDataSessionInfo()
          A constructor for this class.
LiveDataSessionInfo(String context, String instance, String param, ChartInfo chartInfo, Date lastCollection, int deliveryCount)
          A constructor for this class.
 
Method Summary
 Object getAttribute(String name)
          Returns an user attribute.
 ChartInfo getChartInfo()
           
 String getContext()
           
 int getDeliveryCount()
           
 String getInstance()
           
 Date getLastCollection()
           
 String getParam()
           
 HashMap<String,Object> getUserAttributes()
           
 void removeAttribute(String name)
          Removes an user attribute.
 void setAttribute(String name, Object value)
          Sets an user attribute.
 void setChartInfo(ChartInfo chartInfo)
           
 void setContext(String context)
           
 void setDeliveryCount(int deliveryCount)
           
 void setInstance(String instance)
           
 void setLastCollection(Date lastCollection)
           
 void setParam(String param)
           
 void setUserAttributes(HashMap<String,Object> userAttributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiveDataSessionInfo

public LiveDataSessionInfo(String context,
                           String instance,
                           String param,
                           ChartInfo chartInfo,
                           Date lastCollection,
                           int deliveryCount)
A constructor for this class.

Parameters:
context -
instance -
param -
chartInfo -
lastCollection -
deliveryCount -

LiveDataSessionInfo

public LiveDataSessionInfo()
A constructor for this class.

Method Detail

getContext

public String getContext()
Returns:
Returns the context.

setContext

public void setContext(String context)
Parameters:
context - The context to set.

getInstance

public String getInstance()
Returns:
Returns the instance.

setInstance

public void setInstance(String instance)
Parameters:
instance - The instance to set.

getParam

public String getParam()
Returns:
Returns the param.

setParam

public void setParam(String param)
Parameters:
param - The param to set.

getChartInfo

public ChartInfo getChartInfo()
Returns:
Returns the chartInfo.

setChartInfo

public void setChartInfo(ChartInfo chartInfo)
Parameters:
chartInfo - The chartInfo to set.

getLastCollection

public Date getLastCollection()
Returns:
Returns the lastCollection.

setLastCollection

public void setLastCollection(Date lastCollection)
Parameters:
lastCollection - The lastCollection to set.

getDeliveryCount

public int getDeliveryCount()
Returns:
Returns the deliveryCount.

setDeliveryCount

public void setDeliveryCount(int deliveryCount)
Parameters:
deliveryCount - The deliveryCount to set.

getUserAttributes

public HashMap<String,Object> getUserAttributes()
Returns:
Returns the userAttributes.

setUserAttributes

public void setUserAttributes(HashMap<String,Object> userAttributes)
Parameters:
userAttributes - The userAttributes to set.

getAttribute

public Object getAttribute(String name)
Returns an user attribute.

Parameters:
name -
Returns:

setAttribute

public void setAttribute(String name,
                         Object value)
Sets an user attribute.

Parameters:
name -
value -

removeAttribute

public void removeAttribute(String name)
Removes an user attribute.

Parameters:
name -


Copyright © 2010 Cafesip.org. All Rights Reserved.