
com.groupbyinc.flux.rest.action.cat.RestPendingClusterTasksAction.class Maven / Gradle / Ivy
???? 3 ? Acom/groupbyinc/flux/rest/action/cat/RestPendingClusterTasksAction 5com/groupbyinc/flux/rest/action/cat/AbstractCatAction "RestPendingClusterTasksAction.java Ccom/groupbyinc/flux/rest/action/cat/RestPendingClusterTasksAction$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/pending_tasks 'com/groupbyinc/flux/rest/RestController registerHandler h(Lcom/groupbyinc/flux/rest/RestRequest$Method;Ljava/lang/String;Lcom/groupbyinc/flux/rest/RestHandler;)V
this CLcom/groupbyinc/flux/rest/action/cat/RestPendingClusterTasksAction; 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/pending_tasks
( 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 Icom/groupbyinc/flux/action/admin/cluster/tasks/PendingClusterTasksRequest 4 ()V
6
5 7 master_timeout 9 masterNodeTimeout -()Lcom/groupbyinc/flux/common/unit/TimeValue; ; <
5 = paramAsTime j(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/common/unit/TimeValue; ? @
A j(Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/action/support/master/MasterNodeRequest; ; C
5 D local F ()Z F H
5 I paramAsBoolean (Ljava/lang/String;Z)Z K L
M D(Z)Lcom/groupbyinc/flux/action/support/master/MasterNodeReadRequest; F O
5 P !com/groupbyinc/flux/client/Client R admin *()Lcom/groupbyinc/flux/client/AdminClient; T U S V &com/groupbyinc/flux/client/AdminClient X cluster 1()Lcom/groupbyinc/flux/client/ClusterAdminClient; Z [ Y \ ?(Lcom/groupbyinc/flux/rest/action/cat/RestPendingClusterTasksAction;Lcom/groupbyinc/flux/rest/RestChannel;Lcom/groupbyinc/flux/rest/RestRequest;)V
^
_ -com/groupbyinc/flux/client/ClusterAdminClient a pendingClusterTasks y(Lcom/groupbyinc/flux/action/admin/cluster/tasks/PendingClusterTasksRequest;Lcom/groupbyinc/flux/action/ActionListener;)V c d b e request &Lcom/groupbyinc/flux/rest/RestRequest; channel &Lcom/groupbyinc/flux/rest/RestChannel; pendingClusterTasksRequest KLcom/groupbyinc/flux/action/admin/cluster/tasks/PendingClusterTasksRequest; getTableWithHeader J(Lcom/groupbyinc/flux/rest/RestRequest;)Lcom/groupbyinc/flux/common/Table; com/groupbyinc/flux/common/Table o
p 7 startHeaders $()Lcom/groupbyinc/flux/common/Table; r s
p t insertOrder v 2alias:o;text-align:right;desc:task insertion order x addCell H(Ljava/lang/Object;Ljava/lang/String;)Lcom/groupbyinc/flux/common/Table; z {
p | timeInQueue ~ =alias:t;text-align:right;desc:how long task has been in queue ? priority ? alias:p;desc:task priority ? source ? alias:s;desc:task source ?
endHeaders ? s
p ? t "Lcom/groupbyinc/flux/common/Table;
buildTable ?(Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/action/admin/cluster/tasks/PendingClusterTasksResponse;)Lcom/groupbyinc/flux/common/Table; m n
? Jcom/groupbyinc/flux/action/admin/cluster/tasks/PendingClusterTasksResponse ? iterator ()Ljava/util/Iterator; ? ?
? ? java/util/Iterator ? hasNext ? H ? ? next ()Ljava/lang/Object; ? ? ? ? 6com/groupbyinc/flux/cluster/service/PendingClusterTask ? startRow ? s
p ? getInsertOrder ()J ? ?
? ? java/lang/Long ? valueOf (J)Ljava/lang/Long; ? ?
? ? 6(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/Table; z ?
p ? getTimeInQueue ? <
? ? getPriority '()Lcom/groupbyinc/flux/common/Priority; ? ?
? ? getSource (()Lcom/groupbyinc/flux/common/text/Text; ? ?
? ? endRow ? s
p ? task 8Lcom/groupbyinc/flux/cluster/service/PendingClusterTask; tasks LLcom/groupbyinc/flux/action/admin/cluster/tasks/PendingClusterTasksResponse;
access$000 ?(Lcom/groupbyinc/flux/rest/action/cat/RestPendingClusterTasksAction;Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/action/admin/cluster/tasks/PendingClusterTasksResponse;)Lcom/groupbyinc/flux/common/Table; ? ?
? x0 x1 x2 Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations
StackMapTable
SourceFile InnerClasses !
? b *+,-? ,? *? ? ? * ! " # $ % ? &