@Path(value="/grid") public class GridServices extends Object
| Constructor and Description |
|---|
GridServices() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getFile(String id,
String version) |
javax.ws.rs.core.Response |
getRegisteredFile(FileVersionId fileVersionId) |
List<TokenWrapper> |
getTokens() |
void |
markTokenAsFailing(String tokenId,
String errorMessage) |
void |
register(RegistrationMessage message) |
FileVersion |
registerFile(InputStream uploadedInputStream,
org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail,
String contentType) |
void |
returnToken(String id) |
TokenWrapper |
selectToken(SelectTokenArgument argument) |
void |
unregisterFile(FileVersionId fileVersionId) |
@POST @Consumes(value="application/json") @Path(value="/register") public void register(RegistrationMessage message)
@GET
@Path(value="/file/{id}/{version}")
public javax.ws.rs.core.Response getFile(@PathParam(value="id")
String id,
@PathParam(value="version")
String version)
throws IOException,
FileManagerException
IOExceptionFileManagerException@POST @Path(value="/token/select") public TokenWrapper selectToken(SelectTokenArgument argument) throws TimeoutException, InterruptedException
TimeoutExceptionInterruptedException@POST @Path(value="/token/return") public void returnToken(String id)
@GET @Path(value="/token/list") public List<TokenWrapper> getTokens()
@POST
@Path(value="/token/{id}/error/add")
public void markTokenAsFailing(@PathParam(value="id")
String tokenId,
String errorMessage)
@POST @Path(value="/file/register") @Consumes(value="multipart/form-data") @Produces(value="application/json") public FileVersion registerFile(InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, @QueryParam(value="type") String contentType) throws FileManagerException
FileManagerException@POST @Path(value="/file/content") @Consumes(value="application/json") public javax.ws.rs.core.Response getRegisteredFile(FileVersionId fileVersionId) throws FileManagerException
FileManagerException@POST @Path(value="/file/unregister") @Consumes(value="application/json") public void unregisterFile(FileVersionId fileVersionId) throws FileManagerException
FileManagerExceptionCopyright © 2019. All rights reserved.