public class TaskState extends AbstractState
Constructor and Description |
---|
TaskState(int taskId,
String state,
String workerId,
String trace)
Provides an instance of
TaskState . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
int |
taskId()
Provides the ID of the task.
|
String |
toString() |
state, traceMessage, workerId
public TaskState(int taskId, String state, String workerId, String trace)
TaskState
.taskId
- the id associated with the connector taskstate
- the status of the task, may not be null
or emptyworkerId
- id of the worker the task is associated with, may not be null
or emptytrace
- error message if that task had failed or errored out, may be null
or emptypublic int taskId()
public boolean equals(Object o)
equals
in class AbstractState
public int hashCode()
hashCode
in class AbstractState