Class IndexRangesResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.rest.resources.system.IndexRangesResource
@RequiresAuthentication
@Path("/system/indices/ranges")
public class IndexRangesResource
extends RestResource
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
ConstructorDescriptionIndexRangesResource
(IndexRangeService indexRangeService, RebuildIndexRangesJob.Factory rebuildIndexRangesJobFactory, CreateNewSingleIndexRangeJob.Factory singleIndexRangeJobFactory, IndexSetRegistry indexSetRegistry, SystemJobManager systemJobManager) -
Method Summary
Modifier and TypeMethodDescriptionlist()
javax.ws.rs.core.Response
rebuild()
javax.ws.rs.core.Response
rebuildIndex
(@NotEmpty String index) javax.ws.rs.core.Response
rebuildIndexSet
(@NotBlank String indexSetId) Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
IndexRangesResource
@Inject public IndexRangesResource(IndexRangeService indexRangeService, RebuildIndexRangesJob.Factory rebuildIndexRangesJobFactory, CreateNewSingleIndexRangeJob.Factory singleIndexRangeJobFactory, IndexSetRegistry indexSetRegistry, SystemJobManager systemJobManager)
-
-
Method Details
-
list
-
show
@GET @Path("/{index: [a-z_0-9]+}") @Timed @Produces("application/json") public IndexRangeSummary show(@PathParam("index") @NotEmpty @NotEmpty String index) throws NotFoundException - Throws:
NotFoundException
-
rebuild
@POST @Timed @Path("/rebuild") @RequiresPermissions("indexranges:rebuild") @Produces("application/json") public javax.ws.rs.core.Response rebuild() -
rebuildIndexSet
@POST @Timed @Path("/index_set/{indexSetId}/rebuild") @RequiresPermissions("indexranges:rebuild") @Produces("application/json") public javax.ws.rs.core.Response rebuildIndexSet(@PathParam("indexSetId") @NotBlank @NotBlank String indexSetId) -
rebuildIndex
@POST @Timed @Path("/{index: [a-z_0-9-]+}/rebuild") @Produces("application/json") public javax.ws.rs.core.Response rebuildIndex(@PathParam("index") @NotEmpty @NotEmpty String index)
-