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
ConstructorsConstructorDescriptionAbstractState(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
nullor empty
workerId
The identifier of the worker associated with the connector or the task.- Returns:
- workerId, never
nullor empty.
traceMessage
The error message associated with the connector or task.- Returns:
- traceMessage, can be
nullor empty.
equals
hashCode