TError - type of error that can occurpublic class DefragmenterMinimumMoves<TError extends Exception> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
DefragmenterMinimumMoves.DataMover<TError extends Exception>
Interface that is used to move a used block of data to a new offset.
|
static class |
DefragmenterMinimumMoves.UsedBlock
Base class to represent a used block of data, with a RangeLong indicating its position.
|
| Modifier and Type | Field and Description |
|---|---|
protected FragmentedRangeLong |
freeSpaces |
protected DefragmenterMinimumMoves.DataMover<TError> |
mover |
protected List<? extends DefragmenterMinimumMoves.UsedBlock> |
usedBlocks |
| Constructor and Description |
|---|
DefragmenterMinimumMoves(List<? extends DefragmenterMinimumMoves.UsedBlock> usedBlocks,
FragmentedRangeLong freeSpaces,
DefragmenterMinimumMoves.DataMover<TError> mover)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ISynchronizationPoint<TError> |
defragment()
Launch the defragmentation.
|
FragmentedRangeLong |
getFreeSpaces() |
protected List<? extends DefragmenterMinimumMoves.UsedBlock> usedBlocks
protected FragmentedRangeLong freeSpaces
protected DefragmenterMinimumMoves.DataMover<TError extends Exception> mover
public DefragmenterMinimumMoves(List<? extends DefragmenterMinimumMoves.UsedBlock> usedBlocks, FragmentedRangeLong freeSpaces, DefragmenterMinimumMoves.DataMover<TError> mover)
usedBlocks - list of used blocks of datafreeSpaces - list of free spacesmover - implementation of DataMoverpublic FragmentedRangeLong getFreeSpaces()
public ISynchronizationPoint<TError> defragment()
Copyright © 2017. All rights reserved.