test_class.file: dataprep-async-api/src/test/java/org/talend/dataprep/async/AsyncExecutionTest.java
test_class.identifier: AsyncExecutionTest
test_case.body: @Test
      public void shouldOrderMostRecentEndFirst() {
          long mostRecentEndDate = 35374L;
          List<AsyncExecution> unOrderedAsyncs =
                  Lists.newArrayList(buildAsyncExecution(AsyncExecution.Status.DONE, 25374L),
                          buildAsyncExecution(AsyncExecution.Status.DONE, mostRecentEndDate));
  
          unOrderedAsyncs.sort(naturalOrder());
  
          assertEquals(mostRecentEndDate, unOrderedAsyncs.get(0).getTime().getEndDate());
      }
test_case.class_method_signature: AsyncExecutionTest.shouldOrderMostRecentEndFirst()
test_case.full_signature: @Test public void shouldOrderMostRecentEndFirst()
test_case.identifier: shouldOrderMostRecentEndFirst
test_case.invocations: newArrayList buildAsyncExecution buildAsyncExecution sort naturalOrder assertEquals getEndDate getTime get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldOrderMostRecentEndFirst()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(AsyncExecution.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(AsyncExecution.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: group
focal_class.modifier: private
focal_class.original_string: private String group;
focal_class.type: String
focal_class.var_name: group
focal_class.declarator: id
focal_class.modifier: private
focal_class.original_string: private String id;
focal_class.type: String
focal_class.var_name: id
focal_class.declarator: time = new Time()
focal_class.modifier: private
focal_class.original_string: private Time time = new Time();
focal_class.type: Time
focal_class.var_name: time
focal_class.declarator: status = Status.NEW
focal_class.modifier: private
focal_class.original_string: private Status status = Status.NEW;
focal_class.type: Status
focal_class.var_name: status
focal_class.declarator: result
focal_class.modifier: @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.NON_NULL)
      @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS)
      private
focal_class.original_string: @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.NON_NULL)
      @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS)
      private AsyncExecutionResult result;
focal_class.type: AsyncExecutionResult
focal_class.var_name: result
focal_class.declarator: error
focal_class.modifier: @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS)
      @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.NON_NULL)
      private
focal_class.original_string: @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS)
      @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.NON_NULL)
      private ErrorCode error;
focal_class.type: ErrorCode
focal_class.var_name: error
focal_class.declarator: progress
focal_class.modifier: private
focal_class.original_string: private ExecutionProgress progress;
focal_class.type: ExecutionProgress
focal_class.var_name: progress
focal_class.declarator: userId
focal_class.modifier: private
focal_class.original_string: private String userId;
focal_class.type: String
focal_class.var_name: userId
focal_class.declarator: tenantId
focal_class.modifier: private
focal_class.original_string: private String tenantId;
focal_class.type: String
focal_class.var_name: tenantId
focal_class.declarator: dispatchId
focal_class.modifier: private
focal_class.original_string: private String dispatchId;
focal_class.type: String
focal_class.var_name: dispatchId
focal_class.file: dataprep-async-api/src/main/java/org/talend/dataprep/async/AsyncExecution.java
focal_class.identifier: AsyncExecution
focal_class.interfaces: implements Comparable<AsyncExecution>
focal_class.class_method_signature: AsyncExecution.AsyncExecution()
focal_class.full_signature: public  AsyncExecution()
focal_class.identifier: AsyncExecution
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  AsyncExecution()
focal_class.class_method_signature: AsyncExecution.AsyncExecution(String group)
focal_class.full_signature: public  AsyncExecution(String group)
focal_class.identifier: AsyncExecution
focal_class.modifiers: public
focal_class.parameters: (String group)
focal_class.signature:  AsyncExecution(String group)
focal_class.class_method_signature: AsyncExecution.AsyncExecution(String group, String id)
focal_class.full_signature: public  AsyncExecution(String group, String id)
focal_class.identifier: AsyncExecution
focal_class.modifiers: public
focal_class.parameters: (String group, String id)
focal_class.signature:  AsyncExecution(String group, String id)
focal_class.class_method_signature: AsyncExecution.reverseStartDateComparator()
focal_class.full_signature: public static Comparator<AsyncExecution> reverseStartDateComparator()
focal_class.identifier: reverseStartDateComparator
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Comparator<AsyncExecution>
focal_class.signature: Comparator<AsyncExecution> reverseStartDateComparator()
focal_class.class_method_signature: AsyncExecution.reverseEndDateComparator()
focal_class.full_signature: public static Comparator<AsyncExecution> reverseEndDateComparator()
focal_class.identifier: reverseEndDateComparator
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Comparator<AsyncExecution>
focal_class.signature: Comparator<AsyncExecution> reverseEndDateComparator()
focal_class.class_method_signature: AsyncExecution.getTime()
focal_class.full_signature: public Time getTime()
focal_class.identifier: getTime
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Time
focal_class.signature: Time getTime()
focal_class.class_method_signature: AsyncExecution.setTime(Time time)
focal_class.full_signature: public void setTime(Time time)
focal_class.identifier: setTime
focal_class.modifiers: public
focal_class.parameters: (Time time)
focal_class.return: void
focal_class.signature: void setTime(Time time)
focal_class.class_method_signature: AsyncExecution.getGroup()
focal_class.full_signature: public String getGroup()
focal_class.identifier: getGroup
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getGroup()
focal_class.class_method_signature: AsyncExecution.setGroup(String group)
focal_class.full_signature: public void setGroup(String group)
focal_class.identifier: setGroup
focal_class.modifiers: public
focal_class.parameters: (String group)
focal_class.return: void
focal_class.signature: void setGroup(String group)
focal_class.class_method_signature: AsyncExecution.getId()
focal_class.full_signature: public String getId()
focal_class.identifier: getId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getId()
focal_class.class_method_signature: AsyncExecution.setId(String id)
focal_class.full_signature: public void setId(String id)
focal_class.identifier: setId
focal_class.modifiers: public
focal_class.parameters: (String id)
focal_class.return: void
focal_class.signature: void setId(String id)
focal_class.class_method_signature: AsyncExecution.getError()
focal_class.full_signature: public ErrorCode getError()
focal_class.identifier: getError
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ErrorCode
focal_class.signature: ErrorCode getError()
focal_class.class_method_signature: AsyncExecution.setError(ErrorCode error)
focal_class.full_signature: public void setError(ErrorCode error)
focal_class.identifier: setError
focal_class.modifiers: public
focal_class.parameters: (ErrorCode error)
focal_class.return: void
focal_class.signature: void setError(ErrorCode error)
focal_class.class_method_signature: AsyncExecution.getProgress()
focal_class.full_signature: public ExecutionProgress getProgress()
focal_class.identifier: getProgress
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ExecutionProgress
focal_class.signature: ExecutionProgress getProgress()
focal_class.class_method_signature: AsyncExecution.setProgress(ExecutionProgress progress)
focal_class.full_signature: public void setProgress(ExecutionProgress progress)
focal_class.identifier: setProgress
focal_class.modifiers: public
focal_class.parameters: (ExecutionProgress progress)
focal_class.return: void
focal_class.signature: void setProgress(ExecutionProgress progress)
focal_class.class_method_signature: AsyncExecution.getStatus()
focal_class.full_signature: public Status getStatus()
focal_class.identifier: getStatus
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Status
focal_class.signature: Status getStatus()
focal_class.class_method_signature: AsyncExecution.setStatus(Status status)
focal_class.full_signature: public void setStatus(Status status)
focal_class.identifier: setStatus
focal_class.modifiers: public
focal_class.parameters: (Status status)
focal_class.return: void
focal_class.signature: void setStatus(Status status)
focal_class.class_method_signature: AsyncExecution.updateExecutionState(Status status)
focal_class.full_signature: public void updateExecutionState(Status status)
focal_class.identifier: updateExecutionState
focal_class.modifiers: public
focal_class.parameters: (Status status)
focal_class.return: void
focal_class.signature: void updateExecutionState(Status status)
focal_class.class_method_signature: AsyncExecution.setException(Throwable error)
focal_class.full_signature: public void setException(Throwable error)
focal_class.identifier: setException
focal_class.modifiers: public
focal_class.parameters: (Throwable error)
focal_class.return: void
focal_class.signature: void setException(Throwable error)
focal_class.class_method_signature: AsyncExecution.getUserId()
focal_class.full_signature: public String getUserId()
focal_class.identifier: getUserId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getUserId()
focal_class.class_method_signature: AsyncExecution.setUserId(String userId)
focal_class.full_signature: public void setUserId(String userId)
focal_class.identifier: setUserId
focal_class.modifiers: public
focal_class.parameters: (String userId)
focal_class.return: void
focal_class.signature: void setUserId(String userId)
focal_class.class_method_signature: AsyncExecution.setResult(AsyncExecutionResult result)
focal_class.full_signature: public void setResult(AsyncExecutionResult result)
focal_class.identifier: setResult
focal_class.modifiers: public
focal_class.parameters: (AsyncExecutionResult result)
focal_class.return: void
focal_class.signature: void setResult(AsyncExecutionResult result)
focal_class.class_method_signature: AsyncExecution.getResult()
focal_class.full_signature: public AsyncExecutionResult getResult()
focal_class.identifier: getResult
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: AsyncExecutionResult
focal_class.signature: AsyncExecutionResult getResult()
focal_class.class_method_signature: AsyncExecution.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: AsyncExecution.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: AsyncExecution.isResumable()
focal_class.full_signature: @JsonIgnore public boolean isResumable()
focal_class.identifier: isResumable
focal_class.modifiers: @JsonIgnore public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isResumable()
focal_class.class_method_signature: AsyncExecution.getTenantId()
focal_class.full_signature: public String getTenantId()
focal_class.identifier: getTenantId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getTenantId()
focal_class.class_method_signature: AsyncExecution.setTenantId(String tenantId)
focal_class.full_signature: public void setTenantId(String tenantId)
focal_class.identifier: setTenantId
focal_class.modifiers: public
focal_class.parameters: (String tenantId)
focal_class.return: void
focal_class.signature: void setTenantId(String tenantId)
focal_class.class_method_signature: AsyncExecution.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: AsyncExecution.setDispatchId(String dispatchId)
focal_class.full_signature: public void setDispatchId(String dispatchId)
focal_class.identifier: setDispatchId
focal_class.modifiers: public
focal_class.parameters: (String dispatchId)
focal_class.return: void
focal_class.signature: void setDispatchId(String dispatchId)
focal_class.class_method_signature: AsyncExecution.getDispatchId()
focal_class.full_signature: public String getDispatchId()
focal_class.identifier: getDispatchId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDispatchId()
focal_class.class_method_signature: AsyncExecution.compareTo(AsyncExecution o)
focal_class.full_signature: @Override public int compareTo(AsyncExecution o)
focal_class.identifier: compareTo
focal_class.modifiers: @Override public
focal_class.parameters: (AsyncExecution o)
focal_class.return: int
focal_class.signature: int compareTo(AsyncExecution o)
focal_method.body: public Time getTime() {
          return time;
      }
focal_method.class_method_signature: AsyncExecution.getTime()
focal_method.full_signature: public Time getTime()
focal_method.identifier: getTime
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Time
focal_method.signature: Time getTime()