@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(java.lang.String streamId,
CreateRequest cr) |
javax.ws.rs.core.Response |
create(CreateRequest cr) |
javax.ws.rs.core.Response |
delete(java.lang.String streamId) |
StreamListResponse |
get() |
Stream |
get(java.lang.String streamId) |
StreamListResponse |
getEnabled() |
javax.ws.rs.core.Response |
oneStreamThroughput(java.lang.String streamId) |
javax.ws.rs.core.Response |
pause(java.lang.String streamId) |
javax.ws.rs.core.Response |
resume(java.lang.String streamId) |
javax.ws.rs.core.Response |
streamThroughput() |
java.lang.String |
testMatch(java.lang.String streamId,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> serialisedMessage) |
Stream |
update(CreateRequest cr,
java.lang.String streamId) |
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 @Timed @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(CreateRequest cr) throws ValidationException
ValidationException@GET @Timed @Produces(value="application/json") public StreamListResponse get()
@GET @Path(value="/enabled") @Timed @Produces(value="application/json") public StreamListResponse getEnabled() throws NotFoundException
NotFoundException@GET
@Path(value="/{streamId}")
@Timed
@Produces(value="application/json")
public Stream get(@PathParam(value="streamId")
java.lang.String streamId)
throws NotFoundException
NotFoundException@PUT
@Timed
@Path(value="/{streamId}")
@Consumes(value="application/json")
@Produces(value="application/json")
public Stream update(CreateRequest cr,
@PathParam(value="streamId")
java.lang.String streamId)
throws NotFoundException,
ValidationException
NotFoundExceptionValidationException@DELETE
@Path(value="/{streamId}")
@Timed
public javax.ws.rs.core.Response delete(@PathParam(value="streamId")
java.lang.String streamId)
throws NotFoundException
NotFoundException@POST
@Path(value="/{streamId}/pause")
@Timed
public javax.ws.rs.core.Response pause(@PathParam(value="streamId")
java.lang.String streamId)
throws NotFoundException,
ValidationException
NotFoundExceptionValidationException@POST
@Path(value="/{streamId}/resume")
@Timed
public javax.ws.rs.core.Response resume(@PathParam(value="streamId")
java.lang.String streamId)
throws NotFoundException,
ValidationException
NotFoundExceptionValidationException@POST
@Path(value="/{streamId}/testMatch")
@Timed
public java.lang.String testMatch(@PathParam(value="streamId")
java.lang.String streamId,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> serialisedMessage)
throws NotFoundException
NotFoundException@POST
@Path(value="/{streamId}/clone")
@Timed
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response cloneStream(@PathParam(value="streamId")
java.lang.String streamId,
CreateRequest cr)
throws ValidationException,
NotFoundException
ValidationExceptionNotFoundException@GET
@Timed
@Path(value="/{streamId}/throughput")
@Produces(value="application/json")
public javax.ws.rs.core.Response oneStreamThroughput(@PathParam(value="streamId")
java.lang.String streamId)
@GET @Timed @Path(value="/throughput") @Produces(value="application/json") public javax.ws.rs.core.Response streamThroughput()
Copyright © 2012-2014 TORCH GmbH. All Rights Reserved.