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