public class SnapShooter extends Object
Provides functionality equivalent to the snapshooter script
This is no longer used in standard replication.Constructor and Description |
---|
SnapShooter(SolrCore core,
String location,
String snapshotName) |
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) |
Path |
getLocation()
Gets the parent directory of the snapshots.
|
void |
validateCreateSnapshot() |
void |
validateDeleteSnapshot() |
public static final String DATE_FMT
public Path 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
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-2016 Apache Software Foundation. All Rights Reserved.