10
10
*
11
11
*/
12
12
13
-
14
13
package org .opensearch .ml .action .stats ;
15
14
16
- import org .opensearch .ml .stats .InternalStatNames ;
17
- import org .opensearch .ml .stats .MLStats ;
15
+ import java .io .IOException ;
16
+ import java .util .HashMap ;
17
+ import java .util .List ;
18
+ import java .util .Map ;
19
+ import java .util .Set ;
20
+
18
21
import org .opensearch .action .FailedNodeException ;
19
22
import org .opensearch .action .support .ActionFilters ;
20
23
import org .opensearch .action .support .nodes .TransportNodesAction ;
21
24
import org .opensearch .cluster .service .ClusterService ;
22
25
import org .opensearch .common .inject .Inject ;
23
26
import org .opensearch .common .io .stream .StreamInput ;
27
+ import org .opensearch .ml .stats .InternalStatNames ;
28
+ import org .opensearch .ml .stats .MLStats ;
24
29
import org .opensearch .monitor .jvm .JvmService ;
25
30
import org .opensearch .threadpool .ThreadPool ;
26
31
import org .opensearch .transport .TransportService ;
27
32
28
- import java .io .IOException ;
29
- import java .util .HashMap ;
30
- import java .util .List ;
31
- import java .util .Map ;
32
- import java .util .Set ;
33
-
34
33
public class MLStatsNodesTransportAction extends
35
- TransportNodesAction <MLStatsNodesRequest , MLStatsNodesResponse , MLStatsNodeRequest , MLStatsNodeResponse > {
34
+ TransportNodesAction <MLStatsNodesRequest , MLStatsNodesResponse , MLStatsNodeRequest , MLStatsNodeResponse > {
36
35
private MLStats mlStats ;
37
36
private final JvmService jvmService ;
38
37
@@ -48,33 +47,33 @@ public class MLStatsNodesTransportAction extends
48
47
*/
49
48
@ Inject
50
49
public MLStatsNodesTransportAction (
51
- ThreadPool threadPool ,
52
- ClusterService clusterService ,
53
- TransportService transportService ,
54
- ActionFilters actionFilters ,
55
- MLStats mlStats ,
56
- JvmService jvmService
50
+ ThreadPool threadPool ,
51
+ ClusterService clusterService ,
52
+ TransportService transportService ,
53
+ ActionFilters actionFilters ,
54
+ MLStats mlStats ,
55
+ JvmService jvmService
57
56
) {
58
57
super (
59
- MLStatsNodesAction .NAME ,
60
- threadPool ,
61
- clusterService ,
62
- transportService ,
63
- actionFilters ,
64
- MLStatsNodesRequest ::new ,
65
- MLStatsNodeRequest ::new ,
66
- ThreadPool .Names .MANAGEMENT ,
67
- MLStatsNodeResponse .class
58
+ MLStatsNodesAction .NAME ,
59
+ threadPool ,
60
+ clusterService ,
61
+ transportService ,
62
+ actionFilters ,
63
+ MLStatsNodesRequest ::new ,
64
+ MLStatsNodeRequest ::new ,
65
+ ThreadPool .Names .MANAGEMENT ,
66
+ MLStatsNodeResponse .class
68
67
);
69
68
this .mlStats = mlStats ;
70
69
this .jvmService = jvmService ;
71
70
}
72
71
73
72
@ Override
74
73
protected MLStatsNodesResponse newResponse (
75
- MLStatsNodesRequest request ,
76
- List <MLStatsNodeResponse > responses ,
77
- List <FailedNodeException > failures
74
+ MLStatsNodesRequest request ,
75
+ List <MLStatsNodeResponse > responses ,
76
+ List <FailedNodeException > failures
78
77
) {
79
78
return new MLStatsNodesResponse (clusterService .getClusterName (), responses , failures );
80
79
}
@@ -112,4 +111,3 @@ private MLStatsNodeResponse createMLStatsNodeResponse(MLStatsNodesRequest mlStat
112
111
return new MLStatsNodeResponse (clusterService .localNode (), statValues );
113
112
}
114
113
}
115
-
0 commit comments