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.CollectionProp, CollectionAdminRequest.ColStatus, CollectionAdminRequest.Create, CollectionAdminRequest.CreateAlias, CollectionAdminRequest.CreateCategoryRoutedAlias, CollectionAdminRequest.CreateShard, CollectionAdminRequest.CreateSnapshot, CollectionAdminRequest.CreateTimeRoutedAlias, CollectionAdminRequest.Delete, CollectionAdminRequest.DeleteAlias, CollectionAdminRequest.DeleteNode, CollectionAdminRequest.DeleteReplica, CollectionAdminRequest.DeleteReplicaProp, CollectionAdminRequest.DeleteShard, CollectionAdminRequest.DeleteSnapshot, CollectionAdminRequest.DeleteStatus, CollectionAdminRequest.DimensionalRoutedAlias, CollectionAdminRequest.ForceLeader, CollectionAdminRequest.List, CollectionAdminRequest.ListAliases, CollectionAdminRequest.ListSnapshots, CollectionAdminRequest.Migrate, CollectionAdminRequest.MigrateClusterState, CollectionAdminRequest.Modify, CollectionAdminRequest.MoveReplica, CollectionAdminRequest.OverseerStatus, CollectionAdminRequest.RebalanceLeaders, CollectionAdminRequest.ReindexCollection, CollectionAdminRequest.Reload, CollectionAdminRequest.RemoveRole, CollectionAdminRequest.Rename, CollectionAdminRequest.ReplaceNode, CollectionAdminRequest.RequestStatus, CollectionAdminRequest.RequestStatusResponse, CollectionAdminRequest.Restore, CollectionAdminRequest.RoutedAliasAdminRequest, CollectionAdminRequest.SetAliasProperty, CollectionAdminRequest.ShardSpecificAdminRequest, CollectionAdminRequest.SplitShard, CollectionAdminRequest.UtilizeNode
SolrRequest.METHOD
MapWriter.EntryWriter
Modifier and Type | Field and Description |
---|---|
protected String |
asyncId |
protected boolean |
waitForFinalState |
action, MODIFIABLE_COLLECTION_PROPERTIES, PROPERTY_PREFIX
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
|
void |
setAsyncId(String asyncId) |
void |
setWaitForFinalState(boolean waitForFinalState) |
addProperties, addReplicaByRouteKey, addReplicaProperty, addReplicaToShard, addReplicaToShard, addRole, backupCollection, balanceReplicaProperty, collectionStatus, collectionStatuses, createAlias, createCategoryRoutedAlias, createCollection, createCollection, createCollection, createCollectionWithImplicitRouter, createCollectionWithImplicitRouter, createDimensionalRoutedAlias, createShard, createTimeRoutedAlias, deleteAlias, deleteAllAsyncIds, deleteAsyncId, deleteCollection, deleteNode, deleteReplica, deleteReplica, deleteReplicaProperty, deleteReplicasFromAllShards, deleteReplicasFromShard, deleteShard, forceLeaderElection, getClusterStatus, getOverseerStatus, getV2Request, listCollections, migrateCollectionFormat, migrateData, modifyCollection, moveReplica, rebalanceLeaders, reindexCollection, reloadCollection, removeRole, renameCollection, requestStatus, restoreCollection, setAliasProperty, setClusterProperty, setCollectionProperty, splitShard, toString, waitForAsyncRequest, writeMap
addHeader, getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getHeaders, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
protected String asyncId
protected boolean waitForFinalState
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 void setWaitForFinalState(boolean waitForFinalState)
public void setAsyncId(String asyncId)
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-2021 Apache Software Foundation. All Rights Reserved.