当前位置: 首页>>代码示例>>Java>>正文


Java SettingsFilter类代码示例

本文整理汇总了Java中org.elasticsearch.common.settings.SettingsFilter的典型用法代码示例。如果您正苦于以下问题:Java SettingsFilter类的具体用法?Java SettingsFilter怎么用?Java SettingsFilter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SettingsFilter类属于org.elasticsearch.common.settings包,在下文中一共展示了SettingsFilter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: NodeService

import org.elasticsearch.common.settings.SettingsFilter; //导入依赖的package包/类
NodeService(Settings settings, ThreadPool threadPool, MonitorService monitorService, Discovery discovery,
                   TransportService transportService, IndicesService indicesService, PluginsService pluginService,
                   CircuitBreakerService circuitBreakerService, ScriptService scriptService,
                   @Nullable HttpServerTransport httpServerTransport, IngestService ingestService, ClusterService clusterService,
                   SettingsFilter settingsFilter) {
    super(settings);
    this.threadPool = threadPool;
    this.monitorService = monitorService;
    this.transportService = transportService;
    this.indicesService = indicesService;
    this.discovery = discovery;
    this.pluginService = pluginService;
    this.circuitBreakerService = circuitBreakerService;
    this.httpServerTransport = httpServerTransport;
    this.ingestService = ingestService;
    this.settingsFilter = settingsFilter;
    this.scriptService = scriptService;
    clusterService.addStateApplier(ingestService.getPipelineStore());
    clusterService.addStateApplier(ingestService.getPipelineExecutionService());
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:21,代码来源:NodeService.java

示例2: testSettingsFiltering

import org.elasticsearch.common.settings.SettingsFilter; //导入依赖的package包/类
public void testSettingsFiltering() throws IOException {
    AzureRepositoryPlugin p = new AzureRepositoryPlugin();
    SettingsModule module = new SettingsModule(Settings.EMPTY, p.getSettings(), p.getSettingsFilter());
    SettingsFilter settingsFilter = ModuleTestCase.bindAndGetInstance(module, SettingsFilter.class);

    // Test using direct filtering
    Settings filteredSettings = settingsFilter.filter(settings);
    assertThat(filteredSettings.getAsMap().keySet(), contains("cloud.azure.storage.azure1.default"));

    // Test using toXContent filtering
    RestRequest request = new FakeRestRequest();
    settingsFilter.addFilterSettingParams(request);
    XContentBuilder xContentBuilder = XContentBuilder.builder(JsonXContent.jsonXContent);
    xContentBuilder.startObject();
    settings.toXContent(xContentBuilder, request);
    xContentBuilder.endObject();
    String filteredSettingsString = xContentBuilder.string();
    filteredSettings = Settings.builder().loadFromSource(filteredSettingsString, xContentBuilder.contentType()).build();
    assertThat(filteredSettings.getAsMap().keySet(), contains("cloud.azure.storage.azure1.default"));
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:21,代码来源:AzureStorageSettingsFilterTests.java

示例3: getRestHandlers

import org.elasticsearch.common.settings.SettingsFilter; //导入依赖的package包/类
@Override
public List<RestHandler> getRestHandlers(Settings settings, RestController restController, ClusterSettings clusterSettings,
        IndexScopedSettings indexScopedSettings, SettingsFilter settingsFilter, IndexNameExpressionResolver indexNameExpressionResolver,
        Supplier<DiscoveryNodes> nodesInCluster) {
    return Arrays.asList(
            new RestSearchTemplateAction(settings, restController),
            new RestMultiSearchTemplateAction(settings, restController),
            new RestGetSearchTemplateAction(settings, restController),
            new RestPutSearchTemplateAction(settings, restController),
            new RestDeleteSearchTemplateAction(settings, restController),
            new RestRenderSearchTemplateAction(settings, restController));
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:13,代码来源:MustachePlugin.java

示例4: getRestHandlers

import org.elasticsearch.common.settings.SettingsFilter; //导入依赖的package包/类
@Override
public List<RestHandler> getRestHandlers(Settings settings, RestController restController, ClusterSettings clusterSettings,
        IndexScopedSettings indexScopedSettings, SettingsFilter settingsFilter, IndexNameExpressionResolver indexNameExpressionResolver,
        Supplier<DiscoveryNodes> nodesInCluster) {
    return Arrays.asList(
            new RestReindexAction(settings, restController),
            new RestUpdateByQueryAction(settings, restController),
            new RestDeleteByQueryAction(settings, restController),
            new RestRethrottleAction(settings, restController, nodesInCluster));
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:ReindexPlugin.java

示例5: getRestHandlers

import org.elasticsearch.common.settings.SettingsFilter; //导入依赖的package包/类
@Override
public List<RestHandler> getRestHandlers(Settings settings, RestController restController, ClusterSettings clusterSettings,
        IndexScopedSettings indexScopedSettings, SettingsFilter settingsFilter, IndexNameExpressionResolver indexNameExpressionResolver,
        Supplier<DiscoveryNodes> nodesInCluster) {
    return Arrays.asList(
            new RestNoopBulkAction(settings, restController),
            new RestNoopSearchAction(settings, restController));
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:9,代码来源:NoopPlugin.java

示例6: RestGetSettingsAction

import org.elasticsearch.common.settings.SettingsFilter; //导入依赖的package包/类
public RestGetSettingsAction(Settings settings, RestController controller, IndexScopedSettings indexScopedSettings,
        final SettingsFilter settingsFilter) {
    super(settings);
    this.indexScopedSettings = indexScopedSettings;
    controller.registerHandler(GET, "/{index}/_settings/{name}", this);
    controller.registerHandler(GET, "/_settings/{name}", this);
    controller.registerHandler(GET, "/{index}/_setting/{name}", this);
    this.settingsFilter = settingsFilter;
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:RestGetSettingsAction.java

示例7: RestGetIndicesAction

import org.elasticsearch.common.settings.SettingsFilter; //导入依赖的package包/类
public RestGetIndicesAction(
        final Settings settings,
        final RestController controller,
        final IndexScopedSettings indexScopedSettings,
        final SettingsFilter settingsFilter) {
    super(settings);
    this.indexScopedSettings = indexScopedSettings;
    controller.registerHandler(GET, "/{index}", this);
    controller.registerHandler(HEAD, "/{index}", this);
    controller.registerHandler(GET, "/{index}/{type}", this);
    this.settingsFilter = settingsFilter;
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:13,代码来源:RestGetIndicesAction.java

示例8: RestNodesInfoAction

import org.elasticsearch.common.settings.SettingsFilter; //导入依赖的package包/类
public RestNodesInfoAction(Settings settings, RestController controller, SettingsFilter settingsFilter) {
    super(settings);
    controller.registerHandler(GET, "/_nodes", this);
    // this endpoint is used for metrics, not for node IDs, like /_nodes/fs
    controller.registerHandler(GET, "/_nodes/{nodeId}", this);
    controller.registerHandler(GET, "/_nodes/{nodeId}/{metrics}", this);
    // added this endpoint to be aligned with stats
    controller.registerHandler(GET, "/_nodes/{nodeId}/info/{metrics}", this);

    this.settingsFilter = settingsFilter;
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:12,代码来源:RestNodesInfoAction.java

示例9: RestClusterStateAction

import org.elasticsearch.common.settings.SettingsFilter; //导入依赖的package包/类
public RestClusterStateAction(Settings settings, RestController controller, SettingsFilter settingsFilter) {
    super(settings);
    controller.registerHandler(RestRequest.Method.GET, "/_cluster/state", this);
    controller.registerHandler(RestRequest.Method.GET, "/_cluster/state/{metric}", this);
    controller.registerHandler(RestRequest.Method.GET, "/_cluster/state/{metric}/{indices}", this);

    this.settingsFilter = settingsFilter;
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:9,代码来源:RestClusterStateAction.java

示例10: RestClusterGetSettingsAction

import org.elasticsearch.common.settings.SettingsFilter; //导入依赖的package包/类
public RestClusterGetSettingsAction(Settings settings, RestController controller, ClusterSettings clusterSettings,
        SettingsFilter settingsFilter) {
    super(settings);
    this.clusterSettings = clusterSettings;
    controller.registerHandler(RestRequest.Method.GET, "/_cluster/settings", this);
    this.settingsFilter = settingsFilter;
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:RestClusterGetSettingsAction.java

示例11: TransportGetSettingsAction

import org.elasticsearch.common.settings.SettingsFilter; //导入依赖的package包/类
@Inject
public TransportGetSettingsAction(Settings settings, TransportService transportService, ClusterService clusterService,
                                  ThreadPool threadPool, SettingsFilter settingsFilter, ActionFilters actionFilters,
                                  IndexNameExpressionResolver indexNameExpressionResolver) {
    super(settings, GetSettingsAction.NAME, transportService, clusterService, threadPool, actionFilters, indexNameExpressionResolver, GetSettingsRequest::new);
    this.settingsFilter = settingsFilter;
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:TransportGetSettingsAction.java

示例12: getRestHandlers

import org.elasticsearch.common.settings.SettingsFilter; //导入依赖的package包/类
@Override
public List<RestHandler> getRestHandlers(Settings settings,
                                         RestController restController,
                                         ClusterSettings clusterSettings,
                                         IndexScopedSettings indexScopedSettings,
                                         SettingsFilter settingsFilter,
                                         IndexNameExpressionResolver indexNameExpressionResolver,
                                         Supplier<DiscoveryNodes> nodesInCluster) {

    logger.debug("Registering REST handlers");

    handlers.forEach((key, value) -> restController.registerHandler(GET, key, value));
    return new ArrayList<>(handlers.values());
}
 
开发者ID:jsuchenia,项目名称:elasticsearch-prometheus-metrics,代码行数:15,代码来源:PrometheusExporterPlugin.java

示例13: getRestHandlers

import org.elasticsearch.common.settings.SettingsFilter; //导入依赖的package包/类
@Override
public List<RestHandler> getRestHandlers(Settings settings,
                                         RestController restController, ClusterSettings clusterSettings,
                                         IndexScopedSettings indexScopedSettings,
                                         SettingsFilter settingsFilter,
                                         IndexNameExpressionResolver indexNameExpressionResolver,
                                         Supplier<DiscoveryNodes> nodesInCluster) {
    return Arrays.asList(new ReportGenerateRestAction(settings, restController));
}
 
开发者ID:malike,项目名称:elasticsearch-report-engine,代码行数:10,代码来源:ElasticReportPlugin.java

示例14: getRestHandlers

import org.elasticsearch.common.settings.SettingsFilter; //导入依赖的package包/类
@Override
public List<RestHandler> getRestHandlers(final Settings settings, final RestController restController,
        final ClusterSettings clusterSettings, final IndexScopedSettings indexScopedSettings, final SettingsFilter settingsFilter,
        final IndexNameExpressionResolver indexNameExpressionResolver, final Supplier<DiscoveryNodes> nodesInCluster) {
    return Arrays.asList(new RestIndexingProxyProcessAction(settings, restController, pluginComponent),
            new RestIndexingProxyRequestAction(settings, restController, pluginComponent));
}
 
开发者ID:codelibs,项目名称:elasticsearch-indexing-proxy,代码行数:8,代码来源:IndexingProxyPlugin.java

示例15: RestGetRepositoriesAction

import org.elasticsearch.common.settings.SettingsFilter; //导入依赖的package包/类
@Inject
public RestGetRepositoriesAction(Settings settings, RestController controller, Client client, SettingsFilter settingsFilter) {
    super(settings, controller, client);
    controller.registerHandler(GET, "/_snapshot", this);
    controller.registerHandler(GET, "/_snapshot/{repository}", this);
    this.settingsFilter = settingsFilter;
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:8,代码来源:RestGetRepositoriesAction.java


注:本文中的org.elasticsearch.common.settings.SettingsFilter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。