@Path(value="/system/indexer/indices") public class IndicesResource extends RestResource
userService
Constructor and Description |
---|
IndicesResource(Indices indices,
NodeInfoCache nodeInfoCache,
IndexSetRegistry indexSetRegistry) |
Modifier and Type | Method and Description |
---|---|
AllIndices |
all() |
void |
close(@NotNull String index) |
ClosedIndices |
closed() |
void |
delete(@NotNull String index) |
ClosedIndices |
indexSetClosed(String indexSetId) |
AllIndices |
indexSetList(String indexSetId) |
OpenIndicesInfo |
indexSetOpen(String indexSetId) |
ClosedIndices |
indexSetReopened(String indexSetId) |
Map<String,IndexInfo> |
multiple(@Valid @NotNull IndicesReadRequest request) |
OpenIndicesInfo |
open() |
void |
reopen(String index) |
ClosedIndices |
reopened() |
IndexInfo |
single(String index) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
@Inject public IndicesResource(Indices indices, NodeInfoCache nodeInfoCache, IndexSetRegistry indexSetRegistry)
@GET @Timed @Path(value="/{index}") @Produces(value="application/json") public IndexInfo single(@PathParam(value="index") String index)
@POST @Timed @Path(value="/multiple") @Produces(value="application/json") public Map<String,IndexInfo> multiple(@Valid @NotNull @Valid @NotNull IndicesReadRequest request)
@GET @Path(value="/open") @Timed @Produces(value="application/json") public OpenIndicesInfo open()
@GET @Timed @Path(value="/closed") @Produces(value="application/json") public ClosedIndices closed()
@GET @Timed @Path(value="/reopened") @Produces(value="application/json") public ClosedIndices reopened()
@GET @Timed @Produces(value="application/json") public AllIndices all()
@POST @Timed @Path(value="/{index}/reopen") @Produces(value="application/json") public void reopen(@PathParam(value="index") String index)
@POST @Timed @Path(value="/{index}/close") @Produces(value="application/json") public void close(@PathParam(value="index") @NotNull @NotNull String index) throws TooManyAliasesException
TooManyAliasesException
@DELETE @Timed @Path(value="/{index}") @Produces(value="application/json") public void delete(@PathParam(value="index") @NotNull @NotNull String index) throws TooManyAliasesException
TooManyAliasesException
@GET @Timed @Path(value="/{indexSetId}/list") @Produces(value="application/json") public AllIndices indexSetList(@PathParam(value="indexSetId") String indexSetId)
@GET @Path(value="/{indexSetId}/open") @Timed @Produces(value="application/json") public OpenIndicesInfo indexSetOpen(@PathParam(value="indexSetId") String indexSetId)
@GET @Timed @Path(value="/{indexSetId}/closed") @Produces(value="application/json") public ClosedIndices indexSetClosed(@PathParam(value="indexSetId") String indexSetId)
@GET @Timed @Path(value="/{indexSetId}/reopened") @Produces(value="application/json") public ClosedIndices indexSetReopened(@PathParam(value="indexSetId") String indexSetId)
Copyright © 2012–2019 Graylog, Inc.. All rights reserved.