org.rhq.core.domain.measurement.calltime
Class CallTimeData

java.lang.Object
  extended by org.rhq.core.domain.measurement.calltime.CallTimeData
All Implemented Interfaces:
Serializable

public class CallTimeData
extends Object
implements Serializable

Call-time data for a set of calls to a particular service (e.g. a webapp or a session EJB) over a certain time span. Plugins report call-time metric data by creating one CallTimeData for each requested schedule and adding it to the MeasurementReport provided by the plugin container.

See Also:
Serialized Form

Constructor Summary
CallTimeData(MeasurementScheduleRequest schedule)
          Create a new CallTimeData.
 
Method Summary
 void addAggregatedCallData(String destination, Date beginTime, Date endTime, double minimum, double maximum, double total, long count)
          Add data for a set of calls to the specified destination within the specified time interval.
 void addCallData(String destination, Date beginTime, long duration)
          Add data for a call to the specified destination.
 boolean equals(Object o)
           
 int getScheduleId()
           
 Map<String,CallTimeDataValue> getValues()
          Returns a map that maps call destinations to the associated call-time data.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallTimeData

public CallTimeData(MeasurementScheduleRequest schedule)
Create a new CallTimeData.

Parameters:
schedule - the schedule for which this data was collected
Method Detail

addCallData

public void addCallData(@NotNull
                        String destination,
                        @NotNull
                        Date beginTime,
                        long duration)
Add data for a call to the specified destination.

Parameters:
destination - the call destination
beginTime - the time when the call was initiated
duration - the duration of the call, in milliseconds

addAggregatedCallData

public void addAggregatedCallData(@NotNull
                                  String destination,
                                  @NotNull
                                  Date beginTime,
                                  @NotNull
                                  Date endTime,
                                  double minimum,
                                  double maximum,
                                  double total,
                                  long count)
Add data for a set of calls to the specified destination within the specified time interval.

Parameters:
destination - the call destination
beginTime - ...
endTime - ...
minimum - ...
maximum - ...
total - ...
count - ...

getScheduleId

public int getScheduleId()

getValues

@NotNull
public Map<String,CallTimeDataValue> getValues()
Returns a map that maps call destinations to the associated call-time data.

Returns:
a map that maps call destinations to the associated call-time data

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.