
com.groupbyinc.flux.rest.action.cat.RestMasterAction.class Maven / Gradle / Ivy
???? 3 ? 4com/groupbyinc/flux/rest/action/cat/RestMasterAction 5com/groupbyinc/flux/rest/action/cat/AbstractCatAction RestMasterAction.java 6com/groupbyinc/flux/rest/action/cat/RestMasterAction$1 +com/groupbyinc/flux/rest/RestRequest$Method $com/groupbyinc/flux/rest/RestRequest
Method }(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/rest/RestController;Lcom/groupbyinc/flux/client/Client;)V *Lcom/groupbyinc/flux/common/inject/Inject;
GET -Lcom/groupbyinc/flux/rest/RestRequest$Method; /_cat/master 'com/groupbyinc/flux/rest/RestController registerHandler h(Lcom/groupbyinc/flux/rest/RestRequest$Method;Ljava/lang/String;Lcom/groupbyinc/flux/rest/RestHandler;)V
this 6Lcom/groupbyinc/flux/rest/action/cat/RestMasterAction; settings .Lcom/groupbyinc/flux/common/settings/Settings;
controller )Lcom/groupbyinc/flux/rest/RestController; client #Lcom/groupbyinc/flux/client/Client;
documentation (Ljava/lang/StringBuilder;)V
/_cat/master
( java/lang/StringBuilder * append -(Ljava/lang/String;)Ljava/lang/StringBuilder; , -
+ . sb Ljava/lang/StringBuilder; doRequest r(Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/rest/RestChannel;Lcom/groupbyinc/flux/client/Client;)V Bcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateRequest 4 ()V
6
5 7 clear F()Lcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateRequest; 9 :
5 ; nodes G(Z)Lcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateRequest; = >
5 ? local A ()Z A C
5 D paramAsBoolean (Ljava/lang/String;Z)Z F G
H D(Z)Lcom/groupbyinc/flux/action/support/master/MasterNodeReadRequest; A J
5 K master_timeout M masterNodeTimeout -()Lcom/groupbyinc/flux/common/unit/TimeValue; O P
5 Q paramAsTime j(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/common/unit/TimeValue; S T
U j(Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/action/support/master/MasterNodeRequest; O W
5 X !com/groupbyinc/flux/client/Client Z admin *()Lcom/groupbyinc/flux/client/AdminClient; \ ] [ ^ &com/groupbyinc/flux/client/AdminClient ` cluster 1()Lcom/groupbyinc/flux/client/ClusterAdminClient; b c a d ?(Lcom/groupbyinc/flux/rest/action/cat/RestMasterAction;Lcom/groupbyinc/flux/rest/RestChannel;Lcom/groupbyinc/flux/rest/RestRequest;)V
f
g -com/groupbyinc/flux/client/ClusterAdminClient i state r(Lcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V k l j m request &Lcom/groupbyinc/flux/rest/RestRequest; channel &Lcom/groupbyinc/flux/rest/RestChannel; clusterStateRequest DLcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateRequest; getTableWithHeader J(Lcom/groupbyinc/flux/rest/RestRequest;)Lcom/groupbyinc/flux/common/Table; com/groupbyinc/flux/common/Table w
x 7 startHeaders $()Lcom/groupbyinc/flux/common/Table; z {
x | id ~ desc:node id ? addCell H(Ljava/lang/Object;Ljava/lang/String;)Lcom/groupbyinc/flux/common/Table; ? ?
x ? host ? alias:h;desc:host name ? ip ? desc:ip address ? node ? alias:n;desc:node name ?
endHeaders ? {
x ? table "Lcom/groupbyinc/flux/common/Table;
buildTable ?(Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateResponse;)Lcom/groupbyinc/flux/common/Table; u v
? Ccom/groupbyinc/flux/action/admin/cluster/state/ClusterStateResponse ? getState ,()Lcom/groupbyinc/flux/cluster/ClusterState; ? ?
? ? (com/groupbyinc/flux/cluster/ClusterState ? 3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes; = ?
? ? startRow ? {
x ? /com/groupbyinc/flux/cluster/node/DiscoveryNodes ? masterNodeId ()Ljava/lang/String; ? ?
? ? get D(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; ? ?
? ? - ? 6(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/Table; ? ?
x ? .com/groupbyinc/flux/cluster/node/DiscoveryNode ? getId ? ?
? ? getHostName ? ?
? ? getHostAddress ? ?
? ? getName ? ?
? ? endRow ? {
x ? ELcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateResponse; 1Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes; master 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;
access$000 ?(Lcom/groupbyinc/flux/rest/action/cat/RestMasterAction;Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateResponse;)Lcom/groupbyinc/flux/common/Table; ? ?
? x0 x1 x2 Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations
StackMapTable
SourceFile InnerClasses !
? b *+,-? ,? *? ? ? * ! " # $ % ? ( ) * ? &