Commit e6444d3
authored
Add StreamableResponseAction to aid in deprecation of Streamable (#43770)
The Action base class currently works for both Streamable and Writeable
response types. This commit intorduces StreamableResponseAction, for
which only the legacy Action implementions which provide newResponse()
will extend. This eliminates the need for overriding newResponse() with
an UnsupportedOperationException.
relates #343891 parent 5ac7ec2 commit e6444d3
File tree
277 files changed
+346
-934
lines changed- client/client-benchmark-noop-api-plugin/src/main/java/org/elasticsearch/plugin/noop/action
- bulk
- search
- modules
- ingest-common/src/main/java/org/elasticsearch/ingest/common
- lang-mustache/src/main/java/org/elasticsearch/script/mustache
- lang-painless/src/main/java/org/elasticsearch/painless/action
- rank-eval/src/main/java/org/elasticsearch/index/rankeval
- reindex/src/main/java/org/elasticsearch/index/reindex
- server/src
- main/java/org/elasticsearch
- action
- admin
- cluster
- allocation
- configuration
- health
- node
- hotthreads
- info
- reload
- stats
- tasks
- cancel
- get
- list
- usage
- remote
- repositories
- delete
- get
- put
- verify
- reroute
- settings
- shards
- snapshots
- create
- delete
- get
- restore
- status
- state
- stats
- storedscripts
- tasks
- indices
- alias
- get
- analyze
- cache/clear
- close
- create
- delete
- flush
- forcemerge
- get
- mapping
- get
- put
- open
- recovery
- refresh
- rollover
- segments
- settings
- get
- put
- shards
- shrink
- stats
- template
- delete
- get
- put
- upgrade
- get
- post
- validate/query
- bulk
- delete
- explain
- fieldcaps
- get
- index
- ingest
- main
- search
- termvectors
- update
- index
- reindex
- seqno
- persistent
- test/java/org/elasticsearch
- action
- admin/cluster/node/tasks
- indices/settings
- persistent
- x-pack/plugin
- ccr/src/main/java/org/elasticsearch/xpack/ccr/action
- bulk
- repositories
- core/src/main/java/org/elasticsearch
- license
- xpack/core
- action
- ccr/action
- dataframe/action
- deprecation
- graph/action
- indexlifecycle/action
- ml/action
- monitoring/action
- rollup/action
- security/action
- oidc
- privilege
- realm
- rolemapping
- role
- saml
- token
- user
- ssl/action
- upgrade/actions
- watcher/transport/actions
- ack
- activate
- delete
- execute
- get
- put
- service
- stats
- ml/src/test/java/org/elasticsearch/xpack/ml/job/persistence
- sql
- sql-action/src/main/java/org/elasticsearch/xpack/sql/action
- src/main/java/org/elasticsearch/xpack/sql/plugin
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
277 files changed
+346
-934
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 33 | | |
39 | 34 | | |
40 | 35 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 34 | | |
40 | 35 | | |
41 | 36 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 34 | | |
40 | 35 | | |
41 | 36 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 78 | | |
84 | 79 | | |
85 | 80 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
| 102 | + | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 34 | | |
40 | 35 | | |
41 | 36 | | |
| |||
Lines changed: 14 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
35 | 37 | | |
| 38 | + | |
36 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
37 | 48 | | |
| 49 | + | |
38 | 50 | | |
39 | 51 | | |
40 | 52 | | |
| |||
44 | 56 | | |
45 | 57 | | |
46 | 58 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments