public class BatchReport
extends java.lang.Object
implements java.io.Serializable
BatchReport
holds audit information for the request executed in batches.LightningRequest
,
LightningRequestReport
,
Serialized FormConstructor and Description |
---|
BatchReport(int batchSize) |
Modifier and Type | Method and Description |
---|---|
int |
getBatchId()
Get the batch Id.
|
int |
getBatchSize()
Get the size of the batch.
|
long |
getCleanupTimeInMillis()
Get the total time taken to cleanup all tasks after execution in the batch.
|
int |
getConnectFailureCount()
Get the total count of tasks in the batch that failed to connect.
|
long |
getConnectTimeInMillis()
Get the total time taken to connect for all tasks in the batch.
|
int |
getCurrentInetCacheSize()
Get the inet cache size after complete execution of the batch.
|
long |
getExecutionTime()
Get the total execution time of all tasks in the batch.
|
long |
getInetSocketAddressCreateTimeInMillis()
Get the total time taken to build inet cache for the batch.
|
int |
getReadWriteFailureCount()
Get the total count of tasks in the batch that failed to read/write.
|
long |
getReadWriteTimeInMillis()
Get the total time taken to read/write for all tasks in the batch.
|
int |
getSuccessCount()
Get the total count of successful tasks in the batch.
|
void |
setBatchId(int batchId)
Set the batch Id.
|
void |
setBatchSize(int batchSize)
Set the size of the batch.
|
void |
setCleanupTimeInMillis(long cleanupTimeInMillis)
Set the total time taken to cleanup all tasks after execution in the batch.
|
void |
setConnectFailureCount(int connectFailureCount)
Set the total count of tasks in the batch that failed to connect.
|
void |
setConnectTimeInMillis(long connectTimeInMillis)
Set the total time taken to connect for all tasks in the batch.
|
void |
setCurrentInetCacheSize(int currentInetCacheSize)
Set the inet cache size after complete execution of the batch.
|
void |
setExecutionTime(long executionTime)
Set the total execution time of all tasks in the batch.
|
void |
setInetSocketAddressCreateTimeInMillis(long inetSocketAddressCreateTimeInMillis)
Set the total time taken to build inet cache for the batch.
|
void |
setReadWriteFailureCount(int readWriteFailureCount)
Set the total count of tasks in the batch that failed to read/write.
|
void |
setReadWriteTimeInMillis(long readWriteTimeInMillis)
Set the total time taken to read/write for all tasks in the batch.
|
void |
setSuccessCount(int successCount)
Set the total count of successful tasks in the batch.
|
java.lang.String |
toString() |
public int getBatchId()
public void setBatchId(int batchId)
batchId
- the batch Idpublic long getExecutionTime()
public void setExecutionTime(long executionTime)
executionTime
- the total execution time of all tasks in the batchpublic int getConnectFailureCount()
public void setConnectFailureCount(int connectFailureCount)
connectFailureCount
- the total count of tasks in the batch that failed to connectpublic int getReadWriteFailureCount()
public void setReadWriteFailureCount(int readWriteFailureCount)
readWriteFailureCount
- the total count of tasks in the batch that failed to read/writepublic int getSuccessCount()
public void setSuccessCount(int successCount)
successCount
- the total count of successful tasks in the batchpublic int getCurrentInetCacheSize()
public void setCurrentInetCacheSize(int currentInetCacheSize)
currentInetCacheSize
- the inet cache size after complete execution of the batchpublic java.lang.String toString()
toString
in class java.lang.Object
public long getConnectTimeInMillis()
public void setConnectTimeInMillis(long connectTimeInMillis)
connectTimeInMillis
- the total time taken to connect for all tasks in the batchpublic long getReadWriteTimeInMillis()
public void setReadWriteTimeInMillis(long readWriteTimeInMillis)
readWriteTimeInMillis
- the total time taken to read/write for all tasks in the batchpublic long getInetSocketAddressCreateTimeInMillis()
public void setInetSocketAddressCreateTimeInMillis(long inetSocketAddressCreateTimeInMillis)
inetSocketAddressCreateTimeInMillis
- the total time taken to build inet cache for the batchpublic int getBatchSize()
public void setBatchSize(int batchSize)
batchSize
- the size of the batchpublic long getCleanupTimeInMillis()
public void setCleanupTimeInMillis(long cleanupTimeInMillis)
cleanupTimeInMillis
- the total time taken to cleanup all tasks after execution in the batch