com.groupbyinc.flux.cluster.routing.allocation.decider.ReplicaAfterPrimaryActiveAllocationDecider.class Maven / Gradle / Ivy
???? 4 N acom/groupbyinc/flux/cluster/routing/allocation/decider/ReplicaAfterPrimaryActiveAllocationDecider Hcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDecider /ReplicaAfterPrimaryActiveAllocationDecider.java NAME Ljava/lang/String; replica_after_primary_active 1(Lcom/groupbyinc/flux/common/settings/Settings;)V
this cLcom/groupbyinc/flux/cluster/routing/allocation/decider/ReplicaAfterPrimaryActiveAllocationDecider; settings .Lcom/groupbyinc/flux/common/settings/Settings; canAllocate ?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/RoutingNode;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; ?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;
shardRouting 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting; node 1Lcom/groupbyinc/flux/cluster/routing/RoutingNode;
allocation BLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation; 0com/groupbyinc/flux/cluster/routing/ShardRouting primary ()Z
! ?com/groupbyinc/flux/cluster/routing/allocation/decider/Decision # YES ALcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; % & $ ' %shard is primary and can be allocated ) java/lang/Object + @com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation - decision ?(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; / 0
. 1 routingNodes 4()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes; 3 4
. 5 shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; 7 8
9 0com/groupbyinc/flux/cluster/routing/RoutingNodes ;
activePrimary ](Lcom/groupbyinc/flux/index/shard/ShardId;)Lcom/groupbyinc/flux/cluster/routing/ShardRouting; = >
<