Class DISCommandUtil.ActionResult
java.lang.Object
com.illumon.iris.db.tables.dataimport.logtailer.DISCommandUtil.ActionResult
- Enclosing class:
- DISCommandUtil
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 ClassesModifier and TypeClassDescriptionstatic class
Result for a single DIS (overall and for all locations)static enum
Result of a single DIS -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDis
(String dis, DISCommandUtil.ActionResult.Result result) Add a result for a DISOverall result for all dis results.setResult
(DISCommandUtil.ActionResult.Result overallResult) Set the overall result for the action.toString()
updateDis
(String dis, AckTruncateMessage ack) Update the detailed results for a DISUpdate the results for a DIS to failure.
-
Field Details
-
results
-
-
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. If there are no location results, return the overall result.- Returns:
- the summary response for all dis results
-
addDis
public DISCommandUtil.ActionResult addDis(@NotNull String dis, @NotNull DISCommandUtil.ActionResult.Result result) Add a result for a DIS- Parameters:
dis
- name of the DISresult
- result to add- Returns:
- this
-
updateDis
Update the detailed results for a DIS- Parameters:
dis
- name of the DISack
- message containing the result details to add- Returns:
- this
-
updateDis
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
-