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 SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.kafka.connect.health.AbstractStatestate, traceMessage, workerId
- 
Constructor Details- 
TaskStateProvides an instance ofTaskState.- Parameters:
- taskId- the id associated with the connector task
- state- the status of the task, may not be- nullor empty
- workerId- id of the worker the task is associated with, may not be- nullor empty
- trace- error message if that task had failed or errored out, may be- nullor empty
 
 
- 
- 
Method Details- 
taskIdpublic int taskId()Provides the ID of the task.- Returns:
- the task ID
 
- 
equals- Overrides:
- equalsin class- AbstractState
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- AbstractState
 
- 
toString
 
-