public class SnapShooter extends Object
| Constructor and Description |
|---|
SnapShooter(BackupRepository backupRepo,
SolrCore core,
String location,
String snapshotName,
String commitName) |
SnapShooter(SolrCore core,
String location,
String snapshotName)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
NamedList |
createSnapshot() |
protected void |
deleteNamedSnapshot(ReplicationHandler replicationHandler) |
protected void |
deleteSnapAsync(ReplicationHandler replicationHandler) |
BackupRepository |
getBackupRepository() |
URI |
getLocation()
Gets the parent directory of the snapshots.
|
void |
validateCreateSnapshot() |
void |
validateDeleteSnapshot() |
public static final String DATE_FMT
@Deprecated public SnapShooter(SolrCore core, String location, String snapshotName)
public SnapShooter(BackupRepository backupRepo, SolrCore core, String location, String snapshotName, String commitName)
public BackupRepository getBackupRepository()
public URI getLocation()
location given in the constructor after
being resolved against the core instance dir.public void validateDeleteSnapshot()
protected void deleteSnapAsync(ReplicationHandler replicationHandler)
public void validateCreateSnapshot()
throws IOException
IOExceptionprotected void deleteNamedSnapshot(ReplicationHandler replicationHandler)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.