Class SnapShooter


  • public class SnapShooter
    extends java.lang.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​(org.apache.solr.core.SolrCore core, java.lang.String location, java.lang.String snapshotName)
      Deprecated.
    • Constructor Detail

      • SnapShooter

        @Deprecated
        public SnapShooter​(org.apache.solr.core.SolrCore core,
                           java.lang.String location,
                           java.lang.String snapshotName)
        Deprecated.
    • Method Detail

      • getBackupRepository

        public org.apache.solr.core.backup.repository.BackupRepository getBackupRepository()
      • getLocation

        public java.net.URI getLocation()
        Gets the parent directory of the snapshots. This is the location given in the constructor.
      • createSnapshot

        public org.apache.solr.common.util.NamedList createSnapshot()
                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception