
com.groupbyinc.flux.rest.action.cat.RestThreadPoolAction.class Maven / Gradle / Ivy
???? 3z 8com/groupbyinc/flux/rest/action/cat/RestThreadPoolAction 5com/groupbyinc/flux/rest/action/cat/AbstractCatAction RestThreadPoolAction.java :com/groupbyinc/flux/rest/action/cat/RestThreadPoolAction$1 4com/groupbyinc/flux/threadpool/ThreadPoolStats$Stats .com/groupbyinc/flux/threadpool/ThreadPoolStats
Stats .com/groupbyinc/flux/threadpool/ThreadPool$Info
)com/groupbyinc/flux/threadpool/ThreadPool Info /com/groupbyinc/flux/threadpool/ThreadPool$Names Names +com/groupbyinc/flux/rest/RestRequest$Method $com/groupbyinc/flux/rest/RestRequest Method 8com/groupbyinc/flux/threadpool/ThreadPool$ThreadPoolType ThreadPoolType SUPPORTED_NAMES [Ljava/lang/String; SUPPORTED_ALIASES DEFAULT_THREAD_POOLS ALIAS_TO_THREAD_POOL Ljava/util/Map; 5Ljava/util/Map; THREAD_POOL_TO_ALIAS $assertionsDisabled Z }(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/thread_pool 0 'com/groupbyinc/flux/rest/RestController 2 registerHandler h(Lcom/groupbyinc/flux/rest/RestRequest$Method;Ljava/lang/String;Lcom/groupbyinc/flux/rest/RestHandler;)V 4 5
3 6 this :Lcom/groupbyinc/flux/rest/action/cat/RestThreadPoolAction; 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/thread_pool
B java/lang/StringBuilder D append -(Ljava/lang/String;)Ljava/lang/StringBuilder; F G
E H 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 N ()V ' P
O Q clear F()Lcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateRequest; S T
O U nodes G(Z)Lcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateRequest; W X
O Y local [ ()Z [ ]
O ^ paramAsBoolean (Ljava/lang/String;Z)Z ` a
b D(Z)Lcom/groupbyinc/flux/action/support/master/MasterNodeReadRequest; [ d
O e master_timeout g masterNodeTimeout -()Lcom/groupbyinc/flux/common/unit/TimeValue; i j
O k paramAsTime j(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/common/unit/TimeValue; m n
o j(Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/action/support/master/MasterNodeRequest; i q
O r !com/groupbyinc/flux/client/Client t admin *()Lcom/groupbyinc/flux/client/AdminClient; v w u x &com/groupbyinc/flux/client/AdminClient z cluster 1()Lcom/groupbyinc/flux/client/ClusterAdminClient; | } { ~ ?(Lcom/groupbyinc/flux/rest/action/cat/RestThreadPoolAction;Lcom/groupbyinc/flux/rest/RestChannel;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/rest/RestRequest;)V ' ?
? -com/groupbyinc/flux/client/ClusterAdminClient ? state r(Lcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ? ? ? ? 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 ?
? Q startHeaders $()Lcom/groupbyinc/flux/common/Table; ? ?
? ? id ? .default:false;alias:nodeId;desc:unique node id ? addCell H(Ljava/lang/Object;Ljava/lang/String;)Lcom/groupbyinc/flux/common/Table; ? ?
? ? 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 ? ? fetchSortedPools N(Lcom/groupbyinc/flux/rest/RestRequest;[Ljava/lang/String;)[Ljava/lang/String; ? ?
? ? $ " ?
java/util/Map ? get &(Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? java/lang/String ? equals (Ljava/lang/Object;)Z ? ?
? ? java/lang/Boolean ? toString (Z)Ljava/lang/String; ? ?
? ?
E Q .type ? ()Ljava/lang/String; ? ?
E ? alias: ? t;default:false;desc: ? thread pool type ? .active ?
a;default: ? (;text-align:right;desc:number of active ? threads ? .size ? 0s;default:false;text-align:right;desc:number of ? .queue ?
q;default: ? !;text-align:right;desc:number of ? threads in queue ?
.queueSize ? 9qs;default:false;text-align:right;desc:maximum number of ? .rejected ?
r;default: ? *;text-align:right;desc:number of rejected ? .largest ? Dl;default:false;text-align:right;desc:highest number of seen active ?
.completed ? :c;default:false;text-align:right;desc:number of completed ? .min ? 9mi;default:false;text-align:right;desc:minimum number of .max 9ma;default:false;text-align:right;desc:maximum number of
.keepAlive &k;default:false;text-align:right;desc: thread keep alive time
endHeaders
?
?
requestedPool Ljava/lang/String; poolAlias display defaultDisplayVal pool table "Lcom/groupbyinc/flux/common/Table; requestedPools
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; W%
$& ? ?
( /com/groupbyinc/flux/cluster/node/DiscoveryNodes* iterator I()Lcom/groupbyinc/flux/common/google/common/collect/UnmodifiableIterator;,-
+. Dcom/groupbyinc/flux/action/admin/cluster/node/info/NodesInfoResponse0 Fcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsResponse2 java/util/Iterator4 hasNext6 ]57 next ()Ljava/lang/Object;9:5; .com/groupbyinc/flux/cluster/node/DiscoveryNode= getNodesMap ()Ljava/util/Map;?@
1A ? ?
>C ;com/groupbyinc/flux/action/admin/cluster/node/info/NodeInfoE
3A =com/groupbyinc/flux/action/admin/cluster/node/stats/NodeStatsH startRowJ ?
?K getIdM ?
>N "com/groupbyinc/flux/common/StringsP substring ((Ljava/lang/String;II)Ljava/lang/String;RS
QT 6(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/Table; ?V
?W
getProcess 3()Lcom/groupbyinc/flux/monitor/process/ProcessInfo;YZ
F[ /com/groupbyinc/flux/monitor/process/ProcessInfo] ()JM_
^` java/lang/Longb valueOf (J)Ljava/lang/Long;de
cf getHostNameh ?
>i getHostAddressk ?
>l address 9()Lcom/groupbyinc/flux/common/transport/TransportAddress;no
>p ?com/groupbyinc/flux/common/transport/InetSocketTransportAddressr ()Ljava/net/InetSocketAddress;nt
su java/net/InetSocketAddressw getPort ()Iyz
x{ java/lang/Integer} (I)Ljava/lang/Integer;d
~? -? java/util/Collections? emptyMap?@
?? java/util/HashMap? (I)V '?
??
getThreadPool 2()Lcom/groupbyinc/flux/threadpool/ThreadPoolStats;??
I? ()Ljava/util/Iterator;,?
? getName? ?
? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;?? ?? 1()Lcom/groupbyinc/flux/threadpool/ThreadPoolInfo;??
F? -com/groupbyinc/flux/threadpool/ThreadPoolInfo?
??
? getQueueSize -()Lcom/groupbyinc/flux/common/unit/SizeValue;??
? )com/groupbyinc/flux/common/unit/SizeValue? singles?_
?? getKeepAlive? j
? )com/groupbyinc/flux/common/unit/TimeValue?
? ? getMin?z
? getMax?z
? getThreadPoolType <()Lcom/groupbyinc/flux/threadpool/ThreadPool$ThreadPoolType;??
? getType? ?
? getActive?z
?
getThreads?z
? getQueue?z
? getRejected?_
?
getLargest?z
? getCompleted?_
? endRow? ?
?? poolThreadStats YLjava/util/Map; poolThreadInfo SLjava/util/Map; threadPoolStat 6Lcom/groupbyinc/flux/threadpool/ThreadPoolStats$Stats; threadPoolInfo 0Lcom/groupbyinc/flux/threadpool/ThreadPool$Info; threadPoolStats 0Lcom/groupbyinc/flux/threadpool/ThreadPoolStats; poolStats poolInfo maxQueueSize Ljava/lang/Long; keepAlive
minThreads Ljava/lang/Integer;
maxThreads info =Lcom/groupbyinc/flux/action/admin/cluster/node/info/NodeInfo; stats ?Lcom/groupbyinc/flux/action/admin/cluster/node/stats/NodeStats; 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;
nodesStats HLcom/groupbyinc/flux/action/admin/cluster/node/stats/NodesStatsResponse; fullId 1Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes; h? paramAsStringArray :(Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;??
? java/util/LinkedHashSet?
??
java/util/Set? indexOf (I)I?
? (II)Ljava/lang/String;R
? containsKey ? ? add ??
! " sizez? toArray (([Ljava/lang/Object;)[Ljava/lang/Object;? headerPrefix dotIndex I header #Ljava/util/Set; Ljava/util/Set; defaults headers
access$000W(Lcom/groupbyinc/flux/rest/action/cat/RestThreadPoolAction;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;
x0 x1 x2 x3 x4 java/lang/Class' desiredAssertionStatus) ]
(* % & , bulk. flush0 generic2 ? index5
management7 force_merge9 percolate; refresh= search? snapshotA suggestC warmerE bG fI geK gM iO maQ fmS pU rW sY sn[ su] w_ a java/lang/AssertionErrorc SUPPORTED_NAMES/ALIASES mismatche (Ljava/lang/Object;)V 'g
dh 5com/groupbyinc/flux/common/google/common/collect/Mapsj newHashMapWithExpectedSize (I)Ljava/util/HashMap;lm
kn supportedThreadPool Signature Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations
StackMapTable LocalVariableTypeTable
SourceFile InnerClasses ! ! " q # $ " q # % &