Class SnapshotManager
java.lang.Object
org.apache.cassandra.service.snapshot.SnapshotManager
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSnapshotManager(long initialDelaySeconds, long cleanupPeriodSeconds) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSnapshot(TableSnapshot snapshot) protected voidaddSnapshots(Collection<TableSnapshot> snapshots) protected voidvoidclearSnapshot(TableSnapshot snapshot) Deletes snapshot and remove it from managerloadSnapshots(String keyspace) static voidshutdownAndWait(long timeout, TimeUnit unit) voidstart()voidstop()
-
Field Details
-
cleanupTaskFuture
-
-
Constructor Details
-
SnapshotManager
public SnapshotManager() -
SnapshotManager
protected SnapshotManager(long initialDelaySeconds, long cleanupPeriodSeconds)
-
-
Method Details
-
getExpiringSnapshots
-
start
public void start() -
stop
- Throws:
InterruptedExceptionTimeoutException
-
addSnapshot
-
loadSnapshots
-
loadSnapshots
-
addSnapshots
-
clearExpiredSnapshots
protected void clearExpiredSnapshots() -
clearSnapshot
Deletes snapshot and remove it from manager -
shutdownAndWait
public static void shutdownAndWait(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException - Throws:
InterruptedExceptionTimeoutException
-