Commit e28509f
authored
Core: Less settings to AbstractComponent (#35140)
Stop passing `Settings` to `AbstractComponent`'s ctor. This allows us to
stop passing around `Settings` in a *ton* of places. While this change
touches many files, it touches them all in fairly small, mechanical
ways, doing a few things per file:
1. Drop the `super(settings);` line on everything that extends
`AbstractComponent`.
2. Drop the `settings` argument to the ctor if it is no longer used.
3. If the file doesn't use `logger` then drop `extends
AbstractComponent` from it.
4. Clean up all compilation failure caused by the `settings` removal
and drop any now unused `settings` isntances and method arguments.
I've intentionally *not* removed the `settings` argument from a few
files:
1. TransportAction
2. AbstractLifecycleComponent
3. BaseRestHandler
These files don't *need* `settings` either, but this change is large
enough as is.
Relates to #344881 parent b5e5e93 commit e28509f
File tree
400 files changed
+706
-1366
lines changed- benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation
- modules
- lang-expression/src
- main/java/org/elasticsearch/script/expression
- test/java/org/elasticsearch/script/expression
- lang-painless/src/main/java/org/elasticsearch/painless
- percolator/src
- main/java/org/elasticsearch/percolator
- test/java/org/elasticsearch/percolator
- reindex/src/test/java/org/elasticsearch/index/reindex
- repository-url/src/main/java/org/elasticsearch/common/blobstore/url
- plugins
- discovery-azure-classic/src/main/java/org/elasticsearch/discovery/azure/classic
- discovery-ec2/src
- main/java/org/elasticsearch/discovery/ec2
- test/java/org/elasticsearch/discovery/ec2
- discovery-gce/src
- main/java/org/elasticsearch
- cloud/gce
- network
- discovery/gce
- plugin/discovery/gce
- test/java/org/elasticsearch/discovery/gce
- repository-azure/src
- main/java/org/elasticsearch/repositories/azure
- test/java/org/elasticsearch/repositories/azure
- repository-gcs/src
- main/java/org/elasticsearch/repositories/gcs
- test/java/org/elasticsearch/repositories/gcs
- repository-s3/src
- main/java/org/elasticsearch/repositories/s3
- test/java/org/elasticsearch/repositories/s3
- qa/smoke-test-http/src/test/java/org/elasticsearch/http
- server/src
- main/java/org/elasticsearch
- action
- admin/indices/rollover
- search
- support
- update
- client
- support
- transport
- cluster
- action
- index
- shard
- metadata
- routing
- allocation
- allocator
- decider
- common
- blobstore/fs
- component
- settings
- util
- discovery
- zen
- gateway
- index
- shard
- indices
- analysis
- fielddata/cache
- flush
- recovery
- store
- monitor
- fs
- jvm
- os
- process
- node
- persistent
- plugins
- repositories
- rest
- script
- search
- fetch/subphase/highlight
- query
- rescore
- suggest
- snapshots
- tasks
- threadpool
- transport
- usage
- test/java/org/elasticsearch
- action
- admin
- cluster
- allocation
- reroute
- indices
- get
- rollover
- settings/get
- shrink
- template/put
- bulk
- search
- support
- broadcast/node
- master
- replication
- single/instance
- update
- cluster
- action/shard
- health
- metadata
- routing
- allocation
- decider
- common/settings
- discovery/zen
- gateway
- index
- seqno
- shard
- indices
- cluster
- recovery
- monitor/fs
- node
- persistent
- rest
- action
- admin
- cluster
- indices
- cat
- snapshots
- usage
- test/framework/src/main/java/org/elasticsearch
- cluster
- index/replication
- test
- discovery
- gateway
- x-pack
- plugin
- ccr/src/main/java/org/elasticsearch/xpack/ccr
- action
- core/src
- main/java/org/elasticsearch/xpack/core
- ssl
- watcher/crypto
- test/java/org/elasticsearch/xpack/core
- deprecation
- ssl
- ml/src
- main/java/org/elasticsearch/xpack/ml
- action
- datafeed
- job
- persistence
- process
- autodetect
- output
- test/java/org/elasticsearch/xpack/ml
- datafeed
- integration
- job
- persistence
- process
- autodetect
- output
- monitoring/src
- main/java/org/elasticsearch/xpack/monitoring
- collector
- ccr
- cluster
- indices
- ml
- node
- shards
- test/java/org/elasticsearch/xpack/monitoring/collector
- indices
- node
- shards
- rollup/src/main/java/org/elasticsearch/xpack/rollup
- action
- job
- security/src
- main/java/org/elasticsearch/xpack/security
- action
- filter
- interceptor
- audit
- index
- logfile
- authc
- esnative
- support/mapper
- authz
- store
- transport
- test/java/org/elasticsearch
- integration
- xpack/security
- action
- filter
- interceptor
- audit
- authz
- transport
- netty4
- nio
- sql/src/test/java/org/elasticsearch/xpack/sql/plugin
- upgrade/src
- main/java/org/elasticsearch/xpack/upgrade
- test/java/org/elasticsearch/xpack/upgrade
- watcher/src
- main/java/org/elasticsearch/xpack/watcher
- common
- http
- text
- execution
- history
- input/search
- notification
- email
- hipchat
- jira
- pagerduty
- slack
- support
- search
- transform/search
- trigger
- schedule
- engine
- watch
- test/java/org/elasticsearch/xpack/watcher
- actions/jira
- common/text
- execution
- history
- notification
- email/attachment
- support
- test
- bench
- integration
- trigger
- watch
- qa
- security-example-spi-extension/src/main/java/org/elasticsearch/example
- role
- smoke-test-watcher/src/test/java/org/elasticsearch/smoketest
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
400 files changed
+706
-1366
lines changedLines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 49 | | |
54 | 50 | | |
55 | 51 | | |
| |||
79 | 75 | | |
80 | 76 | | |
81 | 77 | | |
82 | | - | |
| 78 | + | |
83 | 79 | | |
84 | 80 | | |
85 | 81 | | |
| |||
88 | 84 | | |
89 | 85 | | |
90 | 86 | | |
91 | | - | |
| 87 | + | |
92 | 88 | | |
93 | 89 | | |
94 | 90 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| |||
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
66 | | - | |
| 64 | + | |
67 | 65 | | |
68 | 66 | | |
69 | 67 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 68 | | |
75 | 69 | | |
76 | 70 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
67 | | - | |
| 66 | + | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
66 | | - | |
| 65 | + | |
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
66 | | - | |
| 65 | + | |
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
| |||
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
93 | | - | |
94 | | - | |
95 | 92 | | |
96 | 93 | | |
97 | 94 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | | - | |
60 | | - | |
| 58 | + | |
| 59 | + | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
| |||
Lines changed: 1 addition & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 37 | | |
46 | 38 | | |
47 | 39 | | |
| |||
51 | 43 | | |
52 | 44 | | |
53 | 45 | | |
54 | | - | |
| 46 | + | |
55 | 47 | | |
56 | 48 | | |
57 | 49 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
51 | | - | |
| 49 | + | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
| |||
0 commit comments