本文整理汇总了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));
}
示例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);
}
}
示例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;
}
示例4: transportClusterUpdateSettingsAction
import org.elasticsearch.action.admin.cluster.settings.TransportClusterUpdateSettingsAction; //导入依赖的package包/类
public TransportClusterUpdateSettingsAction transportClusterUpdateSettingsAction() {
return transportClusterUpdateSettingsActionProvider.get();
}