Class RestCacheManagerClientOkHttp
java.lang.Object
org.infinispan.client.rest.impl.okhttp.RestCacheManagerClientOkHttp
- All Implemented Interfaces:
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) 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.globalConfiguration(String mediaType) health()health(boolean skipBody) info()name()pushSiteState(String backup) 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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.client.rest.RestCacheManagerClient
createBackup, createBackup, globalConfiguration, restore
-
Method Details
-
name
- Specified by:
namein interfaceRestCacheManagerClient
-
globalConfiguration
- Specified by:
globalConfigurationin interfaceRestCacheManagerClient
-
cacheConfigurations
- Specified by:
cacheConfigurationsin interfaceRestCacheManagerClient
-
cacheConfigurations
- Specified by:
cacheConfigurationsin interfaceRestCacheManagerClient
-
templates
- Specified by:
templatesin interfaceRestCacheManagerClient
-
info
- Specified by:
infoin interfaceRestCacheManagerClient
-
stats
- Specified by:
statsin interfaceRestCacheManagerClient
-
backupStatuses
- Specified by:
backupStatusesin interfaceRestCacheManagerClient
-
backupStatus
- Specified by:
backupStatusin interfaceRestCacheManagerClient
-
bringBackupOnline
- Specified by:
bringBackupOnlinein interfaceRestCacheManagerClient
-
takeOffline
- Specified by:
takeOfflinein interfaceRestCacheManagerClient
-
pushSiteState
- Specified by:
pushSiteStatein interfaceRestCacheManagerClient
-
cancelPushState
- Specified by:
cancelPushStatein interfaceRestCacheManagerClient
-
health
- Specified by:
healthin interfaceRestCacheManagerClient
-
health
- Specified by:
healthin interfaceRestCacheManagerClient
-
healthStatus
- Specified by:
healthStatusin interfaceRestCacheManagerClient
-
caches
- Specified by:
cachesin interfaceRestCacheManagerClient
-
createBackup
public CompletionStage<RestResponse> createBackup(String name, String workingDir, Map<String, List<String>> resources) Description copied from interface:RestCacheManagerClientCreates a backup file containing only the resources specified in the providedMap.- Specified by:
createBackupin interfaceRestCacheManagerClientworkingDir- 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
Description copied from interface:RestCacheManagerClientRetrieves a backup file with the given name from the server.- Specified by:
getBackupin interfaceRestCacheManagerClient- 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
- Specified by:
getBackupNamesin interfaceRestCacheManagerClient- Returns:
- the names of all backups.
-
deleteBackup
Description copied from interface:RestCacheManagerClientDeletes a backup file from the server.- Specified by:
deleteBackupin interfaceRestCacheManagerClient- Parameters:
name- the name of the backup.
-
restore
public CompletionStage<RestResponse> restore(String name, File backup, Map<String, List<String>> resources) Description copied from interface:RestCacheManagerClientRestores the specified content from the backup file that's associated with this container's name.- Specified by:
restorein interfaceRestCacheManagerClient- 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
public CompletionStage<RestResponse> restore(String name, String backupLocation, Map<String, List<String>> resources) Description copied from interface:RestCacheManagerClientRestores the specified content from the backup file that's associated with this container's name.- Specified by:
restorein interfaceRestCacheManagerClient- 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
Description copied from interface:RestCacheManagerClientPolls 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.- Specified by:
getRestorein interfaceRestCacheManagerClient- Parameters:
name- the name of the restore.
-
getRestoreNames
- Specified by:
getRestoreNamesin interfaceRestCacheManagerClient- Returns:
- the names of all restores.
-
deleteRestore
Description copied from interface:RestCacheManagerClientDeletes a restore request from the server. Container content is not affected.- Specified by:
deleteRestorein interfaceRestCacheManagerClient- Parameters:
name- the name of the restore.
-
enableRebalancing
Description copied from interface:RestCacheManagerClientGlobally enables automatic rebalancing.- Specified by:
enableRebalancingin interfaceRestCacheManagerClient
-
disableRebalancing
Description copied from interface:RestCacheManagerClientGlobally disables automatic rebalancing.- Specified by:
disableRebalancingin interfaceRestCacheManagerClient
-