
com.groupbyinc.flux.rest.action.cat.RestNodeAttrsAction.class Maven / Gradle / Ivy
???? 3R 7com/groupbyinc/flux/rest/action/cat/RestNodeAttrsAction 5com/groupbyinc/flux/rest/action/cat/AbstractCatAction RestNodeAttrsAction.java 9com/groupbyinc/flux/rest/action/cat/RestNodeAttrsAction$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/nodeattrs 'com/groupbyinc/flux/rest/RestController registerHandler h(Lcom/groupbyinc/flux/rest/RestRequest$Method;Ljava/lang/String;Lcom/groupbyinc/flux/rest/RestHandler;)V
this 9Lcom/groupbyinc/flux/rest/action/cat/RestNodeAttrsAction; 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/nodeattrs
( 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/RestNodeAttrsAction;Lcom/groupbyinc/flux/rest/RestChannel;Lcom/groupbyinc/flux/client/Client;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 | node ~ &default:true;alias:name;desc:node name ? addCell H(Ljava/lang/Object;Ljava/lang/String;)Lcom/groupbyinc/flux/common/Table; ? ?
x ? id ? 1default:false;alias:id,nodeId;desc:unique node id ? pid ? %default:false;alias:p;desc:process id ? host ? alias:h;desc:host name ? ip ? alias:i;desc:ip address ? port ? 0default:false;alias:po;desc:bound transport port ? attr ? 7default:true;alias:attr.name;desc:attribute description ? value ? 2default:true;alias:attr.value;desc:attribute value ?
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/action/admin/cluster/node/info/NodesInfoResponse;Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsResponse;)Lcom/groupbyinc/flux/common/Table; full_id ? 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; = ?
? ? u v
? /com/groupbyinc/flux/cluster/node/DiscoveryNodes ? iterator I()Lcom/groupbyinc/flux/common/google/common/collect/UnmodifiableIterator; ? ?
? ? Dcom/groupbyinc/flux/action/admin/cluster/node/info/NodesInfoResponse ? Fcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsResponse ? java/util/Iterator ? hasNext ? C ? ? next ()Ljava/lang/Object; ? ? ? ? .com/groupbyinc/flux/cluster/node/DiscoveryNode ? getNodesMap ()Ljava/util/Map; ? ?
? ? ()Ljava/lang/String; ? ?
? ?
java/util/Map ? get &(Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? ;com/groupbyinc/flux/action/admin/cluster/node/info/NodeInfo ?
getAttributes A()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; ? ?
? ? =com/groupbyinc/flux/common/google/common/collect/ImmutableMap ? keySet A()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet; ? ?
? ? =com/groupbyinc/flux/common/google/common/collect/ImmutableSet ?
? ? java/lang/String ? startRow ? {
x ? name ? ?
? ? 6(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/Table; ? ?
x ? getId ? ?
? ? "com/groupbyinc/flux/common/Strings ? substring ((Ljava/lang/String;II)Ljava/lang/String; ? ?
? ?
getProcess 3()Lcom/groupbyinc/flux/monitor/process/ProcessInfo; ? ?
? ? /com/groupbyinc/flux/monitor/process/ProcessInfo ()J ?
java/lang/Long valueOf (J)Ljava/lang/Long;
getHostName ?
?
getHostAddress ?
? address 9()Lcom/groupbyinc/flux/common/transport/TransportAddress;
? ?com/groupbyinc/flux/common/transport/InetSocketTransportAddress ()Ljava/net/InetSocketAddress;
java/net/InetSocketAddress getPort ()I
java/lang/Integer! (I)Ljava/lang/Integer;#
"$ -& containsKey (Ljava/lang/Object;)Z()
?*
? ? endRow- {
x. att Ljava/lang/String; info =Lcom/groupbyinc/flux/action/admin/cluster/node/info/NodeInfo; attrs eLcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; ?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; req ELcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateResponse; nodesInfo FLcom/groupbyinc/flux/action/admin/cluster/node/info/NodesInfoResponse;
nodesStats HLcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsResponse; fullId Z 1Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;
access$000V(Lcom/groupbyinc/flux/rest/action/cat/RestNodeAttrsAction;Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateResponse;Lcom/groupbyinc/flux/action/admin/cluster/node/info/NodesInfoResponse;Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsResponse;)Lcom/groupbyinc/flux/common/Table; ? ?
C x0 x1 x2 x3 x4 Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations LocalVariableTypeTable
StackMapTable
SourceFile InnerClasses !
J b *+,-? ,? *? ? K * ! " # $ % L 0 1 2M &