Class ClusterInputStatesResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.shared.rest.resources.ProxiedResource
org.graylog2.rest.resources.cluster.ClusterInputStatesResource
@RequiresAuthentication
@Path("/cluster/inputstates")
@Produces("application/json")
public class ClusterInputStatesResource
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
ConstructorsConstructorDescriptionClusterInputStatesResource(NodeService nodeService, RemoteInterfaceProvider remoteInterfaceProvider, javax.ws.rs.core.HttpHeaders httpHeaders, ExecutorService executorService) -
Method Summary
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
-
ClusterInputStatesResource
@Inject public ClusterInputStatesResource(NodeService nodeService, RemoteInterfaceProvider remoteInterfaceProvider, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Named("proxiedRequestsExecutorService") ExecutorService executorService)
-
-
Method Details
-
get
@GET @Timed @RequiresPermissions("inputs:read") public Map<String,Optional<Set<InputStateSummary>>> get() -
start
@PUT @Path("/{inputId}") @Timed public Map<String,Optional<InputCreated>> start(@PathParam("inputId") String inputId) -
stop
@DELETE @Path("/{inputId}") @Timed public Map<String,Optional<InputDeleted>> stop(@PathParam("inputId") String inputId)
-