
com.groupbyinc.flux.rest.action.cat.RestSegmentsAction.class Maven / Gradle / Ivy
???? 3? 6com/groupbyinc/flux/rest/action/cat/RestSegmentsAction 5com/groupbyinc/flux/rest/action/cat/AbstractCatAction RestSegmentsAction.java 8com/groupbyinc/flux/rest/action/cat/RestSegmentsAction$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/segments 'com/groupbyinc/flux/rest/RestController registerHandler h(Lcom/groupbyinc/flux/rest/RestRequest$Method;Ljava/lang/String;Lcom/groupbyinc/flux/rest/RestHandler;)V
/_cat/segments/{index} this 8Lcom/groupbyinc/flux/rest/action/cat/RestSegmentsAction; settings .Lcom/groupbyinc/flux/common/settings/Settings;
controller )Lcom/groupbyinc/flux/rest/RestController; client #Lcom/groupbyinc/flux/client/Client; doRequest 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 0 splitStringByCommaToArray '(Ljava/lang/String;)[Ljava/lang/String; 2 3
1 4 Bcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateRequest 6 ()V
8
7 9 local ; ()Z ; =
7 > paramAsBoolean (Ljava/lang/String;Z)Z @ A
B D(Z)Lcom/groupbyinc/flux/action/support/master/MasterNodeReadRequest; ; D
7 E master_timeout G masterNodeTimeout -()Lcom/groupbyinc/flux/common/unit/TimeValue; I J
7 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
7 R clear F()Lcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateRequest; T U
7 V nodes G(Z)Lcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateRequest; X Y
7 Z routingTable \ Y
7 ] indices Y([Ljava/lang/String;)Lcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateRequest; _ `
7 a !com/groupbyinc/flux/client/Client c admin *()Lcom/groupbyinc/flux/client/AdminClient; e f d g &com/groupbyinc/flux/client/AdminClient i cluster 1()Lcom/groupbyinc/flux/client/ClusterAdminClient; k l j m ?(Lcom/groupbyinc/flux/rest/action/cat/RestSegmentsAction;Lcom/groupbyinc/flux/rest/RestChannel;[Ljava/lang/String;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/rest/RestRequest;)V
o
p -com/groupbyinc/flux/client/ClusterAdminClient r state r(Lcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V t u s v request &Lcom/groupbyinc/flux/rest/RestRequest; channel &Lcom/groupbyinc/flux/rest/RestChannel; [Ljava/lang/String; clusterStateRequest DLcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateRequest;
documentation (Ljava/lang/StringBuilder;)V /_cat/segments
? java/lang/StringBuilder ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? /_cat/segments/{index}
? sb Ljava/lang/StringBuilder; getTableWithHeader J(Lcom/groupbyinc/flux/rest/RestRequest;)Lcom/groupbyinc/flux/common/Table; com/groupbyinc/flux/common/Table ?
? 9 startHeaders $()Lcom/groupbyinc/flux/common/Table; ? ?
? ? (default:true;alias:i,idx;desc:index name ? addCell H(Ljava/lang/Object;Ljava/lang/String;)Lcom/groupbyinc/flux/common/Table; ? ?
? ? shard ? 'default:true;alias:s,sh;desc:shard name ? prirep ? @alias:p,pr,primaryOrReplica;default:true;desc:primary or replica ? ip ? +default:true;desc:ip of node where it lives ? id ? 3default:false;desc:unique id of node where it lives ? segment ? (default:true;alias:seg;desc:segment name ?
generation ? Adefault:true;alias:g,gen;text-align:right;desc:segment generation ?
docs.count ? Odefault:true;alias:dc,docsCount;text-align:right;desc:number of docs in segment ? docs.deleted ? Ydefault:true;alias:dd,docsDeleted;text-align:right;desc:number of deleted docs in segment ? size ? Adefault:true;alias:si;text-align:right;desc:segment size in bytes ? size.memory ? Ndefault:true;alias:sm,sizeMemory;text-align:right;desc:segment memory in bytes ? committed ? ;default:true;alias:ic,isCommitted;desc:is segment committed ?
searchable ? ;default:true;alias:is,isSearchable;desc:is segment searched ? version ? %default:true;alias:v,ver;desc:version ? compound ? :default:true;alias:ico,isCompound;desc:is segment compound ?
endHeaders ? ?
? ? table "Lcom/groupbyinc/flux/common/Table;
buildTable ?(Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateResponse;Ljava/util/Map;)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; X ?
? ?
java/util/Map ? values ()Ljava/util/Collection; ? ? ? ? java/util/Collection ? iterator ()Ljava/util/Iterator; ? ? ? ? /com/groupbyinc/flux/cluster/node/DiscoveryNodes ? java/util/Iterator ? hasNext ? = ? ? next ()Ljava/lang/Object; ? ? ? ? ?com/groupbyinc/flux/action/admin/indices/segments/IndexSegments ? getShards ()Ljava/util/Map;
Dcom/groupbyinc/flux/action/admin/indices/segments/IndexShardSegments D()[Lcom/groupbyinc/flux/action/admin/indices/segments/ShardSegments;
B[Lcom/groupbyinc/flux/action/admin/indices/segments/ShardSegments;
?com/groupbyinc/flux/action/admin/indices/segments/ShardSegments getSegments ()Ljava/util/List;
java/util/List ? (com/groupbyinc/flux/index/engine/Segment startRow ?
? getShardRouting 4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting;
0com/groupbyinc/flux/cluster/routing/ShardRouting getIndex ()Ljava/lang/String; !
" 6(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/Table; ?$
?% getId ()I'(
) java/lang/Integer+ valueOf (I)Ljava/lang/Integer;-.
,/ primary1 =
2 p4 r6 java/lang/String8
currentNodeId:!
; get D(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;=>
?? .com/groupbyinc/flux/cluster/node/DiscoveryNodeA getHostAddressC!
BD getNameF!
G
getGeneration ()JIJ
K java/lang/LongM (J)Ljava/lang/Long;-O
NP
getNumDocsR(
S getDeletedDocsU(
V getSize 1()Lcom/groupbyinc/flux/common/unit/ByteSizeValue;XY
Z getMemoryInBytes\J
] isCommitted_ =
` java/lang/Booleanb (Z)Ljava/lang/Boolean;-d
ce isSearchg =
h
getVersion 9()Lcom/groupbyinc/flux/common/apache/lucene/util/Version;jk
l
isCompound ()Ljava/lang/Boolean;no
p endRowr ?
?s *Lcom/groupbyinc/flux/index/engine/Segment; segments ; Ljava/util/List; shardSegment ALcom/groupbyinc/flux/action/admin/indices/segments/ShardSegments;
shardSegments indexShardSegments FLcom/groupbyinc/flux/action/admin/indices/segments/IndexShardSegments; shards jLjava/util/Map; Ljava/util/Map;
indexSegments ALcom/groupbyinc/flux/action/admin/indices/segments/IndexSegments; ELcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateResponse; indicesSegments dLjava/util/Map; 1Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;
access$000 ?(Lcom/groupbyinc/flux/rest/action/cat/RestSegmentsAction;Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateResponse;Ljava/util/Map;)Lcom/groupbyinc/flux/common/Table; ? ?
? x0 x1 x2 x3 Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations LocalVariableTypeTable
StackMapTable Signature ?(Lcom/groupbyinc/flux/rest/RestRequest;Lcom/groupbyinc/flux/action/admin/cluster/state/ClusterStateResponse;Ljava/util/Map;)Lcom/groupbyinc/flux/common/Table;
SourceFile InnerClasses !
? p *+,-? ,? *? ,? *? ? ? * ! " # $ % &