@Path(value="/system/inputs") @Produces(value="application/json") @Consumes(value="application/json") public class InputsResource extends RestResource
objectMapper, serverStatus, userService| Constructor and Description |
|---|
InputsResource(InputService inputService,
InputRegistry inputRegistry,
MessageInputFactory messageInputFactory,
InputLauncher inputLauncher) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(InputLaunchRequest lr) |
void |
launchExisting(String inputId) |
InputsList |
list() |
javax.ws.rs.core.Response |
restart(String inputId) |
InputSummary |
single(String inputId) |
InputStateSummary |
stop(String inputId) |
void |
terminate(String inputId) |
javax.ws.rs.core.Response |
update(InputLaunchRequest lr,
String inputId) |
bytesToValueMap, checkPermission, checkPermission, getCurrentUser, getSubject, guessContentType, isPermitted, isPermitted, page, restrictToMaster, setPrettyPrint@Inject public InputsResource(InputService inputService, InputRegistry inputRegistry, MessageInputFactory messageInputFactory, InputLauncher inputLauncher)
@GET
@Timed
@Path(value="/{inputId}")
public InputSummary single(@PathParam(value="inputId")
String inputId)
@GET @Timed public InputsList list()
@POST
@Timed
public javax.ws.rs.core.Response create(@NotNull
InputLaunchRequest lr)
throws ValidationException
ValidationException@DELETE
@Timed
@Path(value="/{inputId}")
public void terminate(@PathParam(value="inputId")
String inputId)
@PUT
@Timed
@Path(value="/{inputId}")
public javax.ws.rs.core.Response update(@NotNull
InputLaunchRequest lr,
@PathParam(value="inputId")
String inputId)
throws ValidationException,
NotFoundException
ValidationExceptionNotFoundException@POST
@Timed
@Path(value="/{inputId}/launch")
@Produces(value="application/json")
public void launchExisting(@PathParam(value="inputId")
String inputId)
@POST
@Timed
@Path(value="/{inputId}/stop")
public InputStateSummary stop(@PathParam(value="inputId")
String inputId)
@POST
@Timed
@Path(value="/{inputId}/restart")
public javax.ws.rs.core.Response restart(@PathParam(value="inputId")
String inputId)
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.