com.groupbyinc.flux.cluster.routing.allocation.decider.SnapshotInProgressAllocationDecider.class Maven / Gradle / Ivy
???? 4 ? Zcom/groupbyinc/flux/cluster/routing/allocation/decider/SnapshotInProgressAllocationDecider Hcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDecider (SnapshotInProgressAllocationDecider.java Ccom/groupbyinc/flux/cluster/SnapshotsInProgress$ShardSnapshotStatus /com/groupbyinc/flux/cluster/SnapshotsInProgress ShardSnapshotStatus 5com/groupbyinc/flux/cluster/SnapshotsInProgress$Entry Entry /com/groupbyinc/flux/cluster/ClusterState$Custom (com/groupbyinc/flux/cluster/ClusterState Custom 5com/groupbyinc/flux/cluster/SnapshotsInProgress$State State NAME Ljava/lang/String; snapshot_in_progress 1(Lcom/groupbyinc/flux/common/settings/Settings;)V
this \Lcom/groupbyinc/flux/cluster/routing/allocation/decider/SnapshotInProgressAllocationDecider; settings .Lcom/groupbyinc/flux/common/settings/Settings; canRebalance ?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; canMove $ #
% shardRouting 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;
allocation BLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation; 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; node 1Lcom/groupbyinc/flux/cluster/routing/RoutingNode; 0com/groupbyinc/flux/cluster/routing/ShardRouting / primary ()Z 1 2
0 3 snapshots 5 @com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation 7 custom E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/ClusterState$Custom; 9 :
8 ; entries ()Ljava/util/List; = >
? java/util/List A isEmpty C 2 B D ?com/groupbyinc/flux/cluster/routing/allocation/decider/Decision F YES ALcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; H I G J "no snapshots are currently running L java/lang/Object N 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; P Q
8 R iterator ()Ljava/util/Iterator; T U B V java/util/Iterator X hasNext Z 2 Y [ next ()Ljava/lang/Object; ] ^ Y _ shards 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; a b
c shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; e f
0 g 3com/groupbyinc/flux/common/collect/ImmutableOpenMap i get &(Ljava/lang/Object;)Ljava/lang/Object; k l
j m state 9()Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$State; o p
q completed s 2
t nodeId ()Ljava/lang/String; v w
x
currentNodeId z w
0 { java/lang/String } equals (Ljava/lang/Object;)Z ?
~ ? logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; ? ? ? 6com/groupbyinc/flux/common/apache/logging/log4j/Logger ? isTraceEnabled ? 2 ? ? FPreventing snapshotted shard [{}] from being moved away from node [{}] ? trace 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V ? ? ? ? THROTTLE ? I G ? Dwaiting for snapshotting of shard [%s] to complete on this node [%s] ? "the shard is not being snapshotted ? shardSnapshotStatus ELcom/groupbyinc/flux/cluster/SnapshotsInProgress$ShardSnapshotStatus; snapshot 7Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$Entry; snapshotsInProgress 1Lcom/groupbyinc/flux/cluster/SnapshotsInProgress;
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile InnerClasses ! ? ? > *+? ? ? ! ?
+ , " # ? E *+,? &? ? ' ( ) * ? 5 + , ? O *+-? &? ? * ' ( - . ) * ? > $ # ? ? ?+? 4? ?,6?