Class ClusterSystemJobResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.shared.rest.resources.ProxiedResource
org.graylog2.rest.resources.cluster.ClusterSystemJobResource
@RequiresAuthentication
@Path("/cluster/jobs")
public class ClusterSystemJobResource
extends ProxiedResource
-
Nested Class Summary
Nested classes/interfaces inherited from class org.graylog2.shared.rest.resources.ProxiedResource
ProxiedResource.CallResult<ResponseType>, ProxiedResource.MasterResponse<ResponseType>, ProxiedResource.NodeResponse<ResponseType> -
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.ProxiedResource
nodeService, remoteInterfaceProviderFields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService -
Constructor Summary
ConstructorsConstructorDescriptionClusterSystemJobResource(NodeService nodeService, RemoteInterfaceProvider remoteInterfaceProvider, javax.ws.rs.core.HttpHeaders httpHeaders, ExecutorService executorService, JobResourceHandlerService jobResourceHandlerService, ServerStatus serverStatus) -
Method Summary
Modifier and TypeMethodDescriptioncancelJob(UserContext userContext, @NotEmpty String jobId) getJob(UserContext userContext, String jobId) list(UserContext userContext) Methods inherited from class org.graylog2.shared.rest.resources.ProxiedResource
authenticationToken, createRemoteInterface, doNodeApiCall, getAuthenticationToken, getDefaultProxyCallTimeout, getForAllNodes, getForAllNodes, getForAllNodes, getForAllNodes, processAsync, requestOnAllNodes, requestOnAllNodes, requestOnAllNodes, requestOnAllNodes, requestOnLeader, requestOnLeader, stripCallResultMethods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
ClusterSystemJobResource
@Inject public ClusterSystemJobResource(NodeService nodeService, RemoteInterfaceProvider remoteInterfaceProvider, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Named("proxiedRequestsExecutorService") ExecutorService executorService, JobResourceHandlerService jobResourceHandlerService, ServerStatus serverStatus) throws NodeNotFoundException - Throws:
NodeNotFoundException
-
-
Method Details
-
list
@GET @Timed @Produces("application/json") public Map<String,Optional<Map<String, listList<SystemJobSummary>>>> (@Context UserContext userContext) throws IOException, NodeNotFoundException - Throws:
IOExceptionNodeNotFoundException
-
getJob
@GET @Path("{jobId}") @Timed @Produces("application/json") public SystemJobSummary getJob(@Context UserContext userContext, @PathParam("jobId") String jobId) throws IOException - Throws:
IOException
-
cancelJob
@DELETE @Path("{jobId}") @Timed @Produces("application/json") public SystemJobSummary cancelJob(@Context UserContext userContext, @PathParam("jobId") @NotEmpty @NotEmpty String jobId) throws IOException - Throws:
IOException
-