Class RestoreResource


  • @Component
    @Path("/restore")
    public class RestoreResource
    extends Object
    Defines the REST resource layer for interacting with the Snapshot processing engine.
    Author:
    Daniel Bernstein Date: Feb 4, 2014
    • Constructor Detail

      • RestoreResource

        @Autowired
        public RestoreResource​(org.duracloud.snapshot.service.RestoreManager restorationManager,
                               org.duracloud.snapshot.service.SnapshotManager snapshotManager)
    • Method Detail

      • restoreSnapshot

        @PUT
        @Produces("application/json")
        @Consumes("application/json")
        public javax.ws.rs.core.Response restoreSnapshot​(org.duracloud.snapshot.dto.bridge.CreateRestoreBridgeParameters params)
      • restart

        @Path("{restoreId}/restart")
        @POST
        @Produces("application/json")
        public javax.ws.rs.core.Response restart​(@PathParam("restoreId")
                                                 String restoreId)
      • cancel

        @Path("{restoreId}/cancel")
        @POST
        @Produces("application/json")
        public javax.ws.rs.core.Response cancel​(@PathParam("restoreId")
                                                String restoreId)
                                         throws org.duracloud.snapshot.SnapshotException
        Throws:
        org.duracloud.snapshot.SnapshotException
      • requestRestoreSnapshot

        @Path("/request")
        @PUT
        @Produces("application/json")
        @Consumes("application/json")
        public javax.ws.rs.core.Response requestRestoreSnapshot​(org.duracloud.snapshot.dto.bridge.RequestRestoreBridgeParameters params)
      • get

        @Path("{restorationId}")
        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response get​(@PathParam("restorationId")
                                             String restorationId)
      • getBySnapshot

        @Path("by-snapshot/{snapshotId}")
        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response getBySnapshot​(@PathParam("snapshotId")
                                                       String snapshotId)
      • restoreComplete

        @Path("{restorationId}/complete")
        @POST
        @Produces("application/json")
        public javax.ws.rs.core.Response restoreComplete​(@PathParam("restorationId")
                                                         String restorationId)