Interface IgniteDefragmentation
-
- All Known Implementing Classes:
IgniteDefragmentationImpl
public interface IgniteDefragmentationDefragmentation operation service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIgniteDefragmentation.CancelResultResult of the cancellation.static classIgniteDefragmentation.CompletedDefragmentationInfostatic classIgniteDefragmentation.DefragmentationInfostatic classIgniteDefragmentation.DefragmentationStatusstatic classIgniteDefragmentation.InProgressDefragmentationInfostatic classIgniteDefragmentation.ScheduleResultResult of the scheduling.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IgniteDefragmentation.CancelResultcancel()Cancel scheduled or ongoing defragmentation.booleaninProgress()intprocessedPartitions()IgniteDefragmentation.ScheduleResultschedule(List<String> cacheNames)Schedule defragmentaton on next start of the node.longstartTime()IgniteDefragmentation.DefragmentationStatusstatus()Get the status of the ongoing defragmentation.inttotalPartitions()
-
-
-
Method Detail
-
schedule
IgniteDefragmentation.ScheduleResult schedule(List<String> cacheNames) throws IgniteCheckedException
Schedule defragmentaton on next start of the node.- Parameters:
cacheNames- Names of caches to run defragmentation on.- Returns:
- Result of the scheduling.
- Throws:
IgniteCheckedException- If failed.
-
cancel
IgniteDefragmentation.CancelResult cancel() throws IgniteCheckedException
Cancel scheduled or ongoing defragmentation.- Returns:
- Result of the cancellation.
- Throws:
IgniteCheckedException- If failed.
-
status
IgniteDefragmentation.DefragmentationStatus status() throws IgniteCheckedException
Get the status of the ongoing defragmentation.- Returns:
- Defragmentation status.
- Throws:
IgniteCheckedException- If failed.
-
inProgress
boolean inProgress()
- Returns:
trueif there is an ongoing defragmentation.
-
processedPartitions
int processedPartitions()
- Returns:
- Number of processed partitions, or 0 if there is no ongoing defragmentation.
-
totalPartitions
int totalPartitions()
- Returns:
- Number of total partitions, or 0 if there is no ongoing defragmentation.
-
startTime
long startTime()
- Returns:
- Timestamp of the beginning of the ongoing defragmentation or 0 if there is none.
-
-