public class LightningRequestReport
extends java.lang.Object
implements java.io.Serializable
LightningRequestReport
class holds the execution summary and the detailed output of the request.Constructor and Description |
---|
LightningRequestReport() |
LightningRequestReport(LightningRequest request)
Initialize the report with the submitted request.
|
Modifier and Type | Method and Description |
---|---|
static LightningRequestReport |
getAuditReport(LightningRequestReport tmpReport)
Clone the audit data from the report.
|
java.util.Map<java.lang.Integer,BatchReport> |
getBatchReport()
Get all the batch reports.
|
long |
getProcessEndTime()
Get the processing end time for the request.
|
java.lang.Long |
getProcessStartTime()
Get the processing start time for the request.
|
LightningRequest |
getRequest()
Get the submitted request.
|
LightningCoreConstants.WorkStatus |
getStatus()
Get the current work status.
|
java.lang.Long |
getTotalExecutionTimeInMillis()
Get the total execution time for the request.
|
java.lang.Long |
getWorkDequeueTime()
Get the time request got dequeued.
|
java.lang.Long |
getWorkEnqueueTime()
Get the time request got enqueued.
|
void |
setBatchReport(java.util.Map<java.lang.Integer,BatchReport> batchReport)
Set all the batch reports.
|
void |
setProcessEndTime(long processEndTime)
Set the processing end time for the request.
|
void |
setProcessStartTime(java.lang.Long processStartTime)
Set the processing start time for the request.
|
void |
setRequest(LightningRequest request)
Set the submitted request.
|
void |
setStatus(LightningCoreConstants.WorkStatus status)
Set the current work status.
|
void |
setTotalExecutionTimeInMillis(java.lang.Long totalExecutionTimeInMillis)
Set the total execution time for the request.
|
void |
setWorkDequeueTime(java.lang.Long workDequeueTime)
Set the dequeue time for the request.
|
void |
setWorkEnqueueTime(java.lang.Long workEnqueueTime)
Set the enqueue time for the request.
|
java.lang.String |
toString() |
public LightningRequestReport()
public LightningRequestReport(LightningRequest request)
request
- the submitted requestpublic LightningRequest getRequest()
public void setRequest(LightningRequest request)
request
- the submitted requestpublic LightningCoreConstants.WorkStatus getStatus()
public void setStatus(LightningCoreConstants.WorkStatus status)
status
- the current status of the requestpublic java.lang.Long getWorkDequeueTime()
public void setWorkDequeueTime(java.lang.Long workDequeueTime)
workDequeueTime
- the request dequeue timepublic java.lang.Long getWorkEnqueueTime()
public void setWorkEnqueueTime(java.lang.Long workEnqueueTime)
workEnqueueTime
- the request enqueue timepublic java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map<java.lang.Integer,BatchReport> getBatchReport()
public void setBatchReport(java.util.Map<java.lang.Integer,BatchReport> batchReport)
batchReport
- the list of batch reportspublic java.lang.Long getTotalExecutionTimeInMillis()
public void setTotalExecutionTimeInMillis(java.lang.Long totalExecutionTimeInMillis)
totalExecutionTimeInMillis
- the total execution time for the requestpublic java.lang.Long getProcessStartTime()
public void setProcessStartTime(java.lang.Long processStartTime)
processStartTime
- the processing start time for the requestpublic long getProcessEndTime()
public void setProcessEndTime(long processEndTime)
processEndTime
- the processing end time for the requestpublic static LightningRequestReport getAuditReport(LightningRequestReport tmpReport)
tmpReport
- the complete report