Class InaTapeProxyResource
java.lang.Object
fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
fr.gouv.vitam.storage.cold.server.rest.InaTapeProxyResource
@Path("/ina-tape-proxy/v1")
@Produces("application/json")
@Consumes("application/json")
public class InaTapeProxyResource
extends ApplicationStatusResource
JAX-RS Resource implementation for INA Tape Proxy
-
Field Summary
Fields inherited from class fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
STATUS_URL, TENANTS_URL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responseeject(int driveIndex) getDriveStatus(int driveIndex) jakarta.ws.rs.core.ResponsegoToEnd(int driveIndex) jakarta.ws.rs.core.ResponseloadTape(int slotNumber, int drive) jakarta.ws.rs.core.Responsemove(int driveIndex, int position, boolean backward) jakarta.ws.rs.core.ResponsereadFromTape(int driveIndex, String outputPath) jakarta.ws.rs.core.Responserewind(int driveIndex) jakarta.ws.rs.core.ResponsetapeOrder(List<TapeOrderModel> tapeOrders) jakarta.ws.rs.core.ResponseunloadTape(int slotNumber, int driveIndex) jakarta.ws.rs.core.ResponsewriteToTape(int driveIndex, String inputPath) Methods inherited from class fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
getServerTenants, status
-
Constructor Details
-
InaTapeProxyResource
-
-
Method Details
-
getDriveStatus
@GET @Path("drive/{driveIndex}/status") public TapeDriveState getDriveStatus(@PathParam("driveIndex") int driveIndex) throws InaTapeProxyException - Throws:
InaTapeProxyException
-
move
@POST @Path("drive/{driveIndex}/move") public jakarta.ws.rs.core.Response move(@PathParam("driveIndex") int driveIndex, @QueryParam("position") int position, @QueryParam("backward") boolean backward) throws InaTapeProxyException - Throws:
InaTapeProxyException
-
rewind
@POST @Path("drive/{driveIndex}/rewind") public jakarta.ws.rs.core.Response rewind(@PathParam("driveIndex") int driveIndex) throws InaTapeProxyException - Throws:
InaTapeProxyException
-
goToEnd
@POST @Path("drive/{driveIndex}/eod") public jakarta.ws.rs.core.Response goToEnd(@PathParam("driveIndex") int driveIndex) throws InaTapeProxyException - Throws:
InaTapeProxyException
-
eject
@POST @Path("drive/{driveIndex}/eject") public jakarta.ws.rs.core.Response eject(@PathParam("driveIndex") int driveIndex) throws InaTapeProxyException - Throws:
InaTapeProxyException
-
getLibraryStatus
@GET @Path("library/status") public TapeLibraryState getLibraryStatus() throws InaTapeProxyException- Throws:
InaTapeProxyException
-
loadTape
@POST @Path("library/load") public jakarta.ws.rs.core.Response loadTape(@QueryParam("slotNumber") int slotNumber, @QueryParam("drive") int drive) throws InaTapeProxyException - Throws:
InaTapeProxyException
-
unloadTape
@POST @Path("library/unload") public jakarta.ws.rs.core.Response unloadTape(@QueryParam("slotNumber") int slotNumber, @QueryParam("drive") int driveIndex) throws InaTapeProxyException - Throws:
InaTapeProxyException
-
writeToTape
@POST @Path("drives/{driveIndex}/io/write") public jakarta.ws.rs.core.Response writeToTape(@PathParam("driveIndex") int driveIndex, @QueryParam("inputPath") String inputPath) throws InaTapeProxyException - Throws:
InaTapeProxyException
-
readFromTape
@GET @Path("drives/{driveIndex}/io/read") public jakarta.ws.rs.core.Response readFromTape(@PathParam("driveIndex") int driveIndex, @QueryParam("outputPath") String outputPath) throws InaTapeProxyException - Throws:
InaTapeProxyException
-
tapeOrder
@POST @Path("tapeorder") public jakarta.ws.rs.core.Response tapeOrder(List<TapeOrderModel> tapeOrders) throws InaTapeProxyException - Throws:
InaTapeProxyException
-