@@ -56,7 +56,7 @@ public class NodeService extends AbstractComponent {
56
56
57
57
private final Version version ;
58
58
59
- private final Discovery disovery ;
59
+ private final Discovery discovery ;
60
60
61
61
@ Inject
62
62
public NodeService (Settings settings , ThreadPool threadPool , MonitorService monitorService , Discovery discovery ,
@@ -67,7 +67,7 @@ public NodeService(Settings settings, ThreadPool threadPool, MonitorService moni
67
67
this .monitorService = monitorService ;
68
68
this .transportService = transportService ;
69
69
this .indicesService = indicesService ;
70
- this .disovery = discovery ;
70
+ this .discovery = discovery ;
71
71
discovery .setNodeService (this );
72
72
this .version = version ;
73
73
this .pluginService = pluginService ;
@@ -104,7 +104,7 @@ public ImmutableMap<String, String> attributes() {
104
104
}
105
105
106
106
public NodeInfo info () {
107
- return new NodeInfo (version , Build .CURRENT , disovery .localNode (), serviceAttributes ,
107
+ return new NodeInfo (version , Build .CURRENT , discovery .localNode (), serviceAttributes ,
108
108
settings ,
109
109
monitorService .osService ().info (),
110
110
monitorService .processService ().info (),
@@ -119,7 +119,7 @@ public NodeInfo info() {
119
119
120
120
public NodeInfo info (boolean settings , boolean os , boolean process , boolean jvm , boolean threadPool ,
121
121
boolean network , boolean transport , boolean http , boolean plugin ) {
122
- return new NodeInfo (version , Build .CURRENT , disovery .localNode (), serviceAttributes ,
122
+ return new NodeInfo (version , Build .CURRENT , discovery .localNode (), serviceAttributes ,
123
123
settings ? this .settings : null ,
124
124
os ? monitorService .osService ().info () : null ,
125
125
process ? monitorService .processService ().info () : null ,
@@ -135,7 +135,7 @@ public NodeInfo info(boolean settings, boolean os, boolean process, boolean jvm,
135
135
public NodeStats stats () {
136
136
// for indices stats we want to include previous allocated shards stats as well (it will
137
137
// only be applied to the sensible ones to use, like refresh/merge/flush/indexing stats)
138
- return new NodeStats (disovery .localNode (), System .currentTimeMillis (),
138
+ return new NodeStats (discovery .localNode (), System .currentTimeMillis (),
139
139
indicesService .stats (true ),
140
140
monitorService .osService ().stats (),
141
141
monitorService .processService ().stats (),
@@ -153,7 +153,7 @@ public NodeStats stats(CommonStatsFlags indices, boolean os, boolean process, bo
153
153
boolean fs , boolean transport , boolean http , boolean circuitBreaker ) {
154
154
// for indices stats we want to include previous allocated shards stats as well (it will
155
155
// only be applied to the sensible ones to use, like refresh/merge/flush/indexing stats)
156
- return new NodeStats (disovery .localNode (), System .currentTimeMillis (),
156
+ return new NodeStats (discovery .localNode (), System .currentTimeMillis (),
157
157
indices .anySet () ? indicesService .stats (true , indices ) : null ,
158
158
os ? monitorService .osService ().stats () : null ,
159
159
process ? monitorService .processService ().stats () : null ,
0 commit comments