
com.groupbyinc.flux.rest.action.admin.cluster.health.RestClusterHealthAction.class Maven / Gradle / Ivy
???? 3 ? Lcom/groupbyinc/flux/rest/action/admin/cluster/health/RestClusterHealthAction (com/groupbyinc/flux/rest/BaseRestHandler RestClusterHealthAction.java +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; /_cluster/health 'com/groupbyinc/flux/rest/RestController registerHandler h(Lcom/groupbyinc/flux/rest/RestRequest$Method;Ljava/lang/String;Lcom/groupbyinc/flux/rest/RestHandler;)V
/_cluster/health/{index} this NLcom/groupbyinc/flux/rest/action/admin/cluster/health/RestClusterHealthAction; settings .Lcom/groupbyinc/flux/common/settings/Settings;
controller )Lcom/groupbyinc/flux/rest/RestController; client #Lcom/groupbyinc/flux/client/Client;
handleRequest r(Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/rest/RestChannel;Lcom/groupbyinc/flux/client/Client;)V index ( param &(Ljava/lang/String;)Ljava/lang/String; * +
, "com/groupbyinc/flux/common/Strings . splitStringByCommaToArray '(Ljava/lang/String;)[Ljava/lang/String; 0 1
/ 2 #com/groupbyinc/flux/client/Requests 4 clusterHealthRequest [([Ljava/lang/String;)Lcom/groupbyinc/flux/action/admin/cluster/health/ClusterHealthRequest; 6 7
5 8 local : Dcom/groupbyinc/flux/action/admin/cluster/health/ClusterHealthRequest < ()Z : >
= ? paramAsBoolean (Ljava/lang/String;Z)Z A B
C D(Z)Lcom/groupbyinc/flux/action/support/master/MasterNodeReadRequest; : E
= F master_timeout H masterNodeTimeout -()Lcom/groupbyinc/flux/common/unit/TimeValue; J K
= L paramAsTime j(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/common/unit/TimeValue; N O
P j(Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/action/support/master/MasterNodeRequest; J R
= S timeout U U K
= W s(Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/action/admin/cluster/health/ClusterHealthRequest; U Y
= Z wait_for_status \ java/util/Locale ^ ROOT Ljava/util/Locale; ` a _ b java/lang/String d toUpperCase &(Ljava/util/Locale;)Ljava/lang/String; f g
e h 6com/groupbyinc/flux/cluster/health/ClusterHealthStatus j valueOf L(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/health/ClusterHealthStatus; l m
k n
waitForStatus ?(Lcom/groupbyinc/flux/cluster/health/ClusterHealthStatus;)Lcom/groupbyinc/flux/action/admin/cluster/health/ClusterHealthRequest; p q
= r wait_for_relocating_shards t waitForRelocatingShards ()I v w
= x
paramAsInt (Ljava/lang/String;I)I z {
| I(I)Lcom/groupbyinc/flux/action/admin/cluster/health/ClusterHealthRequest; v ~
= wait_for_active_shards ? waitForActiveShards ? w
= ? ? ~
= ? wait_for_nodes ? waitForNodes ()Ljava/lang/String; ? ?
= ? 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; * ?
? Z(Ljava/lang/String;)Lcom/groupbyinc/flux/action/admin/cluster/health/ClusterHealthRequest; ? ?
= ? !com/groupbyinc/flux/client/Client ? admin *()Lcom/groupbyinc/flux/client/AdminClient; ? ? ? ? &com/groupbyinc/flux/client/AdminClient ? cluster 1()Lcom/groupbyinc/flux/client/ClusterAdminClient; ? ? ? ? Dcom/groupbyinc/flux/rest/action/support/RestStatusToXContentListener ? )(Lcom/groupbyinc/flux/rest/RestChannel;)V ?
? ? -com/groupbyinc/flux/client/ClusterAdminClient ? health t(Lcom/groupbyinc/flux/action/admin/cluster/health/ClusterHealthRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ? ? ? ? request &Lcom/groupbyinc/flux/rest/RestRequest; channel &Lcom/groupbyinc/flux/rest/RestChannel; FLcom/groupbyinc/flux/action/admin/cluster/health/ClusterHealthRequest; Ljava/lang/String; Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations
StackMapTable
SourceFile InnerClasses ! ? p *+,-? ,? *? ,? *? ? ? * ! " # $ % ? + - . / ?
&