Package org.infinispan.client.rest
Interface RestCacheManagerClient
- All Known Implementing Classes:
RestCacheManagerClientOkHttp
public interface RestCacheManagerClient
- Since:
- 10.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
Method Summary
Modifier and TypeMethodDescriptionbackupStatus(String site) bringBackupOnline(String backup) cacheConfigurations(String mediaType) caches()cancelPushState(String backup) default CompletionStage<RestResponse>createBackup(String name) Creates a backup file containing all resources in this container.Creates a backup file containing only the resources specified in the providedMap.default CompletionStage<RestResponse>Creates a backup file containing only the resources specified in the providedMap.deleteBackup(String name) Deletes a backup file from the server.deleteRestore(String name) Deletes a restore request from the server.Globally disables automatic rebalancing.Globally enables automatic rebalancing.Retrieves a backup file with the given name from the server.getRestore(String name) Polls a restore request progress with the given name.default CompletionStage<RestResponse>globalConfiguration(String mediaType) default CompletionStage<RestResponse>health()health(boolean skipBody) info()name()pushSiteState(String backup) default CompletionStage<RestResponse>Restores all content associated with this containers name contained within the provided backup file.Restores the specified content from the backup file that's associated with this container's name.Restores the specified content from the backup file that's associated with this container's name.stats()takeOffline(String backup)
-
Method Details
-
name
String name() -
globalConfiguration
-
globalConfiguration
-
cacheConfigurations
CompletionStage<RestResponse> cacheConfigurations() -
cacheConfigurations
-
info
CompletionStage<RestResponse> info() -
health
-
health
-
templates
-
healthStatus
CompletionStage<RestResponse> healthStatus() -
stats
CompletionStage<RestResponse> stats() -
backupStatuses
CompletionStage<RestResponse> backupStatuses() -
backupStatus
-
bringBackupOnline
-
takeOffline
-
pushSiteState
-
cancelPushState
-
caches
CompletionStage<RestResponse> caches() -
createBackup
Creates a backup file containing all resources in this container. -
createBackup
Creates a backup file containing only the resources specified in the providedMap.- Parameters:
resources- a map of BackupManager.Resources.Type with the names of the resources to backup. If the provided list only contains "*" then all available resources of that type are backed up.
-
createBackup
CompletionStage<RestResponse> createBackup(String name, String workingDir, Map<String, List<String>> resources) Creates a backup file containing only the resources specified in the providedMap.- Parameters:
workingDir- the path of the server directory to be used to create the backup content and store the final backup file. A null value indicates that the server default should be used.resources- a map of BackupManager.Resources.Type with the names of the resources to backup. If the provided list only contains "*" then all available resources of that type are backed up. A null value indicates that all resources should be included in the backup.
-
getBackup
Retrieves a backup file with the given name from the server.- Parameters:
name- the name of the backup.skipBody- if true, then a HEAD request is issued to the server and only the HTTP headers are returned.
-
getBackupNames
CompletionStage<RestResponse> getBackupNames()- Returns:
- the names of all backups.
-
deleteBackup
Deletes a backup file from the server.- Parameters:
name- the name of the backup.
-
restore
Restores all content associated with this containers name contained within the provided backup file. The backup file is uploaded via the server endpoint for processing, returning once the restoration has completed.- Parameters:
name- a unique name to identify the restore request.backup- the backupFilecontaining the data to be restored.
-
restore
Restores the specified content from the backup file that's associated with this container's name.- Parameters:
name- a unique name to identify the restore request.backup- the backupFilecontaining the data to be restored.resources- a map of BackupManager.Resources.Type with the names of the resources to backup. If the provided list only contains "*" then all available resources of that type are restored. A null value indicates that all resources in the backup should be restored.
-
restore
CompletionStage<RestResponse> restore(String name, String backupLocation, Map<String, List<String>> resources) Restores the specified content from the backup file that's associated with this container's name.- Parameters:
name- a unique name to identify the restore request.backupLocation- the path of the backup file already located on the server.resources- a map of BackupManager.Resources.Type with the names of the resources to backup. If the provided list only contains "*" then all available resources of that type are restored. A null value indicates that all resources in the backup should be restored.
-
getRestore
Polls a restore request progress with the given name. 201 indicates that the request has completed, 202 that it's in progress and 404 that it can't be found.- Parameters:
name- the name of the restore.
-
getRestoreNames
CompletionStage<RestResponse> getRestoreNames()- Returns:
- the names of all restores.
-
deleteRestore
Deletes a restore request from the server. Container content is not affected.- Parameters:
name- the name of the restore.
-
enableRebalancing
CompletionStage<RestResponse> enableRebalancing()Globally enables automatic rebalancing. -
disableRebalancing
CompletionStage<RestResponse> disableRebalancing()Globally disables automatic rebalancing.
-