Class DefragmentationMXBeanImpl
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.defragmentation.DefragmentationMXBeanImpl
-
- All Implemented Interfaces:
DefragmentationMXBean
public class DefragmentationMXBeanImpl extends Object implements DefragmentationMXBean
Defragmentation MX bean implementation.
-
-
Constructor Summary
Constructors Constructor Description DefragmentationMXBeanImpl(GridKernalContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel()Cancel defragmentation.booleaninProgress()Get defragmentation status.intprocessedPartitions()Get count of processed partitions.booleanschedule(String cacheNames)Schedule defragmentation for given caches.longstartTime()Get defragmentation's start time.inttotalPartitions()Get total count of partitions.
-
-
-
Constructor Detail
-
DefragmentationMXBeanImpl
public DefragmentationMXBeanImpl(GridKernalContext ctx)
-
-
Method Detail
-
schedule
public boolean schedule(String cacheNames)
Schedule defragmentation for given caches.- Specified by:
schedulein interfaceDefragmentationMXBean- Parameters:
cacheNames- Names of caches to run defragmentation on, comma separated.- Returns:
trueif defragmentation is scheduled,falseotherwise.
-
cancel
public boolean cancel()
Cancel defragmentation.- Specified by:
cancelin interfaceDefragmentationMXBean- Returns:
trueif defragmentation was canceled,falseotherwise.
-
inProgress
public boolean inProgress()
Get defragmentation status.- Specified by:
inProgressin interfaceDefragmentationMXBean- Returns:
trueif defragmentation is in progress right now.
-
processedPartitions
public int processedPartitions()
Get count of processed partitions.- Specified by:
processedPartitionsin interfaceDefragmentationMXBean- Returns:
trueif defragmentation is in progress right now.
-
totalPartitions
public int totalPartitions()
Get total count of partitions.- Specified by:
totalPartitionsin interfaceDefragmentationMXBean- Returns:
trueif defragmentation is in progress right now.
-
startTime
public long startTime()
Get defragmentation's start time.- Specified by:
startTimein interfaceDefragmentationMXBean- Returns:
trueif defragmentation is in progress right now.
-
-