
com.groupbyinc.flux.action.admin.cluster.snapshots.status.SnapshotStatus.class Maven / Gradle / Ivy
???? 3J Hcom/groupbyinc/flux/action/admin/cluster/snapshots/status/SnapshotStatus java/lang/Object .com/groupbyinc/flux/common/xcontent/ToXContent /com/groupbyinc/flux/common/io/stream/Streamable SnapshotStatus.java Ocom/groupbyinc/flux/action/admin/cluster/snapshots/status/SnapshotStatus$Fields
Fields 5com/groupbyinc/flux/cluster/SnapshotsInProgress$State
/com/groupbyinc/flux/cluster/SnapshotsInProgress State Ecom/groupbyinc/flux/common/google/common/collect/ImmutableMap$Builder =com/groupbyinc/flux/common/google/common/collect/ImmutableMap Builder 5com/groupbyinc/flux/common/xcontent/ToXContent$Params Params
snapshotId 1Lcom/groupbyinc/flux/cluster/metadata/SnapshotId; state 7Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$State; shards Ljava/util/List; fLjava/util/List;
indicesStatus ?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; ?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; shardsStats OLcom/groupbyinc/flux/action/admin/cluster/snapshots/status/SnapshotShardsStats; stats ILcom/groupbyinc/flux/action/admin/cluster/snapshots/status/SnapshotStats; {(Lcom/groupbyinc/flux/cluster/metadata/SnapshotId;Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$State;Ljava/util/List;)V ()V ( *
+ - / 1 Mcom/groupbyinc/flux/action/admin/cluster/snapshots/status/SnapshotShardsStats 3 (Ljava/util/Collection;)V ( 5
4 6 $ % 8 updateShardStats : *
; this JLcom/groupbyinc/flux/action/admin/cluster/snapshots/status/SnapshotStatus;
getSnapshotId 3()Lcom/groupbyinc/flux/cluster/metadata/SnapshotId; getState 9()Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$State; getShards ()Ljava/util/List; getShardsStats Q()Lcom/groupbyinc/flux/action/admin/cluster/snapshots/status/SnapshotShardsStats;
getIndices ()Ljava/util/Map; ! " I builder I()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap$Builder; K L
M 5com/groupbyinc/flux/common/google/common/collect/Sets O
newHashSet ()Ljava/util/HashSet; Q R
P S java/util/List U iterator ()Ljava/util/Iterator; W X V Y
java/util/Set [ java/util/Iterator ] hasNext ()Z _ ` ^ a next ()Ljava/lang/Object; c d ^ e Rcom/groupbyinc/flux/action/admin/cluster/snapshots/status/SnapshotIndexShardStatus g getIndex ()Ljava/lang/String; i j
h k add (Ljava/lang/Object;)Z m n \ o \ Y java/lang/String r java/util/ArrayList t
u + equals w n
s x V o Mcom/groupbyinc/flux/action/admin/cluster/snapshots/status/SnapshotIndexStatus { +(Ljava/lang/String;Ljava/util/Collection;)V ( }
| ~ put m(Ljava/lang/Object;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap$Builder; ? ?
? build A()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; ? ?
? shard TLcom/groupbyinc/flux/action/admin/cluster/snapshots/status/SnapshotIndexShardStatus; index Ljava/lang/String; ?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap$Builder; GLcom/groupbyinc/flux/common/google/common/collect/ImmutableMap$Builder; indices #Ljava/util/Set; Ljava/util/Set; readFrom 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException ? /com/groupbyinc/flux/cluster/metadata/SnapshotId ? readSnapshotId e(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/metadata/SnapshotId; ? ?
? ? 0com/groupbyinc/flux/common/io/stream/StreamInput ? readByte ()B ? ?
? ? fromValue :(B)Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$State; ? ?
? readVInt ()I ? ?
? ? readShardSnapshotStatus ?(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/action/admin/cluster/snapshots/status/SnapshotIndexShardStatus; ? ?
h ? java/util/Collections ? unmodifiableList "(Ljava/util/List;)Ljava/util/List; ? ?
? ? i I in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; size writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V ? ?
? ? value ? ?
? 1com/groupbyinc/flux/common/io/stream/StreamOutput ? writeByte (B)V ? ?
? ? ? ? V ? writeVInt (I)V ? ?
? ?
h ? out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; readSnapshotStatus ~(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/action/admin/cluster/snapshots/status/SnapshotStatus;
+ ? ?
? snapshotInfo toString 3com/groupbyinc/flux/common/xcontent/XContentFactory ? jsonBuilder 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? 3com/groupbyinc/flux/common/xcontent/XContentBuilder ? prettyPrint ? ?
? ? startObject ? ?
? ? EMPTY_PARAMS 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; ? ? ?
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? endObject ? ?
? ? string ? j
? ? java/lang/StringBuilder ?
? +
{ "error" : " ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ?
getMessage ? j
? ? "} ? ? j
? ? 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; e Ljava/io/IOException; getStats K()Lcom/groupbyinc/flux/action/admin/cluster/snapshots/status/SnapshotStats; &