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

com.groupbyinc.flux.persistent.PersistentTasksClusterService.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4?com/groupbyinc/flux/persistent/PersistentTasksClusterService$5>com/groupbyinc/flux/persistent/PersistentTasksClusterService$4
>com/groupbyinc/flux/persistent/PersistentTasksClusterService$3>com/groupbyinc/flux/persistent/PersistentTasksClusterService$2>com/groupbyinc/flux/persistent/PersistentTasksClusterService$1Kcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData$PersistentTaskcom/groupbyinc/flux/persistent/decider/AssignmentDecision$Type9com/groupbyinc/flux/persistent/decider/AssignmentDecisionType4com/groupbyinc/flux/cluster/metadata/MetaData$Custom"-com/groupbyinc/flux/cluster/metadata/MetaData$Custom0com/groupbyinc/flux/cluster/ClusterState$Builder'(com/groupbyinc/flux/cluster/ClusterState)5com/groupbyinc/flux/cluster/metadata/MetaData$Builder+clusterService4Lcom/groupbyinc/flux/cluster/service/ClusterService;registry@Lcom/groupbyinc/flux/persistent/PersistentTasksExecutorRegistry;decider@Lcom/groupbyinc/flux/persistent/decider/EnableAssignmentDecider;?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/persistent/PersistentTasksExecutorRegistry;Lcom/groupbyinc/flux/cluster/service/ClusterService;)V1(Lcom/groupbyinc/flux/common/settings/Settings;)V35
6-.	82com/groupbyinc/flux/cluster/service/ClusterService:addListener5(Lcom/groupbyinc/flux/cluster/ClusterStateListener;)V<=
;>/0	@>com/groupbyinc/flux/persistent/decider/EnableAssignmentDeciderBgetClusterSettings7()Lcom/groupbyinc/flux/common/settings/ClusterSettings;DE
;Ff(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/settings/ClusterSettings;)V3H
CI12	Kthis>Lcom/groupbyinc/flux/persistent/PersistentTasksClusterService;settings.Lcom/groupbyinc/flux/common/settings/Settings;createPersistentTask?(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/persistent/PersistentTaskParams;Lcom/groupbyinc/flux/action/ActionListener;)Vcreate persistent taskS?(Lcom/groupbyinc/flux/persistent/PersistentTasksClusterService;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/persistent/PersistentTaskParams;Lcom/groupbyinc/flux/action/ActionListener;)V3U
VsubmitStateUpdateTaskI(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterStateTaskConfig;)VXY
;ZtaskIdLjava/lang/String;taskName
taskParamsTParams;5Lcom/groupbyinc/flux/persistent/PersistentTaskParams;listener}Lcom/groupbyinc/flux/action/ActionListener;>;+Lcom/groupbyinc/flux/action/ActionListener;completePersistentTaskV(Ljava/lang/String;JLjava/lang/Exception;Lcom/groupbyinc/flux/action/ActionListener;)Vlogger!Lorg/apache/logging/log4j/Logger;gh	ijava/lang/StringBuilderk()V3m
lnpersistent task pappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;rs
lt failedvtoString()Ljava/lang/String;xy
lzorg/apache/logging/log4j/Logger|warn*(Ljava/lang/String;Ljava/lang/Throwable;)V~}?finish persistent task (failed)? finish persistent task (success)?java/lang/String?(Lcom/groupbyinc/flux/persistent/PersistentTasksClusterService;Ljava/lang/String;JLcom/groupbyinc/flux/action/ActionListener;)V3?
?sourceidallocationIdJfailureLjava/lang/Exception;removePersistentTask@(Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionListener;)Vremove persistent task?~(Lcom/groupbyinc/flux/persistent/PersistentTasksClusterService;Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionListener;)V3?

?updatePersistentTaskStateu(Ljava/lang/String;JLcom/groupbyinc/flux/persistent/PersistentTaskState;Lcom/groupbyinc/flux/action/ActionListener;)Vupdate task state??(Lcom/groupbyinc/flux/persistent/PersistentTasksClusterService;Ljava/lang/String;JLcom/groupbyinc/flux/persistent/PersistentTaskState;Lcom/groupbyinc/flux/action/ActionListener;)V3?
?taskAllocationId	taskState4Lcom/groupbyinc/flux/persistent/PersistentTaskState;createAssignment?(Ljava/lang/String;Lcom/groupbyinc/flux/persistent/PersistentTaskParams;Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData$Assignment;>com/groupbyinc/flux/persistent/PersistentTasksExecutorRegistry?getPersistentTaskExecutorSafeL(Ljava/lang/String;)Lcom/groupbyinc/flux/persistent/PersistentTasksExecutor;??
??	canAssign=()Lcom/groupbyinc/flux/persistent/decider/AssignmentDecision;??
C?getTypeB()Lcom/groupbyinc/flux/persistent/decider/AssignmentDecision$Type;??
 ?NO@Lcom/groupbyinc/flux/persistent/decider/AssignmentDecision$Type;??	?persistent task [?] cannot be assigned [?	getReason?y
 ?]?'(Ljava/lang/String;Ljava/lang/String;)V3?
?6com/groupbyinc/flux/persistent/PersistentTasksExecutor?
getAssignment?(Lcom/groupbyinc/flux/persistent/PersistentTaskParams;Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData$Assignment;??
??currentState*Lcom/groupbyinc/flux/cluster/ClusterState;persistentTasksExecutorBLcom/groupbyinc/flux/persistent/PersistentTasksExecutor;8Lcom/groupbyinc/flux/persistent/PersistentTasksExecutor;decision;Lcom/groupbyinc/flux/persistent/decider/AssignmentDecision;clusterChanged4(Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;)V/com/groupbyinc/flux/cluster/ClusterChangedEvent?localNodeMaster()Z??
??shouldReassignPersistentTasks4(Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;)Z??
?/checking task reassignment for cluster state {}?state,()Lcom/groupbyinc/flux/cluster/ClusterState;??
??
getVersion()J??
*?java/lang/Long?valueOf(J)Ljava/lang/Long;??
??trace'(Ljava/lang/String;Ljava/lang/Object;)V??}?reassign persistent tasks?A(Lcom/groupbyinc/flux/persistent/PersistentTasksClusterService;)V3?
	?event1Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;getMetaData1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;??
*?persistent_tasks?customJ(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Custom;??
%?
previousState?
?nodes3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;
*/com/groupbyinc/flux/cluster/node/DiscoveryNodesisLocalNodeElectedMaster	?

persistentTasksChanged?

nodesChanged?
?routingTableChanged?
?metaDataChanged?
?tasks()Ljava/util/Collection;
java/util/Collectioniterator()Ljava/util/Iterator; java/util/Iterator"hasNext$?#%next()Ljava/lang/Object;'(#)K()Lcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData$Assignment;?+
,needsReassignment}(Lcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData$Assignment;Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;)Z./
0getTaskName2y
3	getParams7()Lcom/groupbyinc/flux/persistent/PersistentTaskParams;56
7??
9java/util/Objects;equals'(Ljava/lang/Object;Ljava/lang/Object;)Z=>
<?
assignmentILcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData$Assignment;taskPLcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData$PersistentTask<*>;MLcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData$PersistentTask;>Lcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData;
masterChangedZ
reassignTasksV(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState;reassigning {} persistent tasksKsize()IMNOjava/lang/IntegerQ(I)Ljava/lang/Integer;?S
RT+reassigning task {} from node {} to node {}VgetIdXy
YgetExecutorNode[y
\K(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V?^}_builderr(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData$Builder;ab
creassignTask?(Ljava/lang/String;Lcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData$Assignment;)Lcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData$Builder;ef
gupdate?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData$Builder;)Lcom/groupbyinc/flux/cluster/ClusterState;ij
k2ignoring task {} because assignment is the same {}m9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V?o}p,ignoring task {} because it is still runningr1Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;clusterStatemetaDatav?
*wtype
isAssignedz?
{
nodeExists(Ljava/lang/String;)Z}~
?(Lcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData;)Lcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData$Builder;a?
?	isChanged??
?^(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder;a?
*?h(Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;a?
%?build@()Lcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData;??
?	putCustom?(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/MetaData$Custom;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;??
,?k(Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder;v?
(???
(?tasksInProgressFLcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData$Builder;
access$000x0
access$100?(Lcom/groupbyinc/flux/persistent/PersistentTasksClusterService;)Lcom/groupbyinc/flux/persistent/PersistentTasksExecutorRegistry;
access$200?(Lcom/groupbyinc/flux/persistent/PersistentTasksClusterService;Ljava/lang/String;Lcom/groupbyinc/flux/persistent/PersistentTaskParams;Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData$Assignment;x1x2x3
access$300
access$400a(Lcom/groupbyinc/flux/persistent/PersistentTasksClusterService;)Lorg/apache/logging/log4j/Logger;
access$500
access$600
access$700
access$800CodeLocalVariableTableLineNumberTableLocalVariableTypeTable	Signature?(Ljava/lang/String;Ljava/lang/String;TParams;Lcom/groupbyinc/flux/action/ActionListener;>;)V
StackMapTable?(Ljava/lang/String;JLjava/lang/Exception;Lcom/groupbyinc/flux/action/ActionListener;>;)V?(Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionListener;>;)V?(Ljava/lang/String;JLcom/groupbyinc/flux/persistent/PersistentTaskState;Lcom/groupbyinc/flux/action/ActionListener;>;)V?(Ljava/lang/String;TParams;Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/persistent/PersistentTasksCustomMetaData$Assignment;
SourceFileInnerClasses!-./01234??%*+?7*-?9-*??*,?A*?CY+-?G?J?L??*%MN%OP%/0%-.?34
567$8QR??	*?9T?Y*+,-?W?[??4MN\]^]_abd?_`bc?
Dc??ef??	I?-*?j?lY?oq?u+?uw?u?{???:??:*?9?Y*+ ???[??H,?]IMNI?]I??I??Ibd3?]?Ibc?op(q/s3uH??	/???????h*?9??
Y*+,???[?? MN?]bd?bc?
????????
*?9??Y*+ ???[??4MN\]????bd?bc?
????????T*?A+??:*?L??:?????1?Y?lY?o??u+?u??u???u??u?{???,-?ǰ?>TMNT^]T_aT??
J??A???T_`
J????
???L???L? ??????6+?֙1*+?ڙ)*?j?+?????*?9?	Y*??[??6MN6??????$?5?5???k?+???????M,??+?????>+??+??+??+???\,??!:?&?G?*?:?-+???1?&*?4?8+??::?-?@???????>?ABj5CE?MN????F){GH?j5CD?>
)18?Ij|????!??@? ?
#?J?IJ???+M+??????N-??*?jL-??P?U??+?:-??!:?&???*?:?-?1?k*?4?8,?::?-?@?7*?jW?Z?-?]?]?`,,?d?Z?h?lM?*?jn?Z?q?*?js?Z????d,??HpTABR?CE1?t?MN????u??F?R?CD?J+-./+013R4_5p6}7?8?7?9?;?=?>?@?B?.?<**#?t?????m%?L*??x+??*??x+???@????%??"y]?
GH?
?#?@	./?X*?|?+*?]??????ABt?M?@
ab?:*?????????????Q
ij?y$+???*??*?x???+?????????*??$??$???UVWVX!V"Z?"?b?/*?d?????,???/*?A???N?,???P*+,-?:??*?N?]?a???,?j?:*+?l???????,???/*?j???N?,???/*?j???N?,???/*?j???N?,???/*?j???N?,???/*?j???N?,??b	
			 !@#%&	(*	,%	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy