
com.groupbyinc.flux.cluster.routing.ShardRouting.class Maven / Gradle / Ivy
???? 3( 0com/groupbyinc/flux/cluster/routing/ShardRouting java/lang/Object /com/groupbyinc/flux/common/io/stream/Streamable .com/groupbyinc/flux/common/xcontent/ToXContent ShardRouting.java 5com/groupbyinc/flux/common/xcontent/ToXContent$Params
Params 9com/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason
2com/groupbyinc/flux/cluster/routing/UnassignedInfo Reason UNAVAILABLE_EXPECTED_SHARD_SIZE J???????? index Ljava/lang/String; shardId I
currentNodeId relocatingNodeId primary Z state 7Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState; version
restoreSource 3Lcom/groupbyinc/flux/cluster/routing/RestoreSource; unassignedInfo 4Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo; allocationId 2Lcom/groupbyinc/flux/cluster/routing/AllocationId; asList Ljava/util/List; DLjava/util/List; shardIdentifier )Lcom/groupbyinc/flux/index/shard/ShardId; frozen expectedShardSize hashVersion hashCode $assertionsDisabled ()V 1 2
3 , 5 - 7 9 . ; / = java/util/Collections ?
singletonList $(Ljava/lang/Object;)Ljava/util/List; A B
@ C ' ( E this 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting; 5(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)V ()J J
K 6(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;J)V 1 M
N copy ()Ljava/lang/String; Q
R id ()I T U
V Q
X Q
Z 5()Lcom/groupbyinc/flux/cluster/routing/RestoreSource; ! \
] ()Z _
` 9()Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState; b
c 6()Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo; # e
f 4()Lcom/groupbyinc/flux/cluster/routing/AllocationId; % h
i getExpectedShardSize k J
l(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/cluster/routing/RestoreSource;ZLcom/groupbyinc/flux/cluster/routing/ShardRoutingState;JLcom/groupbyinc/flux/cluster/routing/UnassignedInfo;Lcom/groupbyinc/flux/cluster/routing/AllocationId;ZJ)V 1 n
o q s u w y { ! " } # $ % & ? 0 ? 5com/groupbyinc/flux/cluster/routing/ShardRoutingState ? INITIALIZING ? ? ?
RELOCATING ? ? ? java/lang/AssertionError ? java/lang/StringBuilder ?
? 3 append (J)Ljava/lang/StringBuilder; ? ?
? ? state: ? -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? toString ? Q
? ? (Ljava/lang/Object;)V 1 ?
? ? java/lang/String ? 1com/groupbyinc/flux/cluster/routing/RestoreSource ? 0com/groupbyinc/flux/cluster/routing/AllocationId ?
UNASSIGNED ? ? ? *unassigned shard must be created with meta ?
? 3 internal
newUnassigned ?(Ljava/lang/String;ILcom/groupbyinc/flux/cluster/routing/RestoreSource;ZLcom/groupbyinc/flux/cluster/routing/UnassignedInfo;)Lcom/groupbyinc/flux/cluster/routing/ShardRouting; getIndex getId
unassigned initializing active started ? _
?
relocating ? _
? STARTED ? ? ? assignedToNode buildTargetRelocatingShard 4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting; newTargetRelocation f(Lcom/groupbyinc/flux/cluster/routing/AllocationId;)Lcom/groupbyinc/flux/cluster/routing/AllocationId; ? ?
? ? %Lcom/groupbyinc/flux/common/Nullable; +()Lcom/groupbyinc/flux/index/shard/ShardId; * + ? 'com/groupbyinc/flux/index/shard/ShardId ? (Ljava/lang/String;I)V 1 ?
? ? allocatedPostIndexCreate ? _
? getReason =()Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason; ? ?
?
INDEX_CREATED ;Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason; ? ? ? shardsIt 5()Lcom/groupbyinc/flux/cluster/routing/ShardIterator; 6com/groupbyinc/flux/cluster/routing/PlainShardIterator ? ?
? <(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/util/List;)V 1 ?
? ? readShardRoutingEntry f(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/routing/ShardRouting; java/io/IOException ?
3 readFrom 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V ? ?
? in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; entry y(Lcom/groupbyinc/flux/common/io/stream/StreamInput;Ljava/lang/String;I)Lcom/groupbyinc/flux/cluster/routing/ShardRouting; H(Lcom/groupbyinc/flux/common/io/stream/StreamInput;Ljava/lang/String;I)V ? ?
? readFromThin ? ?
? 0com/groupbyinc/flux/common/io/stream/StreamInput ? readLong ? J
? ? readBoolean ? _
? ?
readString Q
? readByte ()B
? fromValue :(B)Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;
? readOptionalRestoreSource g(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/routing/RestoreSource;
?
1 ?
? ? _
freeze 2
readVInt U
? writeToThin 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput writeLong (J)V
writeBoolean (Z)V"#
$ writeString (Ljava/lang/String;)V&'
( value*
?+ writeByte (B)V-.
/ writeTo1
?2
2
?2 out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; writeVInt (I)V89
:
< updateUnassignedInfo 7(Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo;)V ensureNotFrozen@ 2
A 5can only update unassign info if they are already setC moveToUnassigned
initialize (Ljava/lang/String;J)V newInitializingH h
?I nodeId relocate 9current shard has to be started in order to be relocated M
newRelocationO ?
?P cancelRelocation ? _
SR ?
?U reinitializeShard
REINITIALIZEDX ? Y P(Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason;Ljava/lang/String;)V 1[
\
moveToStarted expected an initializing shard _ getRelocationIda Q
?b finishRelocationd ?
?e
moveToPrimary Ecom/groupbyinc/flux/cluster/routing/IllegalShardRoutingStateExceptionh &Already primary, can't move to primaryj G(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Ljava/lang/String;)V 1l
im moveFromPrimary "Not primary, can't move to replicap isSameShard 5(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)Z equals (Ljava/lang/Object;)Ztu
?v other isSameAllocation ? Q
?z GShardRoutings have the same allocation id but not the same node. This [|
], other [~ ]? b isRelocationTarget isRelocationTargetOf WShardRouting is a relocation target but the source shard state isn't relocating. This [? rShardRouting is a relocation target but the source id isn't equal to source's allocationId.getRelocationId. This [? lShardRouting is a relocation target but source current node id isn't equal to target relocating node. This [? eShardRouting is a relocation target but current node id isn't equal to source relocating node. This [?rs
? WShardRouting is a relocation target but both routings are not of the same shard. This [? IShardRouting is a relocation target but primary flag is different. This [? ], target [? isRelocationSourceOf LShardRouting is a relocation source but shard state isn't relocating. This [? sShardRouting is a relocation source but the allocation id isn't equal to other.allocationId.getRelocationId. This [? cShardRouting is a relocation source but current node isn't equal to other's relocating node. This [? cShardRouting is a relocation source but relocating node isn't equal to other's current node. This [? WShardRouting is a relocation source but both routings are not of the same shard. This [? IShardRouting is a relocation source but primary flag is different. This [? equalsIgnoringMetaData
?v
?v
v?s
? o Ljava/lang/Object; that / U
??
??
??
??
? result shortSummary? Q
? (C)Ljava/lang/StringBuilder; ??
?? (I)Ljava/lang/StringBuilder; ??
?? , node[? ], ? relocating [? [P]? [R]? , v[? , restoring[? , s[? , a? , ?
? , expected_shard_size[? sb Ljava/lang/StringBuilder;
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 3com/groupbyinc/flux/common/xcontent/XContentBuilder? startObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? field [(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? J(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? node? [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? relocating_node? shard?
? V J(Ljava/lang/String;I)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? #()Lcom/groupbyinc/flux/index/Index; ?
?? com/groupbyinc/flux/index/Index? name? Q
?? J(Ljava/lang/String;J)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? expected_shard_size_in_bytes? restore_source I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;?
???
?
?
endObject
?
? builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; java/lang/IllegalStateException 7ShardRouting can't be modified anymore - already frozen 1'
isFrozen java/lang/Class desiredAssertionStatus _
ConstantValue Signature Code LocalVariableTable LineNumberTable
StackMapTable RuntimeVisibleAnnotations
Exceptions
SourceFile InnerClasses 1 ! " # $ % &