Class DefragmentationMXBeanImpl

    • Constructor Detail

      • DefragmentationMXBeanImpl

        public DefragmentationMXBeanImpl​(GridKernalContext ctx)
    • Method Detail

      • schedule

        public boolean schedule​(String cacheNames)
        Schedule defragmentation for given caches.
        Specified by:
        schedule in interface DefragmentationMXBean
        Parameters:
        cacheNames - Names of caches to run defragmentation on, comma separated.
        Returns:
        true if defragmentation is scheduled, false otherwise.
      • cancel

        public boolean cancel()
        Cancel defragmentation.
        Specified by:
        cancel in interface DefragmentationMXBean
        Returns:
        true if defragmentation was canceled, false otherwise.
      • inProgress

        public boolean inProgress()
        Get defragmentation status.
        Specified by:
        inProgress in interface DefragmentationMXBean
        Returns:
        true if defragmentation is in progress right now.
      • processedPartitions

        public int processedPartitions()
        Get count of processed partitions.
        Specified by:
        processedPartitions in interface DefragmentationMXBean
        Returns:
        true if defragmentation is in progress right now.
      • totalPartitions

        public int totalPartitions()
        Get total count of partitions.
        Specified by:
        totalPartitions in interface DefragmentationMXBean
        Returns:
        true if defragmentation is in progress right now.
      • startTime

        public long startTime()
        Get defragmentation's start time.
        Specified by:
        startTime in interface DefragmentationMXBean
        Returns:
        true if defragmentation is in progress right now.