|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rhq.core.domain.measurement.MeasurementReport
public class MeasurementReport
A report of measurement information. When a plugin collects measurement data that is emitted from a monitored resource, it will store that measurement data in an instance of this type.
This report has an optimized serialization strategy.
Constructor Summary | |
---|---|
MeasurementReport()
|
Method Summary | |
---|---|
void |
addData(CallTimeData data)
Adds the given call-time data to this report. |
void |
addData(MeasurementDataNumeric value)
Adds the given piece of measurement data to this report. |
void |
addData(MeasurementDataTrait value)
Adds the given piece of measurement data to this report. |
Set<CallTimeData> |
getCallTimeData()
Returns the entire list of all call-time data stored in this report. |
long |
getCollectionTime()
|
long |
getDataCount()
|
Set<MeasurementDataNumeric> |
getNumericData()
Returns the entire list of all measurement data (i.e. numeric metrics or traits) stored in this report. |
Set<MeasurementDataTrait> |
getTraitData()
|
void |
incrementCollectionTime(long collectionTime)
|
void |
readExternal(ObjectInput in)
|
void |
setCollectionTime(long collectionTime)
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MeasurementReport()
Method Detail |
---|
public void addData(MeasurementDataNumeric value)
getNumericData()
.
value
- the measurement data to be addedpublic void addData(MeasurementDataTrait value)
getNumericData()
.
value
- the measurement data to be addedpublic void addData(CallTimeData data)
getCallTimeData()
.
data
- the call-time data to be addedpublic Set<MeasurementDataNumeric> getNumericData()
public Set<MeasurementDataTrait> getTraitData()
@NotNull public Set<CallTimeData> getCallTimeData()
added
.
public long getDataCount()
public long getCollectionTime()
public void setCollectionTime(long collectionTime)
public void incrementCollectionTime(long collectionTime)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |