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


Java TransportClusterUpdateSettingsAction类代码示例

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


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

示例1: ESClusterUpdateSettingsTask

import org.elasticsearch.action.admin.cluster.settings.TransportClusterUpdateSettingsAction; //导入依赖的package包/类
public ESClusterUpdateSettingsTask(UUID jobId,
                                   TransportClusterUpdateSettingsAction transport,
                                   ESClusterUpdateSettingsNode node) {
    super(jobId);
    this.transport = transport;

    final SettableFuture<TaskResult> result = SettableFuture.create();
    results = Collections.<ListenableFuture<TaskResult>>singletonList(result);

    request = new ClusterUpdateSettingsRequest();
    request.persistentSettings(node.persistentSettings());
    request.transientSettings(node.transientSettings());
    if (node.persistentSettingsToRemove() != null) {
        request.persistentSettingsToRemove(node.persistentSettingsToRemove());
    }
    if (node.transientSettingsToRemove() != null) {
        request.transientSettingsToRemove(node.transientSettingsToRemove());
    }
    listener = ActionListeners.wrap(result, Functions.constant(TaskResult.ONE_ROW));
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:21,代码来源:ESClusterUpdateSettingsTask.java

示例2: DecommissioningService

import org.elasticsearch.action.admin.cluster.settings.TransportClusterUpdateSettingsAction; //导入依赖的package包/类
@Inject
public DecommissioningService(Settings settings,
                              final ClusterService clusterService,
                              NodeSettingsService nodeSettingsService,
                              TransportSQLAction sqlAction,
                              TransportSQLBulkAction sqlBulkAction,
                              final TransportClusterHealthAction healthAction,
                              final TransportClusterUpdateSettingsAction updateSettingsAction) {
    super(settings);
    this.clusterService = clusterService;
    this.sqlAction = sqlAction;
    this.sqlBulkAction = sqlBulkAction;
    this.healthAction = healthAction;
    this.updateSettingsAction = updateSettingsAction;

    ApplySettings applySettings = new ApplySettings();
    applySettings.onRefreshSettings(settings);
    nodeSettingsService.addListener(applySettings);

    clusterService.add(new ClusterStateListener() {
        @Override
        public void clusterChanged(ClusterChangedEvent event) {
            removeRemovedNodes(event);
        }
    });
    try {
        Signal signal = new Signal("USR2");
        Signal.handle(signal, this);
    } catch (IllegalArgumentException e) {
        logger.warn("SIGUSR2 signal not supported on {}.", System.getProperty("os.name"), e);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:33,代码来源:DecommissioningService.java

示例3: TransportActionProvider

import org.elasticsearch.action.admin.cluster.settings.TransportClusterUpdateSettingsAction; //导入依赖的package包/类
@Inject
public TransportActionProvider(Provider<TransportFetchNodeAction> transportFetchNodeActionProvider,
                               Provider<TransportCreateIndexAction> transportCreateIndexActionProvider,
                               Provider<TransportDeleteIndexAction> transportDeleteIndexActionProvider,
                               Provider<TransportGetIndexTemplatesAction> transportGetIndexTemplatesActionProvider,
                               Provider<TransportPutIndexTemplateAction> transportPutIndexTemplateActionProvider,
                               Provider<TransportDeleteIndexTemplateAction> transportDeleteIndexTemplateActionProvider,
                               Provider<TransportClusterUpdateSettingsAction> transportClusterUpdateSettingsActionProvider,
                               Provider<TransportShardDeleteAction> transportShardDeleteActionProvider,
                               Provider<TransportDeleteAction> transportDeleteActionProvider,
                               Provider<TransportGetAction> transportGetActionProvider,
                               Provider<TransportMultiGetAction> transportMultiGetActionProvider,
                               Provider<TransportShardUpsertAction> transportShardUpsertActionProvider,
                               Provider<TransportKillAllNodeAction> transportKillAllNodeActionProvider,
                               Provider<TransportPutMappingAction> transportPutMappingActionProvider,
                               Provider<TransportRefreshAction> transportRefreshActionProvider,
                               Provider<TransportUpdateSettingsAction> transportUpdateSettingsActionProvider,
                               Provider<TransportJobAction> transportJobInitActionProvider,
                               Provider<TransportBulkCreateIndicesAction> transportBulkCreateIndicesActionProvider,
                               Provider<TransportKillJobsNodeAction> transportKillJobsNodeActionProvider,
                               Provider<TransportPutRepositoryAction> transportPutRepositoryActionProvider,
                               Provider<TransportDeleteRepositoryAction> transportDeleteRepositoryActionProvider,
                               Provider<TransportDeleteSnapshotAction> transportDeleteSnapshotActionProvider,
                               Provider<TransportCreateSnapshotAction> transportCreateSnapshotActionProvider,
                               Provider<TransportRestoreSnapshotAction> transportRestoreSnapshotActionProvider,
                               Provider<TransportAddUserOrResetPasswdAction> transportAddUserOrResetPasswdAction, 
                               Provider<TransportDropUserAction> transportDropUserAction, 
                               Provider<TransportGrantOrRevokeUserPrivilegeAction> transportGrantOrRevokeUserPrivilegeAction, 
                               Provider<TransportShowUserPropertyAction> transportShowUserPropertyAction, 
                               Provider<TransportResetWhitelistAction> transportResetWhitelistAction,
                               Provider<TransportCreateTenantAction> transportCreateTenantAction,
                               Provider<TransportDeleteTenantAction> transportDeleteTenantAction,
                               Provider<TransportMigrateIndexTenantAction> transportMigrateIndexTenantAction,
                               Provider<TransportModifyTenantNodesAction> transportModifyTenantNodesAction,
                               Provider<TransportShowTenantsAction> transportShowTenantsAction,
                               Provider<TransportAlterTenantPropertyAction> transportAlterTenantPropertyAction,
                               Provider<TransportSQLAction> transportSQLActionProvider) {
    this.transportCreateIndexActionProvider = transportCreateIndexActionProvider;
    this.transportDeleteIndexActionProvider = transportDeleteIndexActionProvider;
    this.transportPutIndexTemplateActionProvider = transportPutIndexTemplateActionProvider;
    this.transportGetIndexTemplatesActionProvider = transportGetIndexTemplatesActionProvider;
    this.transportDeleteIndexTemplateActionProvider = transportDeleteIndexTemplateActionProvider;
    this.transportClusterUpdateSettingsActionProvider = transportClusterUpdateSettingsActionProvider;
    this.transportShardDeleteActionProvider = transportShardDeleteActionProvider;
    this.transportDeleteActionProvider = transportDeleteActionProvider;
    this.transportGetActionProvider = transportGetActionProvider;
    this.transportMultiGetActionProvider = transportMultiGetActionProvider;
    this.transportShardUpsertActionProvider = transportShardUpsertActionProvider;
    this.transportKillAllNodeActionProvider = transportKillAllNodeActionProvider;
    this.transportFetchNodeActionProvider = transportFetchNodeActionProvider;
    this.transportPutMappingActionProvider = transportPutMappingActionProvider;
    this.transportRefreshActionProvider = transportRefreshActionProvider;
    this.transportUpdateSettingsActionProvider = transportUpdateSettingsActionProvider;
    this.transportJobInitActionProvider = transportJobInitActionProvider;
    this.transportBulkCreateIndicesActionProvider = transportBulkCreateIndicesActionProvider;
    this.transportKillJobsNodeActionProvider = transportKillJobsNodeActionProvider;
    this.transportPutRepositoryActionProvider = transportPutRepositoryActionProvider;
    this.transportDeleteRepositoryActionProvider = transportDeleteRepositoryActionProvider;
    this.transportDeleteSnapshotActionProvider = transportDeleteSnapshotActionProvider;
    this.transportCreateSnapshotActionProvider = transportCreateSnapshotActionProvider;
    this.transportRestoreSnapshotActionProvider = transportRestoreSnapshotActionProvider;
    this.transportAddUserOrResetPasswdAction = transportAddUserOrResetPasswdAction;
    this.transportDropUserAction = transportDropUserAction;
    this.transportResetWhitelistAction = transportResetWhitelistAction;
    this.transportGrantOrRevokeUserPrivilegeAction = transportGrantOrRevokeUserPrivilegeAction;
    this.transportShowUserPropertyAction = transportShowUserPropertyAction;
    this.transportCreateTenantAction = transportCreateTenantAction;
    this.transportDeleteTenantAction = transportDeleteTenantAction;
    this.transportMigrateIndexTenantAction = transportMigrateIndexTenantAction;
    this.transportModifyTenantNodesAction = transportModifyTenantNodesAction;
    this.transportShowTenantsAction = transportShowTenantsAction;
    this.transportAlterTenantPropertyAction = transportAlterTenantPropertyAction;
    this.transportSQLActionProvider = transportSQLActionProvider;
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:75,代码来源:TransportActionProvider.java

示例4: transportClusterUpdateSettingsAction

import org.elasticsearch.action.admin.cluster.settings.TransportClusterUpdateSettingsAction; //导入依赖的package包/类
public TransportClusterUpdateSettingsAction transportClusterUpdateSettingsAction() {
    return transportClusterUpdateSettingsActionProvider.get();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:4,代码来源:TransportActionProvider.java


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