@@ -52,9 +52,8 @@ public final class TransportSettings {
52
52
listSetting ("transport.bind_host" , HOST , Function .identity (), Setting .Property .NodeScope );
53
53
public static final Setting .AffixSetting <List <String >> BIND_HOST_PROFILE = affixKeySetting ("transport.profiles." , "bind_host" ,
54
54
key -> listSetting (key , BIND_HOST , Function .identity (), Setting .Property .NodeScope ));
55
- // TODO: Deprecate in 7.0
56
55
public static final Setting <String > OLD_PORT =
57
- new Setting <>("transport.tcp.port" , "9300-9400" , Function .identity (), Setting .Property .NodeScope );
56
+ new Setting <>("transport.tcp.port" , "9300-9400" , Function .identity (), Setting .Property .NodeScope , Setting . Property . Deprecated );
58
57
public static final Setting <String > PORT =
59
58
new Setting <>("transport.port" , OLD_PORT , Function .identity (), Setting .Property .NodeScope );
60
59
public static final Setting .AffixSetting <String > PORT_PROFILE = affixKeySetting ("transport.profiles." , "port" ,
@@ -63,73 +62,69 @@ public final class TransportSettings {
63
62
intSetting ("transport.publish_port" , -1 , -1 , Setting .Property .NodeScope );
64
63
public static final Setting .AffixSetting <Integer > PUBLISH_PORT_PROFILE = affixKeySetting ("transport.profiles." , "publish_port" ,
65
64
key -> intSetting (key , -1 , -1 , Setting .Property .NodeScope ));
66
- // TODO: Deprecate in 7.0
67
65
public static final Setting <Boolean > OLD_TRANSPORT_COMPRESS =
68
- boolSetting ("transport.tcp.compress" , false , Setting .Property .NodeScope );
66
+ boolSetting ("transport.tcp.compress" , false , Setting .Property .NodeScope , Setting . Property . Deprecated );
69
67
public static final Setting <Boolean > TRANSPORT_COMPRESS =
70
68
boolSetting ("transport.compress" , OLD_TRANSPORT_COMPRESS , Setting .Property .NodeScope );
71
69
// the scheduled internal ping interval setting, defaults to disabled (-1)
72
70
public static final Setting <TimeValue > PING_SCHEDULE =
73
71
timeSetting ("transport.ping_schedule" , TimeValue .timeValueSeconds (-1 ), Setting .Property .NodeScope );
74
- // TODO: Deprecate in 7.0
75
72
public static final Setting <TimeValue > TCP_CONNECT_TIMEOUT =
76
- timeSetting ("transport.tcp.connect_timeout" , NetworkService .TCP_CONNECT_TIMEOUT , Setting .Property .NodeScope );
73
+ timeSetting ("transport.tcp.connect_timeout" , NetworkService .TCP_CONNECT_TIMEOUT , Setting .Property .NodeScope ,
74
+ Setting .Property .Deprecated );
77
75
public static final Setting <TimeValue > CONNECT_TIMEOUT =
78
76
timeSetting ("transport.connect_timeout" , TCP_CONNECT_TIMEOUT , Setting .Property .NodeScope );
79
77
public static final Setting <Settings > DEFAULT_FEATURES_SETTING = Setting .groupSetting (FEATURE_PREFIX + "." , Setting .Property .NodeScope );
80
78
81
79
// Tcp socket settings
82
80
83
- // TODO: Deprecate in 7.0
84
81
public static final Setting <Boolean > OLD_TCP_NO_DELAY =
85
- boolSetting ("transport.tcp_no_delay" , NetworkService .TCP_NO_DELAY , Setting .Property .NodeScope );
82
+ boolSetting ("transport.tcp_no_delay" , NetworkService .TCP_NO_DELAY , Setting .Property .NodeScope , Setting . Property . Deprecated );
86
83
public static final Setting <Boolean > TCP_NO_DELAY =
87
84
boolSetting ("transport.tcp.no_delay" , OLD_TCP_NO_DELAY , Setting .Property .NodeScope );
88
- // TODO: Deprecate in 7.0
89
85
public static final Setting .AffixSetting <Boolean > OLD_TCP_NO_DELAY_PROFILE =
90
- affixKeySetting ("transport.profiles." , "tcp_no_delay" , key -> boolSetting (key , TCP_NO_DELAY , Setting .Property .NodeScope ));
86
+ affixKeySetting ("transport.profiles." , "tcp_no_delay" , key -> boolSetting (key , TCP_NO_DELAY , Setting .Property .NodeScope ,
87
+ Setting .Property .Deprecated ));
91
88
public static final Setting .AffixSetting <Boolean > TCP_NO_DELAY_PROFILE =
92
89
affixKeySetting ("transport.profiles." , "tcp.no_delay" ,
93
90
key -> boolSetting (key ,
94
91
fallback (key , OLD_TCP_NO_DELAY_PROFILE , "tcp\\ .no_delay$" , "tcp_no_delay" ),
95
92
Setting .Property .NodeScope ));
96
93
public static final Setting <Boolean > TCP_KEEP_ALIVE =
97
94
boolSetting ("transport.tcp.keep_alive" , NetworkService .TCP_KEEP_ALIVE , Setting .Property .NodeScope );
98
- // TODO: Deprecate in 7.0
99
95
public static final Setting .AffixSetting <Boolean > OLD_TCP_KEEP_ALIVE_PROFILE =
100
- affixKeySetting ("transport.profiles." , "tcp_keep_alive" , key -> boolSetting (key , TCP_KEEP_ALIVE , Setting .Property .NodeScope ));
96
+ affixKeySetting ("transport.profiles." , "tcp_keep_alive" ,
97
+ key -> boolSetting (key , TCP_KEEP_ALIVE , Setting .Property .NodeScope , Setting .Property .Deprecated ));
101
98
public static final Setting .AffixSetting <Boolean > TCP_KEEP_ALIVE_PROFILE =
102
99
affixKeySetting ("transport.profiles." , "tcp.keep_alive" ,
103
100
key -> boolSetting (key ,
104
101
fallback (key , OLD_TCP_KEEP_ALIVE_PROFILE , "tcp\\ .keep_alive$" , "tcp_keep_alive" ),
105
102
Setting .Property .NodeScope ));
106
103
public static final Setting <Boolean > TCP_REUSE_ADDRESS =
107
104
boolSetting ("transport.tcp.reuse_address" , NetworkService .TCP_REUSE_ADDRESS , Setting .Property .NodeScope );
108
- // TODO: Deprecate in 7.0
109
105
public static final Setting .AffixSetting <Boolean > OLD_TCP_REUSE_ADDRESS_PROFILE =
110
- affixKeySetting ("transport.profiles." , "reuse_address" , key -> boolSetting (key , TCP_REUSE_ADDRESS , Setting .Property .NodeScope ));
106
+ affixKeySetting ("transport.profiles." , "reuse_address" , key -> boolSetting (key , TCP_REUSE_ADDRESS , Setting .Property .NodeScope ,
107
+ Setting .Property .Deprecated ));
111
108
public static final Setting .AffixSetting <Boolean > TCP_REUSE_ADDRESS_PROFILE =
112
109
affixKeySetting ("transport.profiles." , "tcp.reuse_address" ,
113
110
key -> boolSetting (key ,
114
111
fallback (key , OLD_TCP_REUSE_ADDRESS_PROFILE , "tcp\\ .reuse_address$" , "reuse_address" ),
115
112
Setting .Property .NodeScope ));
116
113
public static final Setting <ByteSizeValue > TCP_SEND_BUFFER_SIZE =
117
114
Setting .byteSizeSetting ("transport.tcp.send_buffer_size" , NetworkService .TCP_SEND_BUFFER_SIZE , Setting .Property .NodeScope );
118
- // TODO: Deprecate in 7.0
119
115
public static final Setting .AffixSetting <ByteSizeValue > OLD_TCP_SEND_BUFFER_SIZE_PROFILE =
120
116
affixKeySetting ("transport.profiles." , "send_buffer_size" ,
121
- key -> Setting .byteSizeSetting (key , TCP_SEND_BUFFER_SIZE , Setting .Property .NodeScope ));
117
+ key -> Setting .byteSizeSetting (key , TCP_SEND_BUFFER_SIZE , Setting .Property .NodeScope , Setting . Property . Deprecated ));
122
118
public static final Setting .AffixSetting <ByteSizeValue > TCP_SEND_BUFFER_SIZE_PROFILE =
123
119
affixKeySetting ("transport.profiles." , "tcp.send_buffer_size" ,
124
120
key -> Setting .byteSizeSetting (key ,
125
121
fallback (key , OLD_TCP_SEND_BUFFER_SIZE_PROFILE , "tcp\\ .send_buffer_size$" , "send_buffer_size" ),
126
122
Setting .Property .NodeScope ));
127
123
public static final Setting <ByteSizeValue > TCP_RECEIVE_BUFFER_SIZE =
128
124
Setting .byteSizeSetting ("transport.tcp.receive_buffer_size" , NetworkService .TCP_RECEIVE_BUFFER_SIZE , Setting .Property .NodeScope );
129
- // TODO: Deprecate in 7.0
130
125
public static final Setting .AffixSetting <ByteSizeValue > OLD_TCP_RECEIVE_BUFFER_SIZE_PROFILE =
131
126
affixKeySetting ("transport.profiles." , "receive_buffer_size" ,
132
- key -> Setting .byteSizeSetting (key , TCP_RECEIVE_BUFFER_SIZE , Setting .Property .NodeScope ));
127
+ key -> Setting .byteSizeSetting (key , TCP_RECEIVE_BUFFER_SIZE , Setting .Property .NodeScope , Setting . Property . Deprecated ));
133
128
public static final Setting .AffixSetting <ByteSizeValue > TCP_RECEIVE_BUFFER_SIZE_PROFILE =
134
129
affixKeySetting ("transport.profiles." , "tcp.receive_buffer_size" ,
135
130
key -> Setting .byteSizeSetting (key ,
0 commit comments