Class MetadataScanResult
java.lang.Object
org.apache.hadoop.ozone.container.ozoneimpl.MetadataScanResult
- All Implemented Interfaces:
ScanResult
- Direct Known Subclasses:
DataScanResult
Represents the result of a container metadata scan.
A metadata scan only checks the existence of container metadata files and the checksum of the .container file.
It does not check the data in the container and therefore will not generate a ContainerMerkleTree.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMetadataScanResult(List<ContainerScanError> errors, boolean deleted) -
Method Summary
Modifier and TypeMethodDescriptionstatic MetadataScanResultdeleted()Constructs a metadata scan result representing a container that was deleted during the scan.static MetadataScanResultfromErrors(List<ContainerScanError> errors) Constructs a metadata scan result whose health will be determined based on the presence of errors.booleanbooleantoString()
-
Constructor Details
-
MetadataScanResult
-
-
Method Details
-
fromErrors
Constructs a metadata scan result whose health will be determined based on the presence of errors. -
deleted
Constructs a metadata scan result representing a container that was deleted during the scan. -
isDeleted
public boolean isDeleted()- Specified by:
isDeletedin interfaceScanResult
-
hasErrors
public boolean hasErrors()- Specified by:
hasErrorsin interfaceScanResult
-
getErrors
- Specified by:
getErrorsin interfaceScanResult
-
toString
-