@Path(value="/system/jobs") public class SystemJobResource extends RestResource
objectMapper, userService| Constructor and Description |
|---|
SystemJobResource(SystemJobFactory systemJobFactory,
SystemJobManager systemJobManager,
NodeId nodeId) |
| Modifier and Type | Method and Description |
|---|---|
SystemJobSummary |
cancel(String jobId) |
SystemJobSummary |
get(String jobId) |
Map<String,List<SystemJobSummary>> |
list() |
javax.ws.rs.core.Response |
trigger(TriggerRequest tr) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public SystemJobResource(SystemJobFactory systemJobFactory, SystemJobManager systemJobManager, NodeId nodeId)
@GET @Timed @Produces(value="application/json") public Map<String,List<SystemJobSummary>> list()
@GET
@Timed
@Path(value="/{jobId}")
@Produces(value="application/json")
public SystemJobSummary get(@PathParam(value="jobId") @NotEmpty
String jobId)
@POST
@Timed
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response trigger(@NotNull
TriggerRequest tr)
@DELETE
@Timed
@Path(value="/{jobId}")
@Produces(value="application/json")
public SystemJobSummary cancel(@PathParam(value="jobId") @NotEmpty
String jobId)
Copyright © 2012-2016 Graylog, Inc.. All Rights Reserved.