Package org.apache.kafka.connect.health
Class TaskState
java.lang.Object
org.apache.kafka.connect.health.AbstractState
org.apache.kafka.connect.health.TaskState
Describes the state, IDs, and any errors of a connector task.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.kafka.connect.health.AbstractState
state, traceMessage, workerId
-
Constructor Details
-
TaskState
Provides an instance ofTaskState.- Parameters:
taskId- the id associated with the connector taskstate- the status of the task, may not benullor emptyworkerId- id of the worker the task is associated with, may not benullor emptytrace- error message if that task had failed or errored out, may benullor empty
-
-
Method Details
-
taskId
public int taskId()Provides the ID of the task.- Returns:
- the task ID
-
equals
- Overrides:
equalsin classAbstractState
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractState
-
toString
-