
com.groupbyinc.flux.cluster.routing.UnassignedInfo.class Maven / Gradle / Ivy
???? 3? 2com/groupbyinc/flux/cluster/routing/UnassignedInfo ?Ljava/lang/Object;Lcom/groupbyinc/flux/common/xcontent/ToXContent;Lcom/groupbyinc/flux/common/io/stream/Writeable; java/lang/Object .com/groupbyinc/flux/common/xcontent/ToXContent .com/groupbyinc/flux/common/io/stream/Writeable UnassignedInfo.java 9com/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason Reason 5com/groupbyinc/flux/common/xcontent/ToXContent$Params Params DATE_TIME_FORMATTER 9Lcom/groupbyinc/flux/common/joda/FormatDateTimeFormatter; 'INDEX_DELAYED_NODE_LEFT_TIMEOUT_SETTING Ljava/lang/String; *index.unassigned.node_left.delayed_timeout !DEFAULT_DELAYED_NODE_LEFT_TIMEOUT +Lcom/groupbyinc/flux/common/unit/TimeValue; reason ;Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason; unassignedTimeMillis J unassignedTimeNanos lastComputedLeftDelayNanos message failure Ljava/lang/Throwable; $assertionsDisabled Z P(Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason;Ljava/lang/String;)V java/lang/System & nanoTime ()J ( )
' * currentTimeMillis , )
' - g(Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason;Ljava/lang/String;Ljava/lang/Throwable;JJ)V $ /
0 this 4Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo; %Lcom/groupbyinc/flux/common/Nullable; ()V $ 5
6 8 : < > @ ! B " # D java/lang/AssertionError F 4provide a message if a failure exception is provided H (Ljava/lang/Object;)V $ J
G K java/lang/String M java/lang/Throwable O 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException R values >()[Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason; T U
V 0com/groupbyinc/flux/common/io/stream/StreamInput X readByte ()B Z [
Y \ readLong ^ )
Y _ readOptionalString ()Ljava/lang/String; a b
Y c
readThrowable ()Ljava/lang/Throwable; e f
Y g in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V ordinal ()I m n
o 1com/groupbyinc/flux/common/io/stream/StreamOutput q writeByte (B)V s t
r u writeLong (J)V w x
r y writeOptionalString (Ljava/lang/String;)V { |
r } writeThrowable (Ljava/lang/Throwable;)V ?
r ? out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; readFrom h(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo; $ Q
? getReason =()Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason; getUnassignedTimeInMillis getUnassignedTimeInNanos
getMessage
getFailure
getDetails java/lang/StringBuilder ?
? 6 append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ?
, failure ? $com/groupbyinc/flux/ExceptionsHelper ? detailedMessage )(Ljava/lang/Throwable;)Ljava/lang/String; ? ?
? ? toString ? b
? ? %getAllocationDelayTimeoutSettingNanos _(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/settings/Settings;)J NODE_LEFT ? ? ? ,com/groupbyinc/flux/common/settings/Settings ? getAsTime j(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
? ? )com/groupbyinc/flux/common/unit/TimeValue ? nanos ? )
? ? java/lang/Math ? max (JJ)J ? ?
? ? settings .Lcom/groupbyinc/flux/common/settings/Settings;
indexSettings delayTimeout getLastComputedLeftDelayNanos updateDelay `(JLcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/settings/Settings;)J ? ?
?
G 6 newComputedLeftDelayNanos nanoTimeNow delayTimeoutNanos getNumberOfDelayedUnassigned -(Lcom/groupbyinc/flux/cluster/ClusterState;)I (com/groupbyinc/flux/cluster/ClusterState ? routingTable 4()Lcom/groupbyinc/flux/cluster/routing/RoutingTable; ? ?
? ? 5com/groupbyinc/flux/cluster/routing/ShardRoutingState ?
UNASSIGNED 7Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState; ? ? ? ? 0com/groupbyinc/flux/cluster/routing/RoutingTable ? shardsWithState I(Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;)Ljava/util/List; ? ?
? ? java/util/List ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? 0com/groupbyinc/flux/cluster/routing/ShardRouting ? primary ? ?
? ? unassignedInfo 6()Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo; ? ?
? ? ? )
? delay shard 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting; state *Lcom/groupbyinc/flux/cluster/ClusterState; count I )findSmallestDelayedAllocationSettingNanos [(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/ClusterState;)J??????? metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;
? getIndex b
? -com/groupbyinc/flux/cluster/metadata/MetaData
index H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;
2com/groupbyinc/flux/cluster/metadata/IndexMetaData getSettings 0()Lcom/groupbyinc/flux/common/settings/Settings;
indexMetaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; delayed delayTimeoutSetting minDelaySetting findNextDelayedAllocationIn -(Lcom/groupbyinc/flux/cluster/ClusterState;)J nextShardDelay nextDelay shortSummary [reason= -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ?"
?# ]% , at[' ) 7com/groupbyinc/flux/common/joda/FormatDateTimeFormatter+ printer A()Lcom/groupbyinc/flux/common/joda/time/format/DateTimeFormatter;-.
,/ =com/groupbyinc/flux/common/joda/time/format/DateTimeFormatter1 print (J)Ljava/lang/String;34
25 ? b
7
, details[9 sb Ljava/lang/StringBuilder; details unassigned_info[> b
@
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; unassigned_infoD 3com/groupbyinc/flux/common/xcontent/XContentBuilderF startObject I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;HI
GJ field [(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;MN
GO atQ [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;MS
GT= endObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;WX
GY builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; equals (Ljava/lang/Object;)Z getClass ()Ljava/lang/Class;ab
c_`
Ne
e o Ljava/lang/Object; that hashCodek n
l
Nl
l result F(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/Object; ? ?
r java/lang/Classu desiredAssertionStatusw ?
vx dateOptionalTimez $com/groupbyinc/flux/common/joda/Joda|
forPattern M(Ljava/lang/String;)Lcom/groupbyinc/flux/common/joda/FormatDateTimeFormatter;~
}? timeValueMinutes .(J)Lcom/groupbyinc/flux/common/unit/TimeValue;??
??
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable "RuntimeVisibleParameterAnnotations
Exceptions RuntimeVisibleAnnotations Signature
SourceFile InnerClasses !
? B ! " # $ % ? P *+,? +? .? 1? ? 2 3 ?
w
x $ / ? ? =*? 7* ? 9*+? ;*? =*? ?*,? A*-? C? E? ,? -?
? GYI? L?? ? > = 2 3 = = = ! = = ? &