Class RestoreResource
- java.lang.Object
-
- org.duracloud.snapshot.bridge.rest.RestoreResource
-
@Component @Path("/restore") public class RestoreResource extends ObjectDefines the REST resource layer for interacting with the Snapshot processing engine.- Author:
- Daniel Bernstein Date: Feb 4, 2014
-
-
Constructor Summary
Constructors Constructor Description RestoreResource(org.duracloud.snapshot.service.RestoreManager restorationManager, org.duracloud.snapshot.service.SnapshotManager snapshotManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsecancel(String restoreId)javax.ws.rs.core.Responseget(String restorationId)javax.ws.rs.core.ResponsegetBySnapshot(String snapshotId)javax.ws.rs.core.ResponserequestRestoreSnapshot(org.duracloud.snapshot.dto.bridge.RequestRestoreBridgeParameters params)javax.ws.rs.core.Responserestart(String restoreId)javax.ws.rs.core.ResponserestoreComplete(String restorationId)javax.ws.rs.core.ResponserestoreSnapshot(org.duracloud.snapshot.dto.bridge.CreateRestoreBridgeParameters params)
-
-
-
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)
-
-