org.rhq.core.domain.measurement.ui
Class MetricDisplaySummary

java.lang.Object
  extended by org.rhq.core.domain.measurement.ui.MeasurementSummary
      extended by org.rhq.core.domain.measurement.ui.BaseMetricDisplay
          extended by org.rhq.core.domain.measurement.ui.MetricDisplaySummary
All Implemented Interfaces:
Serializable, Comparable

public class MetricDisplaySummary
extends BaseMetricDisplay
implements Serializable

See Also:
Serialized Form

Field Summary
protected  int resourceId
           
 
Fields inherited from class org.rhq.core.domain.measurement.ui.BaseMetricDisplay
attrKeyList
 
Constructor Summary
MetricDisplaySummary()
           
 
Method Summary
 int getAlertCount()
           
 Date getChangedDate()
          Return the last changed timestamp as Date
 int getChildTypeId()
           
 EntityContext getContext()
           
 int getGroupId()
           
 boolean getIsTrait()
           
 String getMetricToken()
           
 Resource getParent()
           
 int getParentId()
           
 Resource getResource()
           
 int getResourceId()
           
 long getTimestamp()
          Return the last changed timestamp as long
 String getValue()
           
 boolean getValuesPresent()
           
 void init(EntityContext context)
           
 void setAlertCount(int alertCount)
           
 void setChildTypeId(int childTypeId)
           
 void setGroupId(int groupId)
           
 void setIsTrait(boolean isThisATrait)
           
 void setMetricToken(String metricToken)
           
 void setParent(Resource parent)
           
 void setParentId(int parentId)
           
 void setResource(Resource resource)
           
 void setResourceId(int resourceId)
           
 void setTimestamp(long timestamp)
           
 void setValue(String val)
           
 void setValuesPresent(boolean noValuesPreent)
           
 String toString()
           
 
Methods inherited from class org.rhq.core.domain.measurement.ui.BaseMetricDisplay
compareTo, getAvgMetric, getBeginTimeFrame, getCollectionType, getDefinitionId, getDescription, getEndTimeFrame, getLabel, getLastMetric, getMaxMetric, getMetric, getMetricKeys, getMetricName, getMetrics, getMetricSource, getMetricSourceId, getMetricValueDoubles, getMinMetric, getNumberCollecting, getScheduleId, getShowNumberCollecting, getSummaryMetric, getUnits, setBeginTimeFrame, setCollectionType, setDefinitionId, setDescription, setEndTimeFrame, setLabel, setMetric, setMetricName, setMetrics, setMetricSource, setMetricSourceId, setNumberCollecting, setScheduleId, setShowNumberCollecting, setUnits
 
Methods inherited from class org.rhq.core.domain.measurement.ui.MeasurementSummary
asList, getAvailDown, getAvailUnknown, getAvailUp, setAvailDown, setAvailUnknown, setAvailUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resourceId

protected int resourceId
Constructor Detail

MetricDisplaySummary

public MetricDisplaySummary()
Method Detail

toString

public String toString()
Overrides:
toString in class BaseMetricDisplay

getAlertCount

public int getAlertCount()

setAlertCount

public void setAlertCount(int alertCount)

getValue

public String getValue()

setValue

public void setValue(String val)

getIsTrait

public boolean getIsTrait()

setIsTrait

public void setIsTrait(boolean isThisATrait)

getGroupId

public int getGroupId()
Returns:
the groupId

setGroupId

public void setGroupId(int groupId)
Parameters:
groupId - the groupId to set

getChangedDate

public Date getChangedDate()
Return the last changed timestamp as Date

Returns:
Date gets the date changed

getTimestamp

public long getTimestamp()
Return the last changed timestamp as long

Returns:
long the Timestamp

setTimestamp

public void setTimestamp(long timestamp)

getValuesPresent

public boolean getValuesPresent()
Returns:
the valuesPreent

setValuesPresent

public void setValuesPresent(boolean noValuesPreent)
Parameters:
noValuesPreent - the valuesPreent to set

getResource

public Resource getResource()

setResource

public void setResource(Resource resource)

getParent

public Resource getParent()

setParent

public void setParent(Resource parent)

getParentId

public int getParentId()
Returns:
the parentId

setParentId

public void setParentId(int parentId)
Parameters:
parentId - the parentId to set

getChildTypeId

public int getChildTypeId()
Returns:
the childTypeId

setChildTypeId

public void setChildTypeId(int childTypeId)
Parameters:
childTypeId - the childTypeId to set

getResourceId

public int getResourceId()

setResourceId

public void setResourceId(int resourceId)

getMetricToken

public String getMetricToken()

setMetricToken

public void setMetricToken(String metricToken)

getContext

public EntityContext getContext()

init

public void init(EntityContext context)


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.