Class AddReplicaProperty
java.lang.Object
org.apache.solr.api.JerseyResource
org.apache.solr.handler.admin.api.AdminAPIBase
org.apache.solr.handler.admin.api.AddReplicaProperty
- All Implemented Interfaces:
AddReplicaPropertyApi
V2 API for adding a property to a collection replica
This API is analogous to the v1 /admin/collections?action=ADDREPLICAPROP command.
-
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
ConstructorsConstructorDescriptionAddReplicaProperty(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse) -
Method Summary
Modifier and TypeMethodDescriptionaddReplicaProperty(String collName, String shardName, String replicaName, String propertyName, AddReplicaPropertyRequestBody requestBody) org.apache.solr.common.cloud.ZkNodePropscreateRemoteMessage(String collName, String shardName, String replicaName, String propertyName, AddReplicaPropertyRequestBody 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
-
AddReplicaProperty
@Inject public AddReplicaProperty(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse)
-
-
Method Details
-
addReplicaProperty
public SolrJerseyResponse addReplicaProperty(String collName, String shardName, String replicaName, String propertyName, AddReplicaPropertyRequestBody requestBody) throws Exception - Specified by:
addReplicaPropertyin interfaceAddReplicaPropertyApi- Throws:
Exception
-
createRemoteMessage
public org.apache.solr.common.cloud.ZkNodeProps createRemoteMessage(String collName, String shardName, String replicaName, String propertyName, AddReplicaPropertyRequestBody requestBody)
-