@@ -121,24 +121,24 @@ public void onFailure(Throwable e) {
121
121
Table getTableWithHeader (final RestRequest request ) {
122
122
Table table = new Table ();
123
123
table .startHeaders ();
124
- table .addCell ("nodeId" );
125
- table .addCell ("pid" );
126
- table .addCell ("ip" );
127
- table .addCell ("port" );
128
-
129
- table .addCell ("es" );
130
- table .addCell ("jdk" );
131
- table .addCell ("diskAvail" , "text-align:right;" );
132
- table .addCell ("heapPercent" , "text-align:right;" );
133
- table .addCell ("heapMax" , "text-align:right;" );
134
- table .addCell ("ramPercent" , "text-align:right;" );
135
- table .addCell ("ramMax" , "text-align:right;" );
136
-
137
- table .addCell ("load" , "text-align:right;" );
138
- table .addCell ("uptime" , "text-align:right;" );
139
- table .addCell ("data/client" );
140
- table .addCell ("master" );
141
- table .addCell ("name" );
124
+ table .addCell ("nodeId" , "desc:unique node id" );
125
+ table .addCell ("pid" , "desc:process id" );
126
+ table .addCell ("ip" , "desc:ip address" );
127
+ table .addCell ("port" , "desc:bound transport port" );
128
+
129
+ table .addCell ("es" , "desc:es version" );
130
+ table .addCell ("jdk" , "desc:jdk version" );
131
+ table .addCell ("diskAvail" , "text-align:right;desc:available disk space " );
132
+ table .addCell ("heapPercent" , "text-align:right;desc:used heap ratio " );
133
+ table .addCell ("heapMax" , "text-align:right;desc:max configured heap " );
134
+ table .addCell ("ramPercent" , "text-align:right;desc:used machine memory ratio " );
135
+ table .addCell ("ramMax" , "text-align:right;desc:total machine memory " );
136
+
137
+ table .addCell ("load" , "text-align:right;desc:most recent load avg " );
138
+ table .addCell ("uptime" , "text-align:right;desc:node uptime " );
139
+ table .addCell ("data/client" , "desc:d:data node, c:client node" );
140
+ table .addCell ("master" , "desc:m:master-eligible, *:current master" );
141
+ table .addCell ("name" , "desc:node name" );
142
142
table .endHeaders ();
143
143
return table ;
144
144
}
@@ -189,7 +189,7 @@ private Table buildTable(RestRequest req, ClusterStateResponse state, NodesInfoR
189
189
table .addCell (info == null ? null : info .getOs ().mem () == null ? null : info .getOs ().mem ().total ()); // sigar fails to load in IntelliJ
190
190
table .addCell (stats == null ? null : stats .getOs () == null ? null : stats .getOs ().getLoadAverage ().length < 1 ? null : stats .getOs ().getLoadAverage ()[0 ]);
191
191
table .addCell (stats == null ? null : stats .getJvm ().uptime ());
192
- table .addCell (node .clientNode () ? "c" : node .dataNode () ? "d" : null );
192
+ table .addCell (node .clientNode () ? "c" : node .dataNode () ? "d" : "-" );
193
193
table .addCell (masterId .equals (node .id ()) ? "*" : node .masterNode () ? "m" : "-" );
194
194
table .addCell (node .name ());
195
195
0 commit comments