public static class CollectionAdminRequest.DeleteBackup extends CollectionAdminRequest<CollectionAdminResponse>
SolrRequest
class for the "Backup Deletion" API.
Currently the API represented by this class only supports deletion of the new "incremental" backup file-format
introduced in Solr 8.9. It should not be used on locations holding "non-incremental" backups (those created prior
to 8.9, or after 8.9 using the advanced "incremental=false" flag).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.UtilizeNode
SolrRequest.METHOD
MapWriter.EntryWriter
action, MODIFIABLE_COLLECTION_PROPERTIES, PROPERTY_PREFIX
SUPPORTED_METHODS, useBinaryV2, usev2
Modifier and Type | Method and Description |
---|---|
protected CollectionAdminResponse |
createResponse(SolrClient client)
Create a new SolrResponse to hold the response from the server
|
SolrParams |
getParams() |
SolrRequest |
getV2Request()
If usev2 flag is set to true, return V2Request, if not,
return V1 request object
|
protected CollectionAdminRequest.DeleteBackup |
setBackupId(int backupId) |
CollectionAdminRequest.DeleteBackup |
setLocation(String backupLocation) |
protected CollectionAdminRequest.DeleteBackup |
setMaxNumBackupPoints(int backupPointsToRetain) |
protected CollectionAdminRequest.DeleteBackup |
setPurgeUnused()
Configures the request to delete all unused files.
|
CollectionAdminRequest.DeleteBackup |
setRepositoryName(String backupRepository) |
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, listBackup, listCollections, migrateCollectionFormat, migrateData, modifyCollection, moveReplica, propagateBasicAuthCreds, 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
public CollectionAdminRequest.DeleteBackup setRepositoryName(String backupRepository)
backupRepository
- the name of the repository implementation to use for accessing backup information.
Defaults to 'LocalFileSystemRepository' if not specified.public CollectionAdminRequest.DeleteBackup setLocation(String backupLocation)
backupLocation
- the location this request will use when accessing backup information. This parameter is not
required - if not specified on the request, Solr will attempt to read a default location
from BackupRepository configuration (solr.xml) and from cluster properties. If none of these
places provide 'location' information an error will be thrown.protected CollectionAdminRequest.DeleteBackup setBackupId(int backupId)
backupId
- the ID of a single backup-point for this request to delete. Mutually exclusive with the
parameters controlled by setMaxNumBackupPoints(int)
and setPurgeUnused()
.CollectionAdminRequest.deleteBackupById(String, int)
protected CollectionAdminRequest.DeleteBackup setMaxNumBackupPoints(int backupPointsToRetain)
backupPointsToRetain
- the number of backup-points to retain, deleting the reset. Mutually exclusive with
the parameters controlled by setBackupId(int)
and setPurgeUnused()
.CollectionAdminRequest.deleteBackupByRecency(String, int)
protected CollectionAdminRequest.DeleteBackup setPurgeUnused()
setBackupId(int)
and setMaxNumBackupPoints(int)
public SolrParams getParams()
getParams
in class CollectionAdminRequest<CollectionAdminResponse>
public SolrRequest getV2Request()
V2RequestSupport
getV2Request
in interface V2RequestSupport
getV2Request
in class CollectionAdminRequest<CollectionAdminResponse>
protected CollectionAdminResponse createResponse(SolrClient client)
SolrRequest
createResponse
in class SolrRequest<CollectionAdminResponse>
client
- the SolrClient
the request will be sent toCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.