@PublicApi public interface Reviewer
Allocator
.
Each Allocator
has 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 |
---|---|
static class |
Reviewer.Factory
Factory for
Reviewer . |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptAllocation(StorageDirView dirView)
Reviews an allocation proposed by the
Allocator . |
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 toCopyright © 2023. All Rights Reserved.