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

com.groupbyinc.flux.cluster.routing.allocation.decider.AwarenessAllocationDecider.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????3CQcom/groupbyinc/flux/cluster/routing/allocation/decider/AwarenessAllocationDeciderHcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDeciderAwarenessAllocationDecider.java_com/groupbyinc/flux/cluster/routing/allocation/decider/AwarenessAllocationDecider$ApplySettings
ApplySettingsjava/util/Map$Entry	
java/util/MapEntry4com/groupbyinc/flux/common/settings/Settings$Builder,com/groupbyinc/flux/common/settings/SettingsBuilder>com/groupbyinc/flux/node/settings/NodeSettingsService$Listener5com/groupbyinc/flux/node/settings/NodeSettingsServiceListenerNAMELjava/lang/String;	awareness/CLUSTER_ROUTING_ALLOCATION_AWARENESS_ATTRIBUTES/cluster.routing.allocation.awareness.attributes0CLUSTER_ROUTING_ALLOCATION_AWARENESS_FORCE_GROUP+cluster.routing.allocation.awareness.force. awarenessAttributes[Ljava/lang/String;forcedAwarenessAttributesLjava/util/Map;6Ljava/util/Map;()VEMPTY_SETTINGS.Lcom/groupbyinc/flux/common/settings/Settings;)*	+1(Lcom/groupbyinc/flux/common/settings/Settings;)V'-
.thisSLcom/groupbyinc/flux/cluster/routing/allocation/decider/AwarenessAllocationDecider;
.h(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/node/settings/NodeSettingsService;)V'3
4settings*Lcom/groupbyinc/flux/common/inject/Inject;
.
getAsArray'(Ljava/lang/String;)[Ljava/lang/String;9:
;"#	=5com/groupbyinc/flux/common/google/common/collect/Maps?
newHashMap()Ljava/util/HashMap;AB
@C$%	E	getGroups#(Ljava/lang/String;)Ljava/util/Map;GH
IentrySet()Ljava/util/Set;KLM
java/util/SetOiterator()Ljava/util/Iterator;QRPSjava/util/IteratorUhasNext()ZWXVYnext()Ljava/lang/Object;[\V]getValue_\
`valuesbgetKeyd\
eput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;ghiV(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/AwarenessAllocationDecider;)V'k
laddListenerC(Lcom/groupbyinc/flux/node/settings/NodeSettingsService$Listener;)Vno
paValuesentryWLjava/util/Map$Entry;Ljava/util/Map$Entry;nodeSettingsService7Lcom/groupbyinc/flux/node/settings/NodeSettingsService;forceGroupsQLjava/util/Map;()[Ljava/lang/String;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;
underCapacity?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/RoutingNode;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Z)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;}~
shardRouting2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;node1Lcom/groupbyinc/flux/cluster/routing/RoutingNode;
allocationBLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;	canRemain?com/groupbyinc/flux/cluster/routing/allocation/decider/Decision?YESALcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;??	??no allocation awareness enabled?java/lang/Object?@com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation?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;??
??metaData1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;??
??0com/groupbyinc/flux/cluster/routing/ShardRouting?index()Ljava/lang/String;??
??-com/groupbyinc/flux/cluster/metadata/MetaData?H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;??
??2com/groupbyinc/flux/cluster/metadata/IndexMetaData?getNumberOfReplicas()I??
??/com/groupbyinc/flux/cluster/routing/RoutingNode?#2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
??.com/groupbyinc/flux/cluster/node/DiscoveryNode?
attributesA()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap;??
??=com/groupbyinc/flux/common/google/common/collect/ImmutableMap?containsKey(Ljava/lang/Object;)Z??
??NO??	??/node does not contain awareness attribute: [%s]?java/lang/String?routingNodes4()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes;??
??0com/groupbyinc/flux/cluster/routing/RoutingNodes?nodesPerAttributesCountsS(Ljava/lang/String;)Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectIntHashMap;??
??=com/groupbyinc/flux/common/carrotsearch/hppc/ObjectIntHashMap?'(
??assignedShardsH(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)Ljava/lang/Iterable;??
??java/lang/Iterable??Sstarted?X
??initializing?X
??
currentNodeId??
??E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/RoutingNode;??
??get&(Ljava/lang/Object;)Ljava/lang/Object;??
??addTo(Ljava/lang/Object;I)I??
??assignedToNode?X
??
relocating?X
??relocatingNodeId??
??nodeId??
??equals??
??putOrAdd(Ljava/lang/Object;II)I??
?size?
??
??(Ljava/lang/Object;)I?
?ktoo many shards on node for attribute: [%s], required per attribute: [%d], node count: [%d], leftover: [%d]
java/lang/IntegervalueOf(I)Ljava/lang/Integer;

!node meets awareness requirementsroutingNode
assignedShard	fullValuerequiredCountPerAttributeInodesPerAttributeSLcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectIntHashMap;?Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectIntHashMap;shardPerAttributenumberOfAttributes
fullValuesaveragePerAttribute
totalLeftoverleftoverPerAttributecurrentNodeCountawarenessAttribute
moveToNodeZ
indexMetaData4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;
shardCount
access$000h(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/AwarenessAllocationDecider;)[Ljava/lang/String;x0
access$100?(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/AwarenessAllocationDecider;)Lcom/groupbyinc/flux/common/logging/ESLogger;logger-Lcom/groupbyinc/flux/common/logging/ESLogger;./	0
access$002{(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/AwarenessAllocationDecider;[Ljava/lang/String;)[Ljava/lang/String;x1
access$200d(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/AwarenessAllocationDecider;)Ljava/util/Map;
access$202s(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/AwarenessAllocationDecider;Ljava/util/Map;)Ljava/util/Map;
ConstantValue	SignatureCodeLocalVariableTableLineNumberTableLocalVariableTypeTable
StackMapTableRuntimeVisibleAnnotations
SourceFileInnerClasses!999!"#$%:&'(;6*?,?/?<01=
tu'-;F*+?Y+?2?5?<016*=
}
~'3;<z*+?8*+?*?D?F+!?JN-?N?T:?Z?<?^?
:?a?c?<:??*?F?f?jW???,?Y*?m?q?<>Qr#@*suz01z6*zvw]x%>@*st]xy=.?????@?Q?W?j?m?y???*V??@7"z;/*?>?<01=?{|;Q	*+,-???<*	01	??	??	??=??|;Q	*+,-???<*	01	??	??	??=?}~;?.*?>??-????????-??+????:??`6*?>:?66		??	2:
,????
???-?????Y
S???-??
??:??Y??:-??+?׹?:

?Z?D
?^??:?ݚ???%-?????:????
????W????o+??U+???
+???+??:
,??
???2-??
?????
???W,????
????W?,????
????W?6
*?F
???:?0:?66?2:???
????
l6
p6?66?6??6,????
??	6`?1-????Y
SY?SY?SY?S??????	??"-???????<????2??;?
?
?y???T?
d?#?z?s ?a?U!?B"J?#
.01.??.??.??.$%%	&'.(>y???=?-???%?.?J?Y?n?y????????????????????$?7?:?M?T?d?i?????????????????????????????	?
???????#
??????1??"??V?%??!?C?<?'?????????????@?L?	
??????)*;/*?>?<+1=L,-;/*?1?<+1=L23;;*+Z?>?<+14#=L56;/*?F?<+1=L78;;*+Z?F?<+14%=LAB"

			




© 2015 - 2025 Weber Informatics LLC | Privacy Policy