com.groupbyinc.flux.cluster.routing.IndexShardRoutingTable.class Maven / Gradle / Ivy
???? 4 :com/groupbyinc/flux/cluster/routing/IndexShardRoutingTable ZLjava/lang/Object;Ljava/lang/Iterable; java/lang/Object java/lang/Iterable IndexShardRoutingTable.java Bcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable$Builder Builder Mcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable$AttributesRoutings AttributesRoutings Hcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable$AttributesKey
AttributesKey shuffler 3Lcom/groupbyinc/flux/cluster/routing/ShardShuffler; shardId )Lcom/groupbyinc/flux/index/shard/ShardId; primary 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;
primaryAsList Ljava/util/List; DLjava/util/List; replicas shards activeShards assignedShards allAllocationIds Ljava/util/Set; #Ljava/util/Set; NO_SHARDS allShardsStarted Z activeShardsByAttributes Ljava/util/Map; ?Ljava/util/Map; initializingShardsByAttributes shardsByAttributeMutex Ljava/lang/Object; allInitializingShards <(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/util/List;)V ()V , .
/ java/util/Collections 1 emptyMap ()Ljava/util/Map; 3 4
2 5 % & 7 ( & 9 ) * ; = 9com/groupbyinc/flux/cluster/routing/RotationShardShuffler ? %com/groupbyinc/flux/common/Randomness A get ()Ljava/util/Random; C D
B E java/util/Random G nextInt ()I I J
H K (I)V , M
@ N P unmodifiableList "(Ljava/util/List;)Ljava/util/List; R S
2 T V java/util/ArrayList X
Y / java/util/HashSet [
\ / java/util/List ^ iterator ()Ljava/util/Iterator; ` a _ b 'com/groupbyinc/flux/index/shard/ShardId d 0com/groupbyinc/flux/cluster/routing/ShardRouting f
java/util/Set h java/util/Iterator j hasNext ()Z l m k n next ()Ljava/lang/Object; p q k r m
g t add (Ljava/lang/Object;)Z v w _ x active z m
g { initializing } m
g ~
relocating ? m
g ? getTargetRelocatingShard 4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting; ? ?
g ? allocationId 4()Lcom/groupbyinc/flux/cluster/routing/AllocationId; ? ?
g ? 0com/groupbyinc/flux/cluster/routing/AllocationId ? getId ()Ljava/lang/String; ? ?
? ? i x assignedToNode ? m
g ? state 9()Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState; ? ?
g ? 5com/groupbyinc/flux/cluster/routing/ShardRoutingState ? STARTED 7Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState; ? ? ? ? # $ ? ?
singletonList $(Ljava/lang/Object;)Ljava/util/List; ? ?
2 ? ? emptyList ()Ljava/util/List; ? ?
2 ? ? ? ? + ? unmodifiableSet (Ljava/util/Set;)Ljava/util/Set; ? ?
2 ? ? shard this