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