All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.cluster.routing.ShardRouting.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????3(0com/groupbyinc/flux/cluster/routing/ShardRoutingjava/lang/Object/com/groupbyinc/flux/common/io/stream/Streamable.com/groupbyinc/flux/common/xcontent/ToXContentShardRouting.java5com/groupbyinc/flux/common/xcontent/ToXContent$Params
Params9com/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason
2com/groupbyinc/flux/cluster/routing/UnassignedInfoReasonUNAVAILABLE_EXPECTED_SHARD_SIZEJ????????indexLjava/lang/String;shardIdI
currentNodeIdrelocatingNodeIdprimaryZstate7Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;version
restoreSource3Lcom/groupbyinc/flux/cluster/routing/RestoreSource;unassignedInfo4Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo;allocationId2Lcom/groupbyinc/flux/cluster/routing/AllocationId;asListLjava/util/List;DLjava/util/List;shardIdentifier)Lcom/groupbyinc/flux/index/shard/ShardId;frozenexpectedShardSizehashVersionhashCode$assertionsDisabled()V12
3,	5-	7 	9.	;/	=java/util/Collections?
singletonList$(Ljava/lang/Object;)Ljava/util/List;AB
@C'(	Ethis2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;5(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)V()J J
K6(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;J)V1M
Ncopy()Ljava/lang/String;Q
Rid()ITU
VQ
XQ
Z5()Lcom/groupbyinc/flux/cluster/routing/RestoreSource;!\
]()Z_
`9()Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState;b
c6()Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo;#e
f4()Lcom/groupbyinc/flux/cluster/routing/AllocationId;%h
igetExpectedShardSizekJ
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1n
o	q	s	u	w	y	{!"	}#$	%&	?0	?5com/groupbyinc/flux/cluster/routing/ShardRoutingState?INITIALIZING?	??
RELOCATING?	??java/lang/AssertionError?java/lang/StringBuilder?
?3append(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?
?3internal
newUnassigned?(Ljava/lang/String;ILcom/groupbyinc/flux/cluster/routing/RestoreSource;ZLcom/groupbyinc/flux/cluster/routing/UnassignedInfo;)Lcom/groupbyinc/flux/cluster/routing/ShardRouting;getIndexgetId
unassignedinitializingactivestarted?_
?
relocating?_
?STARTED?	??assignedToNodebuildTargetRelocatingShard4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting;newTargetRelocationf(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;??	?shardsIt5()Lcom/groupbyinc/flux/cluster/routing/ShardIterator;6com/groupbyinc/flux/cluster/routing/PlainShardIterator??
?<(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/util/List;)V1?
??readShardRoutingEntryf(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/routing/ShardRouting;java/io/IOException?
3readFrom5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V??
?in2Lcom/groupbyinc/flux/common/io/stream/StreamInput;entryy(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;
?	readOptionalRestoreSourceg(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/routing/RestoreSource;
?
1?

??_
freeze2
readVIntU
?writeToThin6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V1com/groupbyinc/flux/common/io/stream/StreamOutput	writeLong(J)V
 writeBoolean(Z)V"#
$writeString(Ljava/lang/String;)V&'
(value*
?+	writeByte(B)V-.
/writeTo1
?2
2
?2out3Lcom/groupbyinc/flux/common/io/stream/StreamOutput;	writeVInt(I)V89
:
<updateUnassignedInfo7(Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo;)VensureNotFrozen@2
A5can only update unassign info if they are already setCmoveToUnassigned
initialize(Ljava/lang/String;J)VnewInitializingHh
?InodeIdrelocate9current shard has to be started in order to be relocated M
newRelocationO?
?PcancelRelocation?_
SR?
?UreinitializeShard
REINITIALIZEDX?	YP(Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason;Ljava/lang/String;)V1[
\
moveToStartedexpected an initializing shard _getRelocationIdaQ
?bfinishRelocationd?
?e
moveToPrimaryEcom/groupbyinc/flux/cluster/routing/IllegalShardRoutingStateExceptionh&Already primary, can't move to primaryjG(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Ljava/lang/String;)V1l
immoveFromPrimary"Not primary, can't move to replicapisSameShard5(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)Zequals(Ljava/lang/Object;)Ztu
?votherisSameAllocation?Q
?zGShardRoutings have the same allocation id but not the same node. This [|
], other [~]?bisRelocationTargetisRelocationTargetOfWShardRouting 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 [?isRelocationSourceOfLShardRouting 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
?oLjava/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[?sbLjava/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?startObject7()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?
?VJ(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_sourceI(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;?
???
?
?
	endObject
?
?builder5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;params7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;java/lang/IllegalStateException7ShardRouting can't be modified anymore - already frozen1'
isFrozenjava/lang/ClassdesiredAssertionStatus_

ConstantValue	SignatureCodeLocalVariableTableLineNumberTable
StackMapTableRuntimeVisibleAnnotations
Exceptions
SourceFileInnerClasses1 !"#$%&?'()?*+,-./0;12 j(*?4*?6*?8**?:
e?<*?>**?D?F?!(GH"<9	:??='>1I B
*++?L?O?!
GH
PH"
A	B1M q/*+?S+?W+?Y+?[+?^+?a+?d +?g+?j+?m?p?! /GH/PH/ "
E.F1n ?U*?4*?6*?8**?:
e?<*?>*+?r*?t*-?v*?x*?z*?|**?D?F*?:*?~*
??*??*
?8???=
??4???,???$??Y??Y??
???????????????;
	??4???,???$??Y??Y??
??????????????????
?
??Y?????Q????????Y??????-???Y?????????Y?????????Y????!?
UGHUUUUU!"UUU U#$
U%&U?U-
"jN9	:??O$P)Q.R4S:T@UHVNWTXZY`Zf[?\?]^_`.aAbTe#,??
??????=	?? k?Y*,??	?p?!4!"#$"kQ /*?r?!GH"r?Q /*?S?!GH"yTU /*?t?!GH"??U /*?W?!GH"? J /*?:?!GH"??_ E*?|?????!GH"?#@?_ E*?|?????!GH"?#@?_ J*???
*?????!GH"?#@?_ E*?|?????!GH"?#@?_ E*?|?????!GH"?#@?_ B
*?v???!
GH"?#@Q /*?v?!GH"?Q /*?x?!GH"??? ?L???*?????Y????Y*?r*?t*?x*?v*?~*?z??*?:*??*????*?8?p?!LGH"??@?#!\ /*?~?!GH"?#e /*???!GH"?$?%h /*???!GH"?$?_ /*?z?!GH"?b /*?|?!GH"? c$*???*?˰*??Y*?r*?t?е?*?˰!$GH"
#?_ ^*?ә?*???ײۦ??!GH"	#	?? :??Y*??*?F??!GH"!	?? K?Y??L+*??+?!???H"%&
'%?	?? a?Y??N-*+??-?!*??	?H"+,-%??? d*,?r*?t*+???!*GH??"12
34%??? ?*+???:+???*+??v+???*+??x*+???z*+??
?|*+??~+???*?Y+???+???*??Y+???*???
*??*+???8?
*?8*??!?GH???"F789<=&@.A9CADHETG[HgJuK?M?O?P#	-
%??? F*++?+????!GH??"
T
U%? j?+*?:?!*?v?+?%+*?v?)?+?%*?x?+?%+*?x?)?+?%+*?z?%+*?|?,?0*?~?+?%*?~+?3?+?%*???+?%*??+?4?+?%*???+?%*??+?5?+?%*???
*??+*?8?!?!?GH?67"j^_`ac$f+g0h;j@mHnSpZq_rjtovvw{x?z?|?}?~????????#)
%?1 V+*?r?)+*?t?;*+?=?!GH67"????%?>? k"*?B???*?????YD???*+???!"GH"#$"???!?#E? ?J*?B*Y?:
a?:???*?|?????Y*???*???|*?v*?x*+??*??*?8?!JGHJ#$"*
???'?.?3?8?=?B?I?#'FG ?V*?B*Y?:
a?:???*?|?????Y*??????*?x???Y*???*???|*+?v*?J??* ?8?! VGHVKV-"&	???'?=?D?I?P?U?#'LG ?W*?B*Y?:
a?:???)*?|?????Y??Y??N??*???????*???|*+?x**???Q??* ?8?! WGHWW-""???:?A?F?Q?V?#:R2 ?r*?B*Y?:
a?:???*?|?????Y*??????*?T???Y*??????*?x???Y*???*?8*???|*?x**???V???!rGH"*
???'?=?S?Z?a?f?q?#'W2 ?D*?B???*?|?????Y???*Y?:
a?:*???|*?J??*?Y?Z?]???!DGH"???&?-?4?C?#^2 ?m*?B*Y?:
a?:???)*?|?????Y??Y??`??*???????*?x*?~*??*???c?**???f??*?8*???|?!mGH".???:???D?I?S?^?e?l?#:#g2 n'*?B*Y?:
a?:*?z??iY*k?n?*?z?!'GH"????!?&?#!o2 n'*?B*Y?:
a?:*?z??iY*q?n?*?z?!'GH"!	&
#!rs ^*?r+?r?w?*?t+?t???!GHxH"#@ys ?n*???"+???*???{+???{?w??=???A?=*?v+?v?w?/??Y??Y??}??*????+???????????! nGHnxH(F?"(l#	&@?D?_ L*?|???*?x???!GH"!#@?s ??*???,+???%*?|???*???{+???c?w??=???=?9+?|???/??Y??Y?????*????+?????????????G?C+???{*???c?w?/??Y??Y?????*????+?????????????A?=+?Y*?x?w?/??Y??Y?????*????+?????????????A?=*?Y+?x?w?/??Y??Y?????*????+?????????????;?7*+???/??Y??Y?????*????+?????????????>?:*?z+?z?/??Y??Y?????*?????+???????????! ?GH?xH2??"&	&'2)r-?03D6?9?<#0@?@?I?C?C=?@?s ??*???,+???%+?|???+???{*???c?w??=???=?9*?|???/??Y??Y?????*????+?????????????G?C*???{+???c?w?/??Y??Y?????*????+?????????????A?=*?Y+?x?w?/??Y??Y?????*????+?????????????A?=+?Y*?x?w?/??Y??Y?????*????+?????????????;?7*+???/??Y??Y?????*?????+?????????????>?:*?z+?z?/??Y??Y?????*?????+???????????! ?GH?xH2??"&	AB2DrH?KNDQ?T?W#0@?@?I?C?C=?@?s \?*?z+?z??*?t+?t??*?v?*?v+?v?w??
+?v??*?r?*?r+?r?w??
+?r??*?x?*?x+?x?w??
+?x??*???*??+??????
+????*?|+?|??*?~?*?~+?~????
+?~???!?GH?xH"F\]
_`b9c;eZf\h{i}k?l?n?o?q?r?t#
tu ?N*+??+?
+???+?M*?:,?:???*???*??,??????
,????*,???! NGHN??5?H"*
yz}~??%?'?F?H?#
?/U ??*?<*?:??*?>?*?r?
*?r???<h*?t`<h*?v?
*?v???`<h*?x?
*?x???`<h*?z??`<h*?|?
*?|???`<h*?:*?: }??`<h*?~?
*?~???`<h*???
*?????`<h*???
*?????`<*Z?>?!?GH$??"6
???$?.?F?^?p???????????#y@??V?P?V?i?V?V??Q /*???!GH"??Q ???Y??L+[??*?r??]??[??*?t??]??W+???*?v?????W*?x?+???*?x?????W*?z?+¶?W?+Ķ?W+ƶ?*?:?????W*?~?%+??Y??ȶ?*?~?????????W+ʶ?*?|?????W*???+̶?*????W*???+ζ?*???϶?W*?8??+Ѷ?*?8?????W+???!GH??"N??,?A?H?]?d?o?w???????????????????#?]?=*?? ;?+???*?d???*?a???*?Y???*?[???*?????*????????*?:??W*?8??+*?8??W*?^?+?W*?^+,?W*???
*??+,?W*???
*??+,?	W+??! ?GH?
?"J????&?0?=?P?T?_?k?r?z???????????#?k%?@2 N*?6??Y???!GH"???#2 4*?6?!GH"
??_ /*?6?!GH"?kJ /*?8?!GH"?2 4??????"&#@&	'	@




© 2015 - 2025 Weber Informatics LLC | Privacy Policy