com.groupbyinc.flux.tasks.Task.class Maven / Gradle / Ivy
???? 4 ? com/groupbyinc/flux/tasks/Task java/lang/Object Task.java %com/groupbyinc/flux/tasks/Task$Status Status id J type Ljava/lang/String; action description
parentTask "Lcom/groupbyinc/flux/tasks/TaskId; startTime startTimeNanos \(JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/TaskId;)V java/lang/System currentTimeMillis ()J
nanoTime
^(JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/TaskId;JJ)V
this Lcom/groupbyinc/flux/tasks/Task; ()V #
$
& (
* , .
0
2 taskInfo 9(Ljava/lang/String;Z)Lcom/groupbyinc/flux/tasks/TaskInfo; getDescription ()Ljava/lang/String; 6 7
8 getStatus )()Lcom/groupbyinc/flux/tasks/Task$Status; : ;
< java/lang/String > q(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/Task$Status;)Lcom/groupbyinc/flux/tasks/TaskInfo; 4 @
A localNodeId detailed Z status 'Lcom/groupbyinc/flux/tasks/Task$Status; "com/groupbyinc/flux/tasks/TaskInfo H com/groupbyinc/flux/tasks/TaskId J getId L
M (Ljava/lang/String;J)V O
K P getType R 7
S getAction U 7
V )com/groupbyinc/flux/tasks/CancellableTask X ?(Lcom/groupbyinc/flux/tasks/TaskId;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/Task$Status;JJZLcom/groupbyinc/flux/tasks/TaskId;)V Z
I [ getStartTime getParentTaskId $()Lcom/groupbyinc/flux/tasks/TaskId; result m(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/Exception;)Lcom/groupbyinc/flux/tasks/TaskResult; java/io/IOException b $com/groupbyinc/flux/tasks/TaskResult d .com/groupbyinc/flux/cluster/node/DiscoveryNode f L 7
g h 4 5
j <(Lcom/groupbyinc/flux/tasks/TaskInfo;Ljava/lang/Exception;)V l
e m node 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; error Ljava/lang/Exception; ?(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/action/ActionResponse;)Lcom/groupbyinc/flux/tasks/TaskResult; .com/groupbyinc/flux/common/xcontent/ToXContent t W(Lcom/groupbyinc/flux/tasks/TaskInfo;Lcom/groupbyinc/flux/common/xcontent/ToXContent;)V v
e w java/lang/IllegalStateException y Dresponse has to implement ToXContent to be able to store the results { (Ljava/lang/String;)V }
z ~ response +Lcom/groupbyinc/flux/action/ActionResponse; Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses !
? s *-? ? ? ? ? > ! "
?
8 9 ? ? -*? %*? '*-? )*? +*? -*? /*? 1* ? 3? ? R - ! " -
- -
- - -
-
? &