@Path(value="/streams") public class StreamResource extends RestResource
objectMapper, serverStatus, userService| Constructor and Description |
|---|
StreamResource(StreamService streamService,
StreamRuleService streamRuleService,
StreamRouterEngine.Factory streamRouterEngineFactory,
ThroughputStats throughputStats) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
cloneStream(String streamId,
CloneStreamRequest cr) |
javax.ws.rs.core.Response |
create(CreateStreamRequest cr) |
void |
delete(String streamId) |
StreamListResponse |
get() |
Stream |
get(String streamId) |
StreamListResponse |
getEnabled() |
Map<String,Long> |
oneStreamThroughput(String streamId) |
void |
pause(String streamId) |
void |
resume(String streamId) |
Map<String,Map<String,Long>> |
streamThroughput() |
TestMatchResponse |
testMatch(String streamId,
Map<String,Map<String,Object>> serialisedMessage) |
Stream |
update(String streamId,
UpdateStreamRequest cr) |
bytesToValueMap, checkPermission, checkPermission, getCurrentUser, getSubject, guessContentType, isPermitted, isPermitted, page, restrictToMaster, setPrettyPrint@Inject public StreamResource(StreamService streamService, StreamRuleService streamRuleService, StreamRouterEngine.Factory streamRouterEngineFactory, ThroughputStats throughputStats)
@POST @Timed @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(CreateStreamRequest 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")@NotEmpty
String streamId)
throws NotFoundException
NotFoundException@PUT
@Timed
@Path(value="/{streamId}")
@Consumes(value="application/json")
@Produces(value="application/json")
public Stream update(@PathParam(value="streamId")
String streamId,
@NotNull
UpdateStreamRequest cr)
throws NotFoundException,
ValidationException
NotFoundExceptionValidationException@DELETE
@Path(value="/{streamId}")
@Timed
public void delete(@PathParam(value="streamId")
String streamId)
throws NotFoundException
NotFoundException@POST
@Path(value="/{streamId}/pause")
@Timed
public void pause(@PathParam(value="streamId")@NotEmpty
String streamId)
throws NotFoundException,
ValidationException
NotFoundExceptionValidationException@POST
@Path(value="/{streamId}/resume")
@Timed
public void resume(@PathParam(value="streamId")@NotEmpty
String streamId)
throws NotFoundException,
ValidationException
NotFoundExceptionValidationException@POST
@Path(value="/{streamId}/testMatch")
@Timed
public TestMatchResponse testMatch(@PathParam(value="streamId")
String streamId,
@NotNull
Map<String,Map<String,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")
String streamId,
@NotNull
CloneStreamRequest cr)
throws ValidationException,
NotFoundException
ValidationExceptionNotFoundException@GET
@Timed
@Path(value="/{streamId}/throughput")
@Produces(value="application/json")
public Map<String,Long> oneStreamThroughput(@PathParam(value="streamId")
String streamId)
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.