Class RequestSyncShardAPI
- java.lang.Object
-
- org.apache.solr.handler.admin.api.RequestSyncShardAPI
-
public class RequestSyncShardAPI extends Object
Internal V2 API used to request a core sync with its shard leader.Only valid in SolrCloud mode. This API (POST /v2/cores/coreName {'request-sync-shard': {}}) is analogous to the v1 /admin/cores?action=REQUESTSYNCSHARD command.
- See Also:
RequestSyncShardPayload
-
-
Field Summary
Fields Modifier and Type Field Description static String
V2_REQUEST_SYNC_SHARD_CMD
-
Constructor Summary
Constructors Constructor Description RequestSyncShardAPI(CoreAdminHandler coreAdminHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
requestSyncShard(PayloadObj<org.apache.solr.client.solrj.request.beans.RequestSyncShardPayload> obj)
-
-
-
Field Detail
-
V2_REQUEST_SYNC_SHARD_CMD
public static final String V2_REQUEST_SYNC_SHARD_CMD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RequestSyncShardAPI
public RequestSyncShardAPI(CoreAdminHandler coreAdminHandler)
-
-
Method Detail
-
requestSyncShard
public void requestSyncShard(PayloadObj<org.apache.solr.client.solrj.request.beans.RequestSyncShardPayload> obj) throws Exception
- Throws:
Exception
-
-