Skip to content

Commit a488a66

Browse files
committed
Renamed SettingPositiveInteger to PositiveIntegerSetting
1 parent c47d8e8 commit a488a66

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

logstash-core/lib/logstash/environment.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ module Environment
4747
Setting::BooleanSetting.new("metric.collect", true),
4848
Setting::StringSetting.new("pipeline.id", "main"),
4949
Setting::BooleanSetting.new("pipeline.system", false),
50-
Setting::SettingPositiveInteger.new("pipeline.workers", LogStash::Config::CpuCoreStrategy.maximum),
51-
Setting::SettingPositiveInteger.new("pipeline.batch.size", 125),
50+
Setting::PositiveIntegerSetting.new("pipeline.workers", LogStash::Config::CpuCoreStrategy.maximum),
51+
Setting::PositiveIntegerSetting.new("pipeline.batch.size", 125),
5252
Setting::NumericSetting.new("pipeline.batch.delay", 50), # in milliseconds
5353
Setting::BooleanSetting.new("pipeline.unsafe_shutdown", false),
5454
Setting::BooleanSetting.new("pipeline.reloadable", true),

logstash-core/lib/logstash/settings.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def coerce(value)
417417

418418
java_import org.logstash.settings.IntegerSetting
419419

420-
java_import org.logstash.settings.SettingPositiveInteger
420+
java_import org.logstash.settings.PositiveIntegerSetting
421421

422422
class Port < IntegerSetting
423423
VALID_PORT_RANGE = 1..65535

logstash-core/spec/logstash/queue_factory_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
LogStash::Setting::NumericSetting.new("queue.checkpoint.writes", 1024),
3232
LogStash::Setting::BooleanSetting.new("queue.checkpoint.retry", false),
3333
LogStash::Setting::StringSetting.new("pipeline.id", pipeline_id),
34-
LogStash::Setting::SettingPositiveInteger.new("pipeline.batch.size", 125),
35-
LogStash::Setting::SettingPositiveInteger.new("pipeline.workers", LogStash::Config::CpuCoreStrategy.maximum)
34+
LogStash::Setting::PositiveIntegerSetting.new("pipeline.batch.size", 125),
35+
LogStash::Setting::PositiveIntegerSetting.new("pipeline.workers", LogStash::Config::CpuCoreStrategy.maximum)
3636
]
3737
end
3838

logstash-core/src/main/java/org/logstash/settings/SettingPositiveInteger.java renamed to logstash-core/src/main/java/org/logstash/settings/PositiveIntegerSetting.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import java.util.function.Predicate;
44

5-
public class SettingPositiveInteger extends IntegerSetting {
5+
public class PositiveIntegerSetting extends IntegerSetting {
66

7-
public SettingPositiveInteger(String name, Integer defaultValue) {
7+
public PositiveIntegerSetting(String name, Integer defaultValue) {
88
super(name, defaultValue, true, new Predicate<Integer>() {
99
@Override
1010
public boolean test(Integer v) {

0 commit comments

Comments
 (0)