Class InstallShardData
java.lang.Object
org.apache.solr.api.JerseyResource
org.apache.solr.handler.admin.api.AdminAPIBase
org.apache.solr.handler.admin.api.InstallShardData
- All Implemented Interfaces:
InstallShardDataApi
V2 API implementation allowing users to import offline-constructed index into a shard.
Particularly useful for installing (per-shard) indices constructed offline into a SolrCloud deployment. Callers are required to put the collection into read-only mode prior to installing data into any shards of that collection, and should exit read only mode when completed.
-
Field Summary
Fields inherited from class org.apache.solr.handler.admin.api.AdminAPIBase
coreContainer, solrQueryRequest, solrQueryResponseFields inherited from class org.apache.solr.api.JerseyResource
containerRequestContext -
Constructor Summary
ConstructorsConstructorDescriptionInstallShardData(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.solr.common.cloud.ZkNodePropscreateRemoteMessage(String collectionName, String shardName, InstallShardDataRequestBody requestBody) static voidensureCollectionAndShardExist(org.apache.solr.common.cloud.ClusterState clusterState, String collectionName, String shardName) installShardData(String collName, String shardName, InstallShardDataRequestBody requestBody) Methods inherited from class org.apache.solr.handler.admin.api.AdminAPIBase
disableResponseCaching, fetchAndValidateZooKeeperAwareCoreContainer, insertIfNotNull, recordCollectionForLogAndTracing, resolveAndValidateAliasIfEnabled, resolveCollectionName, submitRemoteMessageAndHandleResponse, validateZooKeeperAwareCoreContainerMethods inherited from class org.apache.solr.api.JerseyResource
ensureRequiredParameterProvided, ensureRequiredRequestBodyProvided, instantiateJerseyResponse, instantiateJerseyResponse
-
Constructor Details
-
InstallShardData
@Inject public InstallShardData(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse)
-
-
Method Details
-
installShardData
public AsyncJerseyResponse installShardData(String collName, String shardName, InstallShardDataRequestBody requestBody) throws Exception - Specified by:
installShardDatain interfaceInstallShardDataApi- Throws:
Exception
-
ensureCollectionAndShardExist
-
createRemoteMessage
public static org.apache.solr.common.cloud.ZkNodeProps createRemoteMessage(String collectionName, String shardName, InstallShardDataRequestBody requestBody)
-