Adapters progress through a set of run states (RS) as they interact
with Event Stream Processor.
- RS_READY – indicates that the adapter is ready to be started.
- RS_INITIAL – indicates that the adapter is performing start-up and initial loading. An adapter enters the RS_INITIAL state when the reset function is called.
- RS_CONTINUOUS – indicates that the adapter is continuously waiting for additional data. If the RS_CONTINUOUS state is set in the reset method, input adapters return from reset with data to process, and output adapters return from reset prepared to accept data.
- RS_IDLE – indicates that the adapter has timed out or is attempting to restore a broken socket.
- RS_DONE – indicates when the adapter no longer returns data and can no longer retrieve data following the poll period.
- RS_DEAD – indicates that the adapter has entered the exited state. The
adapter does not operate until you call the restart function.
When polling is enabled, an input adapter may change states from RS_CONTINUOUS to RS_IDLE. Change the adapter state back to RS_CONTINUOUS to retry data retrieval after a certain amount of time.