|
18 | 18 | */ |
19 | 19 | package org.elasticsearch.transport; |
20 | 20 |
|
21 | | -import org.elasticsearch.bootstrap.JavaVersion; |
22 | 21 | import org.elasticsearch.common.network.NetworkService; |
23 | 22 | import org.elasticsearch.common.settings.Setting; |
24 | 23 | import org.elasticsearch.common.settings.Settings; |
25 | 24 | import org.elasticsearch.common.unit.ByteSizeValue; |
26 | 25 | import org.elasticsearch.common.unit.TimeValue; |
27 | | -import org.elasticsearch.core.internal.io.IOUtils; |
28 | 26 |
|
29 | 27 | import java.util.Arrays; |
30 | 28 | import java.util.List; |
@@ -84,17 +82,20 @@ public final class TransportSettings { |
84 | 82 | affixKeySetting("transport.profiles.", "tcp.keep_alive", |
85 | 83 | key -> boolSetting(key, TCP_KEEP_ALIVE, Setting.Property.NodeScope)); |
86 | 84 | public static final Setting<Integer> TCP_KEEP_IDLE = |
87 | | - intSetting("transport.tcp.keep_idle", NetworkService.TCP_KEEP_IDLE, SET_EXTRA_KEEP_ALIVE_OPTIONS ? 60 : -1, Setting.Property.NodeScope); |
| 85 | + intSetting("transport.tcp.keep_idle", NetworkService.TCP_KEEP_IDLE, |
| 86 | + SET_EXTRA_KEEP_ALIVE_OPTIONS ? 60 : -1, Setting.Property.NodeScope); |
88 | 87 | public static final Setting.AffixSetting<Integer> TCP_KEEP_IDLE_PROFILE = |
89 | 88 | affixKeySetting("transport.profiles.", "tcp.keep_idle", |
90 | 89 | key -> intSetting(key, TCP_KEEP_IDLE, SET_EXTRA_KEEP_ALIVE_OPTIONS ? 60 : -1, Setting.Property.NodeScope)); |
91 | 90 | public static final Setting<Integer> TCP_KEEP_INTERVAL = |
92 | | - intSetting("transport.tcp.keep_interval", NetworkService.TCP_KEEP_INTERVAL, SET_EXTRA_KEEP_ALIVE_OPTIONS ? 10 : -1, Setting.Property.NodeScope); |
| 91 | + intSetting("transport.tcp.keep_interval", NetworkService.TCP_KEEP_INTERVAL, |
| 92 | + SET_EXTRA_KEEP_ALIVE_OPTIONS ? 10 : -1, Setting.Property.NodeScope); |
93 | 93 | public static final Setting.AffixSetting<Integer> TCP_KEEP_INTERVAL_PROFILE = |
94 | 94 | affixKeySetting("transport.profiles.", "tcp.keep_interval", |
95 | 95 | key -> intSetting(key, TCP_KEEP_INTERVAL, SET_EXTRA_KEEP_ALIVE_OPTIONS ? 10 : -1, Setting.Property.NodeScope)); |
96 | 96 | public static final Setting<Integer> TCP_KEEP_COUNT = |
97 | | - intSetting("transport.tcp.keep_count", NetworkService.TCP_KEEP_COUNT, SET_EXTRA_KEEP_ALIVE_OPTIONS ? 3 : -1, Setting.Property.NodeScope); |
| 97 | + intSetting("transport.tcp.keep_count", NetworkService.TCP_KEEP_COUNT, |
| 98 | + SET_EXTRA_KEEP_ALIVE_OPTIONS ? 3 : -1, Setting.Property.NodeScope); |
98 | 99 | public static final Setting.AffixSetting<Integer> TCP_KEEP_COUNT_PROFILE = |
99 | 100 | affixKeySetting("transport.profiles.", "tcp.keep_count", |
100 | 101 | key -> intSetting(key, TCP_KEEP_COUNT, SET_EXTRA_KEEP_ALIVE_OPTIONS ? 3 : -1, Setting.Property.NodeScope)); |
|
0 commit comments