@Component @Path(value="/restore") public class RestoreResource extends Object
| Constructor and Description |
|---|
RestoreResource(RestoreManager restorationManager,
SnapshotManager snapshotManager) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
cancel(String restoreId) |
javax.ws.rs.core.Response |
get(String restorationId) |
javax.ws.rs.core.Response |
getBySnapshot(String snapshotId) |
javax.ws.rs.core.Response |
requestRestoreSnapshot(org.duracloud.snapshot.dto.bridge.RequestRestoreBridgeParameters params) |
javax.ws.rs.core.Response |
restart(String restoreId) |
javax.ws.rs.core.Response |
restoreComplete(String restorationId) |
javax.ws.rs.core.Response |
restoreSnapshot(org.duracloud.snapshot.dto.bridge.CreateRestoreBridgeParameters params) |
@Autowired public RestoreResource(RestoreManager restorationManager, SnapshotManager snapshotManager)
@PUT @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response restoreSnapshot(org.duracloud.snapshot.dto.bridge.CreateRestoreBridgeParameters params)
@Path(value="{restoreId}/restart")
@POST
@Produces(value="application/json")
public javax.ws.rs.core.Response restart(@PathParam(value="restoreId")
String restoreId)
@Path(value="{restoreId}/cancel")
@POST
@Produces(value="application/json")
public javax.ws.rs.core.Response cancel(@PathParam(value="restoreId")
String restoreId)
throws org.duracloud.snapshot.SnapshotException
org.duracloud.snapshot.SnapshotException@Path(value="/request") @PUT @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response requestRestoreSnapshot(org.duracloud.snapshot.dto.bridge.RequestRestoreBridgeParameters params)
@Path(value="{restorationId}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response get(@PathParam(value="restorationId")
String restorationId)
@Path(value="by-snapshot/{snapshotId}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getBySnapshot(@PathParam(value="snapshotId")
String snapshotId)
@Path(value="{restorationId}/complete")
@POST
@Produces(value="application/json")
public javax.ws.rs.core.Response restoreComplete(@PathParam(value="restorationId")
String restorationId)
Copyright © 2014–2015 DuraSpace. All rights reserved.