Class SnapshotManager
- java.lang.Object
-
- org.apache.cassandra.service.snapshot.SnapshotManager
-
public class SnapshotManager extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.concurrent.ScheduledFuture<?>
cleanupTaskFuture
-
Constructor Summary
Constructors Modifier Constructor Description SnapshotManager()
protected
SnapshotManager(long initialDelaySeconds, long cleanupPeriodSeconds)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSnapshot(TableSnapshot snapshot)
protected void
addSnapshots(java.util.Collection<TableSnapshot> snapshots)
protected void
clearExpiredSnapshots()
void
clearSnapshot(TableSnapshot snapshot)
Deletes snapshot and remove it from managerjava.util.Collection<TableSnapshot>
getExpiringSnapshots()
java.util.Set<TableSnapshot>
loadSnapshots()
java.util.Set<TableSnapshot>
loadSnapshots(java.lang.String keyspace)
static void
shutdownAndWait(long timeout, java.util.concurrent.TimeUnit unit)
void
start()
void
stop()
-
-
-
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
-
-