@Path(value="/broker/request") public class RequestAdminEndpoint extends AbstractRequestEndpoint
| Constructor and Description |
|---|
RequestAdminEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearRequestTargetNodes(Integer requestId)
Delete a restriction to certain target nodes.
|
void |
closeRequest(Integer requestId) |
javax.ws.rs.core.Response |
createRequest(Reader content,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo info) |
javax.ws.rs.core.Response |
createRequest(String requestId,
Reader content,
javax.ws.rs.core.HttpHeaders headers) |
String |
debugReturnRequestHeaders(javax.ws.rs.core.HttpHeaders headers) |
javax.ws.rs.core.Response |
deleteRequest(String id) |
protected BrokerBackend |
getBroker() |
javax.ws.rs.core.Response |
getRequest(Integer requestId,
javax.ws.rs.core.HttpHeaders headers) |
RequestStatusList |
getRequestInfo(Integer requestId)
List status information for the specified request for each node
|
javax.ws.rs.core.Response |
getRequestInfo(int requestId,
javax.ws.rs.core.HttpHeaders headers) |
javax.ws.rs.core.Response |
getRequestNodeStatusMessage(Integer requestId,
Integer nodeId) |
RequestTargetNodes |
getRequestTargetNodes(Integer requestId)
Get the targeted nodes for this request.
|
protected RequestTypeManager |
getTypeManager() |
javax.ws.rs.core.Response |
listAllRequests() |
void |
publishRequest(Integer requestId) |
void |
setRequestTargetNodes(Integer requestId,
RequestTargetNodes nodes) |
getRequest, removeCharsetInfo@POST public javax.ws.rs.core.Response createRequest(Reader content, @Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo info) throws URISyntaxException
URISyntaxException@GET @Path(value="headers") @Produces(value="text/plain") public String debugReturnRequestHeaders(@Context javax.ws.rs.core.HttpHeaders headers)
@PUT
@Path(value="{id}")
public javax.ws.rs.core.Response createRequest(@PathParam(value="id")
String requestId,
Reader content,
@Context
javax.ws.rs.core.HttpHeaders headers)
throws URISyntaxException
URISyntaxException@GET @Produces(value="application/xml") public javax.ws.rs.core.Response listAllRequests()
@DELETE
@Path(value="{id}")
public javax.ws.rs.core.Response deleteRequest(@PathParam(value="id")
String id)
@GET
@Path(value="{id}")
public javax.ws.rs.core.Response getRequest(@PathParam(value="id")
Integer requestId,
@Context
javax.ws.rs.core.HttpHeaders headers)
throws SQLException,
IOException,
javax.ws.rs.NotFoundException
SQLExceptionIOExceptionjavax.ws.rs.NotFoundException@OPTIONS
@Path(value="{id}")
public javax.ws.rs.core.Response getRequestInfo(@PathParam(value="id")
int requestId,
@Context
javax.ws.rs.core.HttpHeaders headers)
throws SQLException,
IOException
SQLExceptionIOException@GET
@Path(value="{id}/status")
@Produces(value="application/xml")
public RequestStatusList getRequestInfo(@PathParam(value="id")
Integer requestId)
throws SQLException,
IOException
requestId - requestSQLException - SQL errorIOException - IO error@GET
@Path(value="{id}/nodes")
@Produces(value="application/xml")
public RequestTargetNodes getRequestTargetNodes(@PathParam(value="id")
Integer requestId)
throws SQLException,
IOException,
javax.ws.rs.NotFoundException
requestId - requestSQLException - SQL errorIOException - IO errorjavax.ws.rs.NotFoundException - if the request is not targeted at specific nodes@DELETE
@Path(value="{id}/nodes")
public void clearRequestTargetNodes(@PathParam(value="id")
Integer requestId)
throws SQLException,
IOException,
javax.ws.rs.NotFoundException
requestId - request idSQLException - SQL errorIOException - IO errorjavax.ws.rs.NotFoundException - request not found or request not targeted at specific nodes@PUT
@Path(value="{id}/nodes")
@Consumes(value="application/xml")
public void setRequestTargetNodes(@PathParam(value="id")
Integer requestId,
RequestTargetNodes nodes)
throws SQLException,
IOException,
javax.ws.rs.NotFoundException
SQLExceptionIOExceptionjavax.ws.rs.NotFoundException@GET
@Path(value="{id}/status/{nodeId}")
public javax.ws.rs.core.Response getRequestNodeStatusMessage(@PathParam(value="id")
Integer requestId,
@PathParam(value="nodeId")
Integer nodeId)
throws SQLException,
IOException
SQLExceptionIOException@POST
@Path(value="{id}/publish")
public void publishRequest(@PathParam(value="id")
Integer requestId)
throws SQLException
SQLException@POST
@Path(value="{id}/close")
public void closeRequest(@PathParam(value="id")
Integer requestId)
throws SQLException
SQLExceptionprotected RequestTypeManager getTypeManager()
getTypeManager in class AbstractRequestEndpointprotected BrokerBackend getBroker()
getBroker in class AbstractRequestEndpointCopyright © 2014–2019 Uniklinik RWTH Aachen. All rights reserved.