
com.groupbyinc.flux.rest.action.cat.RestPluginsAction.class Maven / Gradle / Ivy
???? 3' 5com/groupbyinc/flux/rest/action/cat/RestPluginsAction 5com/groupbyinc/flux/rest/action/cat/AbstractCatAction RestPluginsAction.java 7com/groupbyinc/flux/rest/action/cat/RestPluginsAction$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/plugins 'com/groupbyinc/flux/rest/RestController registerHandler h(Lcom/groupbyinc/flux/rest/RestRequest$Method;Ljava/lang/String;Lcom/groupbyinc/flux/rest/RestHandler;)V
this 7Lcom/groupbyinc/flux/rest/action/cat/RestPluginsAction; 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/plugins
( 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/RestPluginsAction;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 | id ~ !default:false;desc:unique node id ? addCell H(Ljava/lang/Object;Ljava/lang/String;)Lcom/groupbyinc/flux/common/Table; ? ?
x ? name ? alias:n;desc:node name ? component ? alias:c;desc:component ? version ? alias:v;desc:component version ? type ? )alias:t;desc:type (j for JVM, s for Site) ? url ? !alias:u;desc:url for site plugins ? description ? )alias:d;default:false;desc:plugin details ?
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/common/Table; 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; ? ?
? ? java/util/Iterator ? hasNext ? C ? ? next ()Ljava/lang/Object; ? ? ? ? .com/groupbyinc/flux/cluster/node/DiscoveryNode ? Dcom/groupbyinc/flux/action/admin/cluster/node/info/NodesInfoResponse ? 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 ?
getPlugins H()Lcom/groupbyinc/flux/action/admin/cluster/node/info/PluginsAndModules; ? ?
? ? Dcom/groupbyinc/flux/action/admin/cluster/node/info/PluginsAndModules ? getPluginInfos ()Ljava/util/List; ? ?
? ? java/util/List ? ()Ljava/util/Iterator; ? ? ? ? &com/groupbyinc/flux/plugins/PluginInfo ? startRow ? {
x ? 6(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/Table; ? ?
x ? ? ?
? ? getName ? ?
? ?
getVersion ? ?
? ? isSite ? C
? ? isJvm ? C
? ? j/s ? s ? j ? ? java/lang/String getUrl ?
? getDescription ?
? endRow {
x
Ljava/lang/String;
pluginInfo (Lcom/groupbyinc/flux/plugins/PluginInfo; info =Lcom/groupbyinc/flux/action/admin/cluster/node/info/NodeInfo; node 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; 1Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;
access$000(Lcom/groupbyinc/flux/rest/action/cat/RestPluginsAction;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/common/Table; ? ?
x0 x1 x2 x3 Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations
StackMapTable
SourceFile InnerClasses !
b *+,-? ,? *? ? ! * ! " # $ % " - . /# &