Class SystemJobResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.rest.resources.system.jobs.SystemJobResource
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
ConstructorDescriptionSystemJobResource
(SystemJobFactory systemJobFactory, SystemJobManager systemJobManager, NodeId nodeId, JobResourceHandlerService jobResourceHandlerService) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
acknowledgeJob
(UserContext userContext, @NotEmpty String jobId) list()
javax.ws.rs.core.Response
trigger
(@Valid @NotNull TriggerRequest tr) Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
SystemJobResource
@Inject public SystemJobResource(SystemJobFactory systemJobFactory, SystemJobManager systemJobManager, NodeId nodeId, JobResourceHandlerService jobResourceHandlerService)
-
-
Method Details
-
list
-
get
@GET @Timed @Path("/{jobId}") @Produces("application/json") public SystemJobSummary get(@PathParam("jobId") @NotEmpty @NotEmpty String jobId) -
trigger
@POST @Timed @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response trigger(@Valid @NotNull @Valid @NotNull TriggerRequest tr) -
cancel
@DELETE @Timed @Path("/{jobId}") @Produces("application/json") public SystemJobSummary cancel(@PathParam("jobId") @NotEmpty @NotEmpty String jobId) -
acknowledgeJob
@DELETE @Path("/acknowledge/{jobId}") public javax.ws.rs.core.Response acknowledgeJob(@Context UserContext userContext, @PathParam("jobId") @NotEmpty @NotEmpty String jobId)
-