Package org.apache.kafka.connect.health
Class AbstractState
java.lang.Object
org.apache.kafka.connect.health.AbstractState
- Direct Known Subclasses:
ConnectorState
,TaskState
Provides the current status for a connector or a task, along with an identifier for its Connect worker
-
Constructor Summary
ConstructorDescriptionAbstractState
(String state, String workerId, String traceMessage) Construct a state for a connector or task. -
Method Summary
-
Constructor Details
-
AbstractState
Construct a state for a connector or task.- Parameters:
state
- the status of a connector or task; may not be null or emptyworkerId
- the workerId associated with the connector or the task; may not be null or emptytraceMessage
- any error trace message associated with the connector or the task; may be null or empty
-
-
Method Details
-
state
Provides the current state of the connector or task.- Returns:
- state, never
null
or empty
-
workerId
The identifier of the worker associated with the connector or the task.- Returns:
- workerId, never
null
or empty.
-
traceMessage
The error message associated with the connector or task.- Returns:
- traceMessage, can be
null
or empty.
-
equals
-
hashCode
public int hashCode()
-