Class DISCommandUtil.ActionResult
java.lang.Object
com.illumon.iris.db.tables.dataimport.logtailer.DISCommandUtil.ActionResult
- Enclosing class:
- DISCommandUtil
public static class DISCommandUtil.ActionResult extends Object
Results of a truncate or delete operation. Contains detailed results for all data import servers and all locations that
could have been affected.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DISCommandUtil.ActionResult.DisResult
Result for a single DIS (overall and for all locations)static class
DISCommandUtil.ActionResult.Result
-
Field Summary
Fields Modifier and Type Field Description Map<String,DISCommandUtil.ActionResult.DisResult>
results
-
Constructor Summary
Constructors Constructor Description ActionResult()
-
Method Summary
Modifier and Type Method Description DISCommandUtil.ActionResult
addDis(DataRoutingService.DataImportServiceEndpoint dis, DISCommandUtil.ActionResult.Result result)
Add a result for a DISDISCommandUtil.ActionResult.Result
getSummaryResult()
Overall result for all dis results.DISCommandUtil.ActionResult
setResult(DISCommandUtil.ActionResult.Result overallResult)
Set the overall result for the action.String
toString()
DISCommandUtil.ActionResult
updateDis(DataRoutingService.DataImportServiceEndpoint dis, AckTruncateMessage ack)
Update the detailed results for a DISDISCommandUtil.ActionResult
updateDis(DataRoutingService.DataImportServiceEndpoint dis, Exception e)
Update the results for a DIS to failure.
-
Field Details
-
Constructor Details
-
ActionResult
public ActionResult()
-
-
Method Details
-
getSummaryResult
Overall result for all dis results. This currently returns the max status, assuming the Result enum is ordered such that the max result present is an appropriate overall result.- Returns:
- the summary response for all dis results
-
addDis
public DISCommandUtil.ActionResult addDis(@NotNull DataRoutingService.DataImportServiceEndpoint dis, @NotNull DISCommandUtil.ActionResult.Result result)Add a result for a DIS- Parameters:
dis
- name of the DISresult
- result to add- Returns:
- this
-
updateDis
public DISCommandUtil.ActionResult updateDis(DataRoutingService.DataImportServiceEndpoint dis, AckTruncateMessage ack)Update the detailed results for a DIS- Parameters:
dis
- name of the DISack
- message containing the result details to add- Returns:
- this
-
updateDis
public DISCommandUtil.ActionResult updateDis(DataRoutingService.DataImportServiceEndpoint dis, Exception e)Update the results for a DIS to failure.- Parameters:
dis
- name of the DISe
- record this exception with the failure.- Returns:
- this
-
setResult
Set the overall result for the action. This might be different from any of the DIS results, and might a changed condition such as dry run.- Parameters:
overallResult
- the new result- Returns:
- this
-
toString
-