@Path(value="/streams") public class StreamResource extends RestResource
objectMapper, serverStatus, userService| Constructor and Description |
|---|
StreamResource(StreamService streamService,
StreamRuleService streamRuleService,
ThroughputStats throughputStats,
StreamRouter streamRouter) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
cloneStream(String streamId,
CreateRequest cr) |
javax.ws.rs.core.Response |
create(CreateRequest cr) |
javax.ws.rs.core.Response |
delete(String streamId) |
StreamListResponse |
get() |
Stream |
get(String streamId) |
StreamListResponse |
getEnabled() |
javax.ws.rs.core.Response |
oneStreamThroughput(String streamId) |
javax.ws.rs.core.Response |
pause(String streamId) |
javax.ws.rs.core.Response |
resume(String streamId) |
javax.ws.rs.core.Response |
streamThroughput() |
String |
testMatch(String streamId,
Map<String,Map<String,Object>> serialisedMessage) |
Stream |
update(CreateRequest cr,
String streamId) |
buildHistogramMap, buildMeterMap, buildTimerMap, bytesToValueMap, checkPermission, checkPermission, getCurrentUser, getSubject, guessContentType, isPermitted, isPermitted, json, loadObjectId, page, restrictToMaster, setPrettyPrint@Inject public StreamResource(StreamService streamService, StreamRuleService streamRuleService, ThroughputStats throughputStats, StreamRouter streamRouter)
@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(CreateRequest cr) throws ValidationException
ValidationException@GET @Produces(value="application/json") public StreamListResponse get()
@GET @Path(value="/enabled") @Produces(value="application/json") public StreamListResponse getEnabled() throws NotFoundException
NotFoundException@GET
@Path(value="/{streamId}")
@Produces(value="application/json")
public Stream get(@PathParam(value="streamId")
String streamId)
throws NotFoundException
NotFoundException@PUT
@Path(value="/{streamId}")
@Consumes(value="application/json")
@Produces(value="application/json")
public Stream update(CreateRequest cr,
@PathParam(value="streamId")
String streamId)
throws NotFoundException,
ValidationException
NotFoundExceptionValidationException@DELETE
@Path(value="/{streamId}")
public javax.ws.rs.core.Response delete(@PathParam(value="streamId")
String streamId)
throws NotFoundException
NotFoundException@POST
@Path(value="/{streamId}/pause")
public javax.ws.rs.core.Response pause(@PathParam(value="streamId")
String streamId)
throws NotFoundException,
ValidationException
NotFoundExceptionValidationException@POST
@Path(value="/{streamId}/resume")
public javax.ws.rs.core.Response resume(@PathParam(value="streamId")
String streamId)
throws NotFoundException,
ValidationException
NotFoundExceptionValidationException@POST
@Path(value="/{streamId}/testMatch")
public String testMatch(@PathParam(value="streamId")
String streamId,
Map<String,Map<String,Object>> serialisedMessage)
throws NotFoundException
NotFoundException@POST
@Path(value="/{streamId}/clone")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response cloneStream(@PathParam(value="streamId")
String streamId,
CreateRequest cr)
throws ValidationException,
NotFoundException
ValidationExceptionNotFoundException@GET
@Path(value="/{streamId}/throughput")
@Produces(value="application/json")
public javax.ws.rs.core.Response oneStreamThroughput(@PathParam(value="streamId")
String streamId)
@GET @Path(value="/throughput") @Produces(value="application/json") public javax.ws.rs.core.Response streamThroughput()
Copyright © 2012–2014 TORCH GmbH. All rights reserved.