Class RestClusterClientOkHttp
java.lang.Object
org.infinispan.client.rest.impl.okhttp.RestClusterClientOkHttp
- All Implemented Interfaces:
RestClusterClient
- Since:
- 10.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
Method Summary
Modifier and TypeMethodDescriptioncreateBackup(String name) Creates a backup file containing the content of all containers in the cluster.deleteBackup(String name) Deletes a backup file from the server.deleteRestore(String name) Deletes a restore request from the server.Retrieves a backup file with the given name from the server.getRestore(String name) Polls a restore request progress with the given name.Restores all content from a backup file, by uploading the file to the server endpoint for processing, returning once the restoration has completed.Restores all content from a backup file available to the server instance.stop()Shuts down the clusterShuts down the specified servers
-
Method Details
-
stop
Description copied from interface:RestClusterClientShuts down the cluster- Specified by:
stopin interfaceRestClusterClient
-
stop
Description copied from interface:RestClusterClientShuts down the specified servers- Specified by:
stopin interfaceRestClusterClient
-
createBackup
Description copied from interface:RestClusterClientCreates a backup file containing the content of all containers in the cluster.- Specified by:
createBackupin interfaceRestClusterClient- Parameters:
name- the name of the backup.
-
getBackup
Description copied from interface:RestClusterClientRetrieves a backup file with the given name from the server.- Specified by:
getBackupin interfaceRestClusterClient- 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 interfaceRestClusterClient- Returns:
- the names of all backups.
-
deleteBackup
Description copied from interface:RestClusterClientDeletes a backup file from the server.- Specified by:
deleteBackupin interfaceRestClusterClient- Parameters:
name- the name of the backup.
-
restore
Description copied from interface:RestClusterClientRestores all content from a backup file, by uploading the file to the server endpoint for processing, returning once the restoration has completed.- Specified by:
restorein interfaceRestClusterClient- Parameters:
name- a unique name to identify the restore request.backup- the backupFilecontaining the data to be restored.
-
restore
Description copied from interface:RestClusterClientRestores all content from a backup file available to the server instance.- Specified by:
restorein interfaceRestClusterClient- Parameters:
name- a unique name to identify the restore request.backupLocation- the path of the backup file already located on the server.
-
getRestore
Description copied from interface:RestClusterClientPolls 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 interfaceRestClusterClient- Parameters:
name- the name of the restore.
-
getRestoreNames
- Specified by:
getRestoreNamesin interfaceRestClusterClient- Returns:
- the names of all restores.
-
deleteRestore
Description copied from interface:RestClusterClientDeletes a restore request from the server. Container content is not affected.- Specified by:
deleteRestorein interfaceRestClusterClient- Parameters:
name- the name of the restore.
-
distribution
- Specified by:
distributionin interfaceRestClusterClient- Returns:
- The cluster distribution information.
-