org.rhq.enterprise.gui.rt
Class SegmentInfo

java.lang.Object
  extended by org.rhq.enterprise.gui.rt.SegmentInfo
All Implemented Interfaces:
Serializable, IDataPoint, IDisplayDataPoint, IStackedDataPoint

public class SegmentInfo
extends Object
implements Serializable, IStackedDataPoint

Provides segmented and total response time measurement for an individual request (or average for a group of requests).

See Also:
Serialized Form

Constructor Summary
SegmentInfo(String label)
           
 
Method Summary
 void addSegment(int index, Segment s)
           
 String getLabel()
          Retrieves the label of a chart data point.
 Segment getSegment(int index)
           
 List getSegments()
           
 long getTimestamp()
           
 double getTotal()
           
 double getValue()
          Retrieves the value of a chart data point.
 double[] getValues()
          Retrieves the value of a chart data point.
 boolean removeSegment(Segment s)
           
 void setLabel(String label)
           
 void setTimestamp(long time)
           
 void setTotal(double d)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SegmentInfo

public SegmentInfo(String label)
Method Detail

addSegment

public void addSegment(int index,
                       Segment s)

getSegment

public Segment getSegment(int index)

getSegments

public List getSegments()

removeSegment

public boolean removeSegment(Segment s)

getTotal

public double getTotal()

setTotal

public void setTotal(double d)

getValue

public double getValue()
Description copied from interface: IDataPoint
Retrieves the value of a chart data point. The label is displayed on the Y axis for line and column charts.

Specified by:
getValue in interface IDataPoint
Returns:
A floating point value for a chart data point.

getValues

public double[] getValues()
Description copied from interface: IStackedDataPoint
Retrieves the value of a chart data point. The label is displayed on the X axis for stacked performance charts.

Specified by:
getValues in interface IStackedDataPoint
Returns:
A floating point value for a chart data point.

setLabel

public void setLabel(String label)

getLabel

public String getLabel()
Description copied from interface: IDisplayDataPoint
Retrieves the label of a chart data point. The data point is charted on the X axis for line and column charts.

Specified by:
getLabel in interface IDisplayDataPoint
Returns:
A String label for a chart data point.

setTimestamp

public void setTimestamp(long time)

getTimestamp

public long getTimestamp()
Specified by:
getTimestamp in interface IDisplayDataPoint
Returns:
The absolute time of the datum, in milliseconds.

toString

public String toString()
Overrides:
toString in class Object


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