Class ClusterLookupTableResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.shared.rest.resources.ProxiedResource
org.graylog2.rest.resources.cluster.ClusterLookupTableResource
@RequiresAuthentication
@Path("/cluster/system/lookup")
@Produces("application/json")
public class ClusterLookupTableResource
extends ProxiedResource
The primary objective of this API is to provide facilities for managing Lookup Tables on the cluster level.
Originally was introduced to perform cluster-wide Cache purging.
-
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, remoteInterfaceProvider
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
ConstructorDescriptionClusterLookupTableResource
(NodeService nodeService, RemoteInterfaceProvider remoteInterfaceProvider, javax.ws.rs.core.HttpHeaders httpHeaders, ExecutorService executorService) -
Method Summary
Modifier and TypeMethodDescriptionperformPurge
(@NotEmpty String idOrName, String key) CallsLookupTableResource.performPurge(String, String)
on all active nodes and returns results per nodeMethods 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, stripCallResult
Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
ClusterLookupTableResource
@Inject public ClusterLookupTableResource(NodeService nodeService, RemoteInterfaceProvider remoteInterfaceProvider, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Named("proxiedRequestsExecutorService") ExecutorService executorService) throws NodeNotFoundException - Throws:
NodeNotFoundException
-
-
Method Details
-
performPurge
@POST @Timed @Path("tables/{idOrName}/purge") @RequiresPermissions("lookuptables:read") public Map<String,ProxiedResource.CallResult<Void>> performPurge(@PathParam("idOrName") @NotEmpty @NotEmpty String idOrName, @QueryParam("key") String key) CallsLookupTableResource.performPurge(String, String)
on all active nodes and returns results per node
-