Class CoreReplicationAPI
- java.lang.Object
-
- org.apache.solr.api.JerseyResource
-
- org.apache.solr.handler.admin.api.ReplicationAPIBase
-
- org.apache.solr.handler.admin.api.CoreReplicationAPI
-
@Path("/cores/{coreName}/replication") public class CoreReplicationAPI extends ReplicationAPIBaseV2 APIs for inspecting and replicating indicesThese APIs are analogous to the v1 /coreName/replication APIs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCoreReplicationAPI.FileListResponseResponse forfetchFileList(long).static classCoreReplicationAPI.FileMetaDataContained inCoreReplicationAPI.FileListResponse, this holds metadata from a file for an indexstatic classCoreReplicationAPI.IndexVersionResponseResponse forfetchIndexVersion().
-
Field Summary
-
Fields inherited from class org.apache.solr.handler.admin.api.ReplicationAPIBase
solrCore, solrQueryRequest, solrQueryResponse
-
Fields inherited from class org.apache.solr.api.JerseyResource
containerRequestContext
-
-
Constructor Summary
Constructors Constructor Description CoreReplicationAPI(SolrCore solrCore, SolrQueryRequest req, SolrQueryResponse rsp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoreReplicationAPI.FileListResponsefetchFileList(long gen)CoreReplicationAPI.IndexVersionResponsefetchIndexVersion()-
Methods inherited from class org.apache.solr.handler.admin.api.ReplicationAPIBase
doFetchFileList, doFetchIndexVersion, getFileList
-
Methods inherited from class org.apache.solr.api.JerseyResource
ensureRequiredParameterProvided, ensureRequiredRequestBodyProvided, instantiateJerseyResponse, instantiateJerseyResponse
-
-
-
-
Constructor Detail
-
CoreReplicationAPI
@Inject public CoreReplicationAPI(SolrCore solrCore, SolrQueryRequest req, SolrQueryResponse rsp)
-
-
Method Detail
-
fetchIndexVersion
@GET @Path("/indexversion") @Produces({"application/json","application/xml","application/vnd.apache.solr.javabin"}) public CoreReplicationAPI.IndexVersionResponse fetchIndexVersion() throws IOException- Throws:
IOException
-
fetchFileList
@GET @Path("/files") @Produces({"application/json","application/xml","application/vnd.apache.solr.javabin"}) public CoreReplicationAPI.FileListResponse fetchFileList(@QueryParam("generation") long gen)
-
-