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 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:
      create in interface org.apache.ignite.internal.rest.api.snapshot.SnapshotManagementApi
    • getOperations

      public CompletableFuture<List<org.apache.ignite.internal.rest.api.snapshot.SnapshotOperation>> getOperations()
      Specified by:
      getOperations in interface org.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:
      getOperation in interface org.apache.ignite.internal.rest.api.snapshot.SnapshotManagementApi
    • restore

      public CompletableFuture<UUID> restore(org.apache.ignite.internal.rest.api.snapshot.RestoreCommand restoreCommand)
      Specified by:
      restore in interface org.apache.ignite.internal.rest.api.snapshot.SnapshotManagementApi
    • delete

      public CompletableFuture<UUID> delete(org.apache.ignite.internal.rest.api.snapshot.DeleteCommand deleteCommand)
      Specified by:
      delete in interface org.apache.ignite.internal.rest.api.snapshot.SnapshotManagementApi
    • cleanResources

      public void cleanResources()
      Specified by:
      cleanResources in interface org.apache.ignite.internal.rest.ResourceHolder
    • securityService

      public io.micronaut.security.utils.SecurityService securityService()
      Description copied from interface: SecurityContextAware
      Get security service.
      Specified by:
      securityService in interface SecurityContextAware
      Returns:
      Security service.