-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the output of validation tools to an object
Cherry-pick of existing commit. orig-pr: #12357 orig-commit: a7744e0 orig-commit-author: David Zhu <david@alluxio.com> pr-link: #12428 change-id: cid-302eeacbab095fcc5ba85cdcfbdc52631ddb1699
- Loading branch information
1 parent
7ffd7d8
commit ece77c2
Showing
4 changed files
with
49 additions
and
9 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
core/common/src/main/java/alluxio/cli/ValidationResults.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 | ||
* (the "License"). You may not use this work except in compliance with the License, which is | ||
* available at www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied, as more fully set forth in the License. | ||
* | ||
* See the NOTICE file distributed with this work for information regarding copyright ownership. | ||
*/ | ||
|
||
package alluxio.cli; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
/** | ||
* A container class for the validation results. | ||
*/ | ||
public class ValidationResults { | ||
private Map<ValidationUtils.State, List<ValidationTaskResult>> mResult; | ||
|
||
/** | ||
* Set validation results. | ||
* | ||
* @param result validation result | ||
*/ | ||
public void setResult(Map<ValidationUtils.State, List<ValidationTaskResult>> result) { | ||
mResult = result; | ||
} | ||
|
||
/** | ||
* Get Validation Result. | ||
* | ||
* @return validation result | ||
*/ | ||
public Map<ValidationUtils.State, List<ValidationTaskResult>> getResult() { | ||
return mResult; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters