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.ListSnapshots, CollectionAdminRequest.Migrate, CollectionAdminRequest.MigrateClusterState, CollectionAdminRequest.OverseerStatus, CollectionAdminRequest.RebalanceLeaders, CollectionAdminRequest.Reload, CollectionAdminRequest.RemoveRole, CollectionAdminRequest.ReplaceNode, CollectionAdminRequest.RequestStatus, CollectionAdminRequest.RequestStatusResponse, CollectionAdminRequest.Restore, CollectionAdminRequest.ShardSpecificAdminRequest, CollectionAdminRequest.SplitShard
SolrRequest.METHOD
Modifier and Type | Field and Description |
---|---|
protected String |
asyncId |
action
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
|
CollectionAdminRequest.AsyncCollectionAdminRequest |
setAsyncId(String id)
Deprecated.
|
addProperties, addReplicaByRouteKey, addReplicaProperty, addReplicaToShard, addRole, backupCollection, balanceReplicaProperty, createAlias, createCollection, createCollection, createCollectionWithImplicitRouter, createShard, deleteAlias, deleteAllAsyncIds, deleteAsyncId, deleteCollection, deleteReplica, deleteReplicaProperty, deleteReplicasFromAllShards, deleteReplicasFromShard, deleteShard, forceLeaderElection, getClusterStatus, getContentStreams, getOverseerStatus, listCollections, migrateCollectionFormat, migrateData, rebalanceLeaders, reloadCollection, removeRole, requestStatus, restoreCollection, setClusterProperty, splitShard, waitForAsyncRequest
getBasicAuthPassword, getBasicAuthUser, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, process, process, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback
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()
@Deprecated public CollectionAdminRequest.AsyncCollectionAdminRequest setAsyncId(String id)
processAsync(String, SolrClient)
or processAsync(SolrClient)
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.