public class InvocationMetric extends Object implements Externalizable
Constructor and Description |
---|
InvocationMetric()
The default constructor.
|
InvocationMetric(List<InvocationMetric> metrics)
This constructor initializes the invocation metric as an
aggregation of a supplied list of metrics.
|
Modifier and Type | Method and Description |
---|---|
long |
getAverage()
This method returns the average duration.
|
int |
getAverageChange()
This method returns the average duration change (if applicable).
|
int |
getCount()
This method returns the count.
|
int |
getCountChange()
This method returns the count change (if applicable).
|
int |
getFaults()
This method returns the number of invocations
that resulted in a fault.
|
long |
getMax()
This method returns the maximum duration.
|
int |
getMaxChange()
This method returns the maximum duration change (if applicable).
|
long |
getMin()
This method returns the minimum duration.
|
int |
getMinChange()
This method returns the minimum duration change (if applicable).
|
void |
merge(InvocationMetric metric)
This method merges the supplied invocation metric
information.
|
void |
readExternal(ObjectInput in) |
void |
setAverage(long time)
This method sets the average duration.
|
void |
setAverageChange(int change)
This method sets the average duration change (if applicable).
|
void |
setCount(int count)
This method sets the count.
|
void |
setCountChange(int change)
This method sets the count change (if applicable).
|
void |
setFaults(int faults)
This method sets the number of invocations
that resulted in a fault.
|
void |
setMax(long time)
This method sets the maximum duration.
|
void |
setMaxChange(int change)
This method sets the maximum duration change (if applicable).
|
void |
setMin(long time)
This method sets the minimum duration.
|
void |
setMinChange(int change)
This method sets the minimum duration change (if applicable).
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public InvocationMetric()
public InvocationMetric(List<InvocationMetric> metrics)
metrics
- The metrics to aggregatepublic void setCount(int count)
count
- The countpublic int getCount()
public void setFaults(int faults)
faults
- The fault countpublic int getFaults()
public void setAverage(long time)
time
- The average durationpublic long getAverage()
public void setMax(long time)
time
- The maximum durationpublic long getMax()
public void setMin(long time)
time
- The minimum durationpublic long getMin()
public void setCountChange(int change)
change
- The count change percentagepublic int getCountChange()
public void setAverageChange(int change)
change
- The average duration change percentagepublic int getAverageChange()
public void setMaxChange(int change)
change
- The maximum duration change percentagepublic int getMaxChange()
public void setMinChange(int change)
change
- The minimum duration change percentagepublic int getMinChange()
public void merge(InvocationMetric metric)
metric
- The invocation metrics to mergepublic 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
Copyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.