com.groupbyinc.flux.gateway.PriorityComparator.class Maven / Gradle / Ivy
???? 4 y .com/groupbyinc/flux/gateway/PriorityComparator \Ljava/lang/Object;Ljava/util/Comparator; java/lang/Object java/util/Comparator PriorityComparator.java 0com/groupbyinc/flux/gateway/PriorityComparator$1 ()V
this 0Lcom/groupbyinc/flux/gateway/PriorityComparator; compare g(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)I 0com/groupbyinc/flux/cluster/routing/ShardRouting getIndexName ()Ljava/lang/String;
java/lang/String equals (Ljava/lang/Object;)Z
index #()Lcom/groupbyinc/flux/index/Index;
! getIndexSettings Q(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/common/settings/Settings; # $
% priority 1(Lcom/groupbyinc/flux/common/settings/Settings;)I ' (
) java/lang/Long + (JJ)I -
, . timeCreated 1(Lcom/groupbyinc/flux/common/settings/Settings;)J 0 1
2 compareTo (Ljava/lang/String;)I 4 5
6
settingsO1 .Lcom/groupbyinc/flux/common/settings/Settings;
settingsO2 o1 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting; o2 o1Index Ljava/lang/String; o2Index cmp I 2com/groupbyinc/flux/cluster/metadata/IndexMetaData C INDEX_PRIORITY_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; E F D G +com/groupbyinc/flux/common/settings/Setting I get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; K L
J M java/lang/Integer O intValue ()I Q R
P S settings index.creation_date V???????? valueOf (J)Ljava/lang/Long; Z [
, \ ,com/groupbyinc/flux/common/settings/Settings ^ getAsLong 4(Ljava/lang/String;Ljava/lang/Long;)Ljava/lang/Long; ` a
_ b longValue ()J d e
, f getAllocationComparator t(Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/gateway/PriorityComparator; E(Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)V j
k
allocation BLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation; '(Ljava/lang/Object;Ljava/lang/Object;)I
p Code LocalVariableTable LineNumberTable
StackMapTable Signature
SourceFile InnerClasses! r / *? ? s t &