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 along with identifier for Connect worker and tasks.
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractState(String state, String workerId, String traceMessage) Construct a state for connector or task.
- 
Method Summary
- 
Constructor Details- 
AbstractStateConstruct a state for connector or task.- Parameters:
- state- the status of connector or task; may not be null or empty
- workerId- the workerId associated with the connector or the task; may not be null or empty
- traceMessage- any error trace message associated with the connector or the task; may be null or empty
 
 
- 
- 
Method Details- 
stateProvides the current state of the connector or task.- Returns:
- state, never nullor empty
 
- 
workerIdThe identifier of the worker associated with the connector or the task.- Returns:
- workerId, never nullor empty.
 
- 
traceMessageThe error message associated with the connector or task.- Returns:
- traceMessage, can be nullor empty.
 
- 
equals
- 
hashCodepublic int hashCode()
 
-