Interface BackupActuator
public interface BackupActuator
Java interface for the node's backup actuator. To instantiate this interface, you can use
Feign; see of(String) as an example.
You can use one of of(String) or of(ZeebeNode) to create a new client to use
for yourself.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classCustom error handler, mapping errors with body to custom types for easier verification/handling.static final class -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(long id) list()static BackupActuatorof(TestApplication<?> node) Returns aBackupActuatorinstance using the given node as upstream.static BackupActuatorof(io.zeebe.containers.ZeebeNode<?> node) Returns aBackupActuatorinstance using the given node as upstream.static BackupActuatorReturns aBackupActuatorinstance using the given endpoint as upstream.static BackupActuatorReturns aBackupActuatorinstance using the given node as upstream.status(long id) take(long backupId) Triggers taking a backup of the cluster.
-
Method Details
-
of
Returns aBackupActuatorinstance using the given node as upstream.- Parameters:
node- the node to connect to- Returns:
- a new instance of
BackupActuator
-
ofAddress
Returns aBackupActuatorinstance using the given node as upstream.- Parameters:
address- the monitoring address- Returns:
- a new instance of
BackupActuator
-
of
Returns aBackupActuatorinstance using the given node as upstream.- Parameters:
node- the node to connect to- Returns:
- a new instance of
BackupActuator
-
of
Returns aBackupActuatorinstance using the given endpoint as upstream. The endpoint is expected to be a complete absolute URL, e.g. "http://localhost:9600/actuator/backups".- Parameters:
endpoint- the actuator URL to connect to- Returns:
- a new instance of
BackupActuator
-
take
Triggers taking a backup of the cluster.- Throws:
feign.FeignException- if the request is not successful (e.g. 4xx or 5xx)
-
status
-
list
List<BackupInfo> list() -
list
-
delete
void delete(long id)
-