Package org.apache.solr.handler
Class SnapShooter
- java.lang.Object
-
- org.apache.solr.handler.SnapShooter
-
public class SnapShooter extends Object
Provides functionality equivalent to the snapshooter script
This is no longer used in standard replication.- Since:
- solr 1.4
-
-
Constructor Summary
Constructors Constructor Description SnapShooter(BackupRepository backupRepo, SolrCore core, URI location, String snapshotName, String commitName)SnapShooter(SolrCore core, String location, String snapshotName)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateSnapAsync(int numberToKeep, Consumer<NamedList> result)NamedListcreateSnapshot()protected NamedListcreateSnapshot(org.apache.lucene.index.IndexCommit indexCommit)protected voiddeleteNamedSnapshot(ReplicationHandler replicationHandler)protected voiddeleteSnapAsync(ReplicationHandler replicationHandler)BackupRepositorygetBackupRepository()URIgetLocation()Gets the parent directory of the snapshots.voidvalidateCreateSnapshot()voidvalidateDeleteSnapshot()
-
-
-
Field Detail
-
DATE_FMT
public static final String DATE_FMT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SnapShooter
@Deprecated public SnapShooter(SolrCore core, String location, String snapshotName)
Deprecated.
-
SnapShooter
public SnapShooter(BackupRepository backupRepo, SolrCore core, URI location, String snapshotName, String commitName)
-
-
Method Detail
-
getBackupRepository
public BackupRepository getBackupRepository()
-
getLocation
public URI getLocation()
Gets the parent directory of the snapshots. This is thelocationgiven in the constructor.
-
validateDeleteSnapshot
public void validateDeleteSnapshot()
-
deleteSnapAsync
protected void deleteSnapAsync(ReplicationHandler replicationHandler)
-
validateCreateSnapshot
public void validateCreateSnapshot() throws IOException- Throws:
IOException
-
createSnapAsync
public void createSnapAsync(int numberToKeep, Consumer<NamedList> result) throws IOException- Throws:
IOException
-
createSnapshot
protected NamedList createSnapshot(org.apache.lucene.index.IndexCommit indexCommit) throws Exception
- Throws:
Exception
-
deleteNamedSnapshot
protected void deleteNamedSnapshot(ReplicationHandler replicationHandler)
-
-