public abstract class AbstractState extends Object
Constructor and Description |
---|
AbstractState(String state,
String workerId,
String traceMessage)
Construct a state for connector or task.
|
Modifier and Type | Method and Description |
---|---|
String |
state()
Provides the current state of the connector or task.
|
String |
traceMessage()
The error message associated with the connector or task.
|
String |
workerId()
The identifier of the worker associated with the connector or the task.
|
public AbstractState(String state, String workerId, String traceMessage)
state
- the status of 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 emptypublic String state()
null
or emptypublic String workerId()
null
or empty.public String traceMessage()
null
or empty.