@PublicApi public interface Reviewer
Allocatorhas a Reviewer instance according to the policy definition. For each block allocation decision, the Reviewer reviews it according to the criteria defined in the policy. If the allocation does not meet the criteria, the Reviewer will reject it.
|Modifier and Type||Interface and Description|
boolean acceptAllocation(StorageDirView dirView)
Allocator. Returning true means the allocation is accepted. Returning false meanes the allocation is rejected.
dirView- the storage dir that the block is allocated to
Copyright © 2022. All Rights Reserved.