當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。