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
public class AddReplicaProperty extends AdminAPIBase implements AddReplicaPropertyApi
V2 API for adding a property to a collection replicaThis 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, solrQueryResponse
-
Fields inherited from class org.apache.solr.api.JerseyResource
containerRequestContext
-
-
Constructor Summary
Constructors Constructor Description AddReplicaProperty(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SolrJerseyResponseaddReplicaProperty(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, validateZooKeeperAwareCoreContainer
-
Methods inherited from class org.apache.solr.api.JerseyResource
ensureRequiredParameterProvided, ensureRequiredRequestBodyProvided, instantiateJerseyResponse, instantiateJerseyResponse
-
-
-
-
Constructor Detail
-
AddReplicaProperty
@Inject public AddReplicaProperty(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse)
-
-
Method Detail
-
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)
-
-