public abstract static class CollectionAdminRequest.AsyncCollectionAdminRequest extends CollectionAdminRequest<CollectionAdminResponse>
CollectionAdminRequest.AddReplica, CollectionAdminRequest.AddReplicaProp, CollectionAdminRequest.AddRole, CollectionAdminRequest.AsyncCollectionAdminRequest, CollectionAdminRequest.AsyncCollectionSpecificAdminRequest, CollectionAdminRequest.AsyncShardSpecificAdminRequest, CollectionAdminRequest.Backup, CollectionAdminRequest.BalanceShardUnique, CollectionAdminRequest.ClusterProp, CollectionAdminRequest.ClusterStatus, CollectionAdminRequest.CollectionAdminRoleRequest, CollectionAdminRequest.Create, CollectionAdminRequest.CreateAlias, CollectionAdminRequest.CreateShard, CollectionAdminRequest.CreateSnapshot, CollectionAdminRequest.Delete, CollectionAdminRequest.DeleteAlias, CollectionAdminRequest.DeleteNode, CollectionAdminRequest.DeleteReplica, CollectionAdminRequest.DeleteReplicaProp, CollectionAdminRequest.DeleteShard, CollectionAdminRequest.DeleteSnapshot, CollectionAdminRequest.DeleteStatus, CollectionAdminRequest.ForceLeader, CollectionAdminRequest.List, CollectionAdminRequest.ListAliases, CollectionAdminRequest.ListSnapshots, CollectionAdminRequest.Migrate, CollectionAdminRequest.MigrateClusterState, CollectionAdminRequest.MoveReplica, CollectionAdminRequest.OverseerStatus, CollectionAdminRequest.RebalanceLeaders, CollectionAdminRequest.Reload, CollectionAdminRequest.RemoveRole, CollectionAdminRequest.ReplaceNode, CollectionAdminRequest.RequestStatus, CollectionAdminRequest.RequestStatusResponse, CollectionAdminRequest.Restore, CollectionAdminRequest.ShardSpecificAdminRequest, CollectionAdminRequest.SplitShard
SolrRequest.METHOD
MapWriter.EntryWriter
Modifier and Type | Field and Description |
---|---|
protected String |
asyncId |
action
SUPPORTED_METHODS, useBinaryV2, usev2
Constructor and Description |
---|
AsyncCollectionAdminRequest(CollectionParams.CollectionAction action) |
Modifier and Type | Method and Description |
---|---|
protected CollectionAdminResponse |
createResponse(SolrClient client)
Create a new SolrResponse to hold the response from the server
|
String |
getAsyncId() |
SolrParams |
getParams() |
RequestStatusState |
processAndWait(SolrClient client,
long timeoutSeconds)
Send this request to a Solr server, and wait (up to a timeout) for the request to
complete or fail
|
RequestStatusState |
processAndWait(String asyncId,
SolrClient client,
long timeoutSeconds)
Send this request to a Solr server, and wait (up to a timeout) for the request to
complete or fail
|
String |
processAsync(SolrClient client)
Process this request asynchronously, generating and returning a request id
|
String |
processAsync(String asyncId,
SolrClient client)
Process this request asynchronously, using a specified request id
|
addProperties, addReplicaByRouteKey, addReplicaProperty, addReplicaToShard, addReplicaToShard, addRole, backupCollection, balanceReplicaProperty, createAlias, createCollection, createCollection, createCollection, createCollectionWithImplicitRouter, createCollectionWithImplicitRouter, createShard, deleteAlias, deleteAllAsyncIds, deleteAsyncId, deleteCollection, deleteReplica, deleteReplicaProperty, deleteReplicasFromAllShards, deleteReplicasFromShard, deleteShard, forceLeaderElection, getClusterStatus, getContentStreams, getOverseerStatus, getV2Request, listCollections, migrateCollectionFormat, migrateData, rebalanceLeaders, reloadCollection, removeRole, requestStatus, restoreCollection, setClusterProperty, splitShard, waitForAsyncRequest, writeMap
getBasicAuthPassword, getBasicAuthUser, getCollection, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, process, process, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUseV2
protected String asyncId
public AsyncCollectionAdminRequest(CollectionParams.CollectionAction action)
protected CollectionAdminResponse createResponse(SolrClient client)
SolrRequest
createResponse
in class SolrRequest<CollectionAdminResponse>
client
- the SolrClient
the request will be sent topublic String getAsyncId()
public String processAsync(SolrClient client) throws IOException, SolrServerException
client
- a Solr clientIOException
SolrServerException
CollectionAdminRequest.RequestStatus
public String processAsync(String asyncId, SolrClient client) throws IOException, SolrServerException
asyncId
- the request idclient
- a Solr clientIOException
SolrServerException
public RequestStatusState processAndWait(SolrClient client, long timeoutSeconds) throws SolrServerException, InterruptedException, IOException
client
- a Solr clienttimeoutSeconds
- the maximum time to waitSolrServerException
InterruptedException
IOException
public RequestStatusState processAndWait(String asyncId, SolrClient client, long timeoutSeconds) throws IOException, SolrServerException, InterruptedException
asyncId
- an id for the requestclient
- a Solr clienttimeoutSeconds
- the maximum time to waitIOException
SolrServerException
InterruptedException
public SolrParams getParams()
getParams
in class CollectionAdminRequest<CollectionAdminResponse>
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.