
com.groupbyinc.flux.cluster.routing.allocation.decider.SnapshotInProgressAllocationDecider.class Maven / Gradle / Ivy
???? 3 ? Zcom/groupbyinc/flux/cluster/routing/allocation/decider/SnapshotInProgressAllocationDecider Hcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDecider (SnapshotInProgressAllocationDecider.java hcom/groupbyinc/flux/cluster/routing/allocation/decider/SnapshotInProgressAllocationDecider$ApplySettings
ApplySettings Ccom/groupbyinc/flux/cluster/SnapshotsInProgress$ShardSnapshotStatus /com/groupbyinc/flux/cluster/SnapshotsInProgress ShardSnapshotStatus 5com/groupbyinc/flux/cluster/SnapshotsInProgress$Entry Entry 4com/groupbyinc/flux/common/settings/Settings$Builder ,com/groupbyinc/flux/common/settings/Settings Builder >com/groupbyinc/flux/node/settings/NodeSettingsService$Listener 5com/groupbyinc/flux/node/settings/NodeSettingsService Listener /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 % 6CLUSTER_ROUTING_ALLOCATION_SNAPSHOT_RELOCATION_ENABLED 6cluster.routing.allocation.snapshot.relocation_enabled ( enableRelocation Z ()V EMPTY_SETTINGS .Lcom/groupbyinc/flux/common/settings/Settings; . / 0 1(Lcom/groupbyinc/flux/common/settings/Settings;)V , 2
3 this \Lcom/groupbyinc/flux/cluster/routing/allocation/decider/SnapshotInProgressAllocationDecider;
3 h(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/node/settings/NodeSettingsService;)V , 8
9 settings *Lcom/groupbyinc/flux/common/inject/Inject;
3 * + > java/lang/Boolean @ valueOf (Z)Ljava/lang/Boolean; B C
A D getAsBoolean :(Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/Boolean; F G
H booleanValue ()Z J K
A L _(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/SnapshotInProgressAllocationDecider;)V , N
O addListener C(Lcom/groupbyinc/flux/node/settings/NodeSettingsService$Listener;)V Q R
S nodeSettingsService 7Lcom/groupbyinc/flux/node/settings/NodeSettingsService; canRebalance ?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; canMove Y X
Z 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 d primary f K
e g @com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation i routingNodes 4()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes; k l
j m snapshots o 0com/groupbyinc/flux/cluster/routing/RoutingNodes q custom E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/ClusterState$Custom; s t
r u ?com/groupbyinc/flux/cluster/routing/allocation/decider/Decision w YES ALcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; y z x { "no snapshots are currently running } java/lang/Object 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; ? ?
j ? entries ()Ljava/util/List; ? ?
? java/util/List ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? K ? ? next ()Ljava/lang/Object; ? ? ? ? shards A()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; ? ?
? shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; ? ?
e ? =com/groupbyinc/flux/common/google/common/collect/ImmutableMap ? get &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
? ? state 9()Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$State; ? ?
? completed ? K
! ? nodeId ()Ljava/lang/String; ? ?
?
currentNodeId ? ?
e ? java/lang/String ? equals (Ljava/lang/Object;)Z ? ?
? ? logger -Lcom/groupbyinc/flux/common/logging/ESLogger; ? ? ?