Class SnapshotManagementController
java.lang.Object
org.gridgain.internal.rest.snapshot.SnapshotManagementController
- All Implemented Interfaces:
org.apache.ignite.internal.rest.api.snapshot.SnapshotManagementApi,org.apache.ignite.internal.rest.ResourceHolder,SecurityContextAware
@Controller("/management/v1/snapshot")
public class SnapshotManagementController
extends Object
implements org.apache.ignite.internal.rest.api.snapshot.SnapshotManagementApi, org.apache.ignite.internal.rest.ResourceHolder, SecurityContextAware
Snapshot management controller implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshotManagementController(org.gridgain.internal.snapshots.SnapshotFacade snapshotFacade, io.micronaut.security.utils.SecurityService securityService) Snapshot management controller constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(org.apache.ignite.internal.rest.api.snapshot.CreateCommand createCommand) delete(org.apache.ignite.internal.rest.api.snapshot.DeleteCommand deleteCommand) CompletableFuture<List<org.apache.ignite.internal.rest.api.snapshot.SnapshotOperation>>getOperation(UUID operationId, boolean allNodes) CompletableFuture<List<org.apache.ignite.internal.rest.api.snapshot.SnapshotOperation>>restore(org.apache.ignite.internal.rest.api.snapshot.RestoreCommand restoreCommand) io.micronaut.security.utils.SecurityServiceGet security service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gridgain.internal.rest.SecurityContextAware
secured, secured
-
Constructor Details
-
SnapshotManagementController
public SnapshotManagementController(org.gridgain.internal.snapshots.SnapshotFacade snapshotFacade, io.micronaut.security.utils.SecurityService securityService) Snapshot management controller constructor.- Parameters:
snapshotFacade- client-side API for working with Snapshots.securityService- Security service.
-
-
Method Details
-
create
public CompletableFuture<UUID> create(@Body org.apache.ignite.internal.rest.api.snapshot.CreateCommand createCommand) - Specified by:
createin interfaceorg.apache.ignite.internal.rest.api.snapshot.SnapshotManagementApi
-
getOperations
public CompletableFuture<List<org.apache.ignite.internal.rest.api.snapshot.SnapshotOperation>> getOperations()- Specified by:
getOperationsin interfaceorg.apache.ignite.internal.rest.api.snapshot.SnapshotManagementApi
-
getOperation
public CompletableFuture<List<org.apache.ignite.internal.rest.api.snapshot.SnapshotOperation>> getOperation(UUID operationId, boolean allNodes) - Specified by:
getOperationin interfaceorg.apache.ignite.internal.rest.api.snapshot.SnapshotManagementApi
-
restore
public CompletableFuture<UUID> restore(org.apache.ignite.internal.rest.api.snapshot.RestoreCommand restoreCommand) - Specified by:
restorein interfaceorg.apache.ignite.internal.rest.api.snapshot.SnapshotManagementApi
-
delete
public CompletableFuture<UUID> delete(org.apache.ignite.internal.rest.api.snapshot.DeleteCommand deleteCommand) - Specified by:
deletein interfaceorg.apache.ignite.internal.rest.api.snapshot.SnapshotManagementApi
-
cleanResources
public void cleanResources()- Specified by:
cleanResourcesin interfaceorg.apache.ignite.internal.rest.ResourceHolder
-
securityService
public io.micronaut.security.utils.SecurityService securityService()Description copied from interface:SecurityContextAwareGet security service.- Specified by:
securityServicein interfaceSecurityContextAware- Returns:
- Security service.
-