Package org.apache.druid.indexer
Class TaskStatusPlus
java.lang.Object
org.apache.druid.indexer.TaskStatusPlus
-
Constructor Summary
ConstructorsConstructorDescriptionTaskStatusPlus(String id, String groupId, String type, org.joda.time.DateTime createdTime, org.joda.time.DateTime queueInsertionTime, TaskState statusCode, RunnerTaskState runnerStatusCode, Long duration, TaskLocation location, String dataSource, String errorMsg) TaskStatusPlus(String id, String groupId, String type, org.joda.time.DateTime createdTime, org.joda.time.DateTime queueInsertionTime, TaskState statusCode, TaskState status, RunnerTaskState runnerTaskState, Long duration, TaskLocation location, String dataSource, String errorMsg) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TaskStatusPlusfromTaskIdentifierInfo(TaskIdStatus taskIdentifierInfo) Convert a TaskInfo class of TaskIdentifier and TaskStatus to a TaskStatusPlus Applicable only for completed or waiting tasks since a TaskInfo doesn't have the exhaustive info for running tasksorg.joda.time.DateTimegetId()org.joda.time.DateTimeDeprecated.getType()inthashCode()toString()
-
Constructor Details
-
TaskStatusPlus
public TaskStatusPlus(String id, @Nullable String groupId, @Nullable String type, org.joda.time.DateTime createdTime, org.joda.time.DateTime queueInsertionTime, @Nullable TaskState statusCode, @Nullable RunnerTaskState runnerStatusCode, @Nullable Long duration, TaskLocation location, @Nullable String dataSource, @Nullable String errorMsg) -
TaskStatusPlus
public TaskStatusPlus(String id, @Nullable String groupId, @Nullable String type, org.joda.time.DateTime createdTime, org.joda.time.DateTime queueInsertionTime, @Nullable TaskState statusCode, @Deprecated @Nullable TaskState status, @Nullable RunnerTaskState runnerTaskState, @Nullable Long duration, TaskLocation location, @Nullable String dataSource, @Nullable String errorMsg)
-
-
Method Details
-
getId
-
getGroupId
-
getType
-
getCreatedTime
public org.joda.time.DateTime getCreatedTime() -
getQueueInsertionTime
public org.joda.time.DateTime getQueueInsertionTime() -
getStatusCode
-
getStatus
Deprecated. -
getRunnerStatusCode
-
getDuration
-
getLocation
-
getDataSource
-
getErrorMsg
-
equals
-
hashCode
public int hashCode() -
toString
-
fromTaskIdentifierInfo
Convert a TaskInfo class of TaskIdentifier and TaskStatus to a TaskStatusPlus Applicable only for completed or waiting tasks since a TaskInfo doesn't have the exhaustive info for running tasks- Parameters:
taskIdentifierInfo- TaskInfo pair- Returns:
- corresponding TaskStatusPlus
-