Class SnapshotManager


  • public class SnapshotManager
    extends java.lang.Object
    • Field Detail

      • cleanupTaskFuture

        protected volatile java.util.concurrent.ScheduledFuture<?> cleanupTaskFuture
    • Constructor Detail

      • SnapshotManager

        public SnapshotManager()
      • SnapshotManager

        protected SnapshotManager​(long initialDelaySeconds,
                                  long cleanupPeriodSeconds)
    • Method Detail

      • getExpiringSnapshots

        public java.util.Collection<TableSnapshot> getExpiringSnapshots()
      • start

        public void start()
      • stop

        public void stop()
                  throws java.lang.InterruptedException,
                         java.util.concurrent.TimeoutException
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.TimeoutException
      • addSnapshot

        public void addSnapshot​(TableSnapshot snapshot)
      • loadSnapshots

        public java.util.Set<TableSnapshot> loadSnapshots​(java.lang.String keyspace)
      • loadSnapshots

        public java.util.Set<TableSnapshot> loadSnapshots()
      • addSnapshots

        protected void addSnapshots​(java.util.Collection<TableSnapshot> snapshots)
      • clearExpiredSnapshots

        protected void clearExpiredSnapshots()
      • clearSnapshot

        public void clearSnapshot​(TableSnapshot snapshot)
        Deletes snapshot and remove it from manager
      • shutdownAndWait

        public static void shutdownAndWait​(long timeout,
                                           java.util.concurrent.TimeUnit unit)
                                    throws java.lang.InterruptedException,
                                           java.util.concurrent.TimeoutException
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.TimeoutException