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.DeleteBackup, CollectionAdminRequest.DeleteNode, CollectionAdminRequest.DeleteReplica, CollectionAdminRequest.DeleteReplicaProp, CollectionAdminRequest.DeleteShard, CollectionAdminRequest.DeleteSnapshot, CollectionAdminRequest.DeleteStatus, CollectionAdminRequest.DimensionalRoutedAlias, CollectionAdminRequest.ForceLeader, CollectionAdminRequest.List, CollectionAdminRequest.ListAliases, CollectionAdminRequest.ListBackup, 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.UtilizeNodeSolrRequest.METHODMapWriter.EntryWriter| Modifier and Type | Field and Description |
|---|---|
protected String |
asyncId |
protected boolean |
waitForFinalState |
action, MODIFIABLE_COLLECTION_PROPERTIES, PROPERTY_PREFIXSUPPORTED_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, deleteBackupById, deleteBackupByRecency, deleteBackupPurgeUnusedFiles, deleteCollection, deleteNode, deleteReplica, deleteReplica, deleteReplicaProperty, deleteReplicasFromAllShards, deleteReplicasFromShard, deleteShard, forceLeaderElection, getClusterStatus, getOverseerStatus, getV2Request, listBackup, listCollections, migrateCollectionFormat, migrateData, modifyCollection, moveReplica, propagateBasicAuthCreds, rebalanceLeaders, reindexCollection, reloadCollection, removeRole, renameCollection, requestStatus, restoreCollection, setAliasProperty, setClusterProperty, setCollectionProperty, splitShard, toString, waitForAsyncRequest, writeMapaddHeader, getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getHeaders, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _sizeprotected String asyncId
protected boolean waitForFinalState
public AsyncCollectionAdminRequest(CollectionParams.CollectionAction action)
protected CollectionAdminResponse createResponse(SolrClient client)
SolrRequestcreateResponse 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 clientIOExceptionSolrServerExceptionCollectionAdminRequest.RequestStatuspublic String processAsync(String asyncId, SolrClient client) throws IOException, SolrServerException
asyncId - the request idclient - a Solr clientIOExceptionSolrServerExceptionpublic RequestStatusState processAndWait(SolrClient client, long timeoutSeconds) throws SolrServerException, InterruptedException, IOException
client - a Solr clienttimeoutSeconds - the maximum time to waitSolrServerExceptionInterruptedExceptionIOExceptionpublic 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 waitIOExceptionSolrServerExceptionInterruptedExceptionpublic SolrParams getParams()
getParams in class CollectionAdminRequest<CollectionAdminResponse>Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.