@Path(value="/report/storage") @Component public class StorageReportRest extends BaseRest
APP_NAME, APPLICATION_XML, headers, request, TEXT_PLAIN, uriInfo, XML
Constructor and Description |
---|
StorageReportRest(StorageReportResource resource) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
cancelStorageReport()
Cancels a running storage report.
|
javax.ws.rs.core.Response |
cancelStorageReportSchedule()
Cancels the storage report schedule.
|
javax.ws.rs.core.Response |
getLatestStorageReport()
Retrieves the latest completed storage report.
|
javax.ws.rs.core.Response |
getStorageReport(String reportId)
Retrieves a storage report.
|
javax.ws.rs.core.Response |
getStorageReportInfo()
Retrieves information about storage reporting activities.
|
javax.ws.rs.core.Response |
getStorageReportList()
Retrieves the list of storage report IDs.
|
javax.ws.rs.core.Response |
scheduleStorageReport(long startTime,
long frequency)
Sets up a schedule of storage reports to be run, based on a starting
time and the frequency at which the report should be run afterward.
|
javax.ws.rs.core.Response |
startStorageReport()
Indicates that a new storage report should be started.
|
responseBad, responseBad, responseBad, responseBadRequest, responseNotFound, responseNotFound, responseOk, responseOk, responseOkStream, responseOkXml, responseOkXmlStream
@Autowired public StorageReportRest(StorageReportResource resource)
@GET @Produces(value="application/xml") public javax.ws.rs.core.Response getLatestStorageReport()
@Path(value="/list") @GET @Produces(value="application/xml") public javax.ws.rs.core.Response getStorageReportList()
@Path(value="/{reportID: [^?]+}") @GET @Produces(value="application/xml") public javax.ws.rs.core.Response getStorageReport(@PathParam(value="reportID") String reportId)
@Path(value="/info") @GET @Produces(value="application/xml") public javax.ws.rs.core.Response getStorageReportInfo()
@POST public javax.ws.rs.core.Response startStorageReport()
@DELETE public javax.ws.rs.core.Response cancelStorageReport()
@Path(value="/schedule") @POST public javax.ws.rs.core.Response scheduleStorageReport(@QueryParam(value="startTime") long startTime, @QueryParam(value="frequency") long frequency)
@Path(value="/schedule") @DELETE public javax.ws.rs.core.Response cancelStorageReportSchedule()
Copyright © 2009–2016 DuraSpace. All rights reserved.