public class SnapShooter extends Object
Provides functionality equivalent to the snapshooter script
This is no longer used in standard replication.Constructor and Description |
---|
SnapShooter(BackupRepository backupRepo,
SolrCore core,
URI location,
String snapshotName,
String commitName) |
SnapShooter(SolrCore core,
String location,
String snapshotName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
createSnapAsync(IndexCommit indexCommit,
int numberToKeep,
Consumer<NamedList> result) |
NamedList |
createSnapshot() |
protected NamedList |
createSnapshot(IndexCommit indexCommit) |
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, URI location, String snapshotName, String commitName)
public BackupRepository getBackupRepository()
public URI getLocation()
location
given in the constructor.public void validateDeleteSnapshot()
protected void deleteSnapAsync(ReplicationHandler replicationHandler)
public void validateCreateSnapshot() throws IOException
IOException
public void createSnapAsync(IndexCommit indexCommit, int numberToKeep, Consumer<NamedList> result)
protected NamedList createSnapshot(IndexCommit indexCommit) throws Exception
Exception
protected void deleteNamedSnapshot(ReplicationHandler replicationHandler)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.