public class TotalStatsData
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
errors
Number of errors parsing logs since the begging of the execution
|
protected float[] |
logsTypeDistribution
The distribution of each log type since the begging of the execution
One entry for each log type. |
protected int |
longestLogSize
The longest XML log received since the begging of the execution
|
protected long |
numOfLogs
Total number of logs (of any type) received since the beginning
of the execution
|
protected int |
shortestLogSize
The shortest XML log received since the begging of the execution
|
protected long[] |
totalLogs
The total number of logs received since the begging of the execution
One entry for each log type. |
| Constructor and Description |
|---|
TotalStatsData() |
| Modifier and Type | Method and Description |
|---|---|
int |
getErrors()
Getter
|
float[] |
getLogsTypeDistribution()
Getter
|
int |
getLongestLogSize()
Getter
|
long |
getNumOfLogs()
Getter
|
int |
getShortestLogSize()
Getter
|
long[] |
getTotalLogs()
Getter
|
void |
updateAll(TotalStatsData data)
Update all the total numbers
|
void |
updateErrors(int errs)
Update the total num of errors
|
void |
updateSizes(int min,
int max)
Update the sizes
|
void |
updateTotalLogs(long[] nums)
Update the total number of logs, the distribution and so on
|
protected final long[] totalLogs
protected volatile long numOfLogs
protected final float[] logsTypeDistribution
protected volatile int longestLogSize
protected volatile int shortestLogSize
protected volatile int errors
public void updateSizes(int min,
int max)
min - Shortest sizemax - Longest sizepublic void updateErrors(int errs)
errs - Total num. of errorspublic void updateAll(TotalStatsData data)
data - Total numberspublic void updateTotalLogs(long[] nums)
public long[] getTotalLogs()
public long getNumOfLogs()
public float[] getLogsTypeDistribution()
public int getLongestLogSize()
public int getShortestLogSize()
public int getErrors()