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 ReplicationAPIBase
V2 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 class
CoreReplicationAPI.FileListResponse
Response forfetchFileList(long)
.static class
CoreReplicationAPI.FileMetaData
Contained inCoreReplicationAPI.FileListResponse
, this holds metadata from a file for an indexstatic class
CoreReplicationAPI.IndexVersionResponse
Response 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.FileListResponse
fetchFileList(long gen)
CoreReplicationAPI.IndexVersionResponse
fetchIndexVersion()
-
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)
-
-