Class: ProcessingPhase Abstract
Defined in: | src/kermit/RequestItem.coffee |
Overview
A RequestItem is always in one of the following processing phases. Each item starts with phase {ProcessingPhase.INITIAL} From phase INITIAL it transitions forward while being processed by the Extensions that handle items of that particular phase. The following diagram illustrate the possible phase transitions with the ordinary flow INITIAL -> SPOOLED -> READY -> FETCHING -> FETCHED -> COMPLETE. Any item may also end in phases CANCELED or ERROR depending on the logic of the Extensions
.-------------.
| INITIAL |
|-------------|
| Unprocessed |
| |
'-------------' \
| \
| \
| v
v .--------------------.
.-------------. | ERROR | CANCELED | .-----------.
| SPOOLED | |--------------------| | COMPLETE |
|-------------| --->| - Error | |-----------|
| Waiting for | | - Duplicate | | Done! |
| free slot | | - Blacklisted etc. | | |
'-------------' '--------------------' '-----------'
| ^ ^ ^ ^
| / | \ |
| / | \ |
v / \ |
.-------------. .-------------. .-----------.
| READY | | FETCHING | | FETCHED |
|-------------| |-------------| |-----------|
| Ready for |-------->| Request |--------->| Content |
| fetching | | streaming | | received |
'-------------' '-------------' '-----------'
Property Summary
- (String) INITIAL
- See INITIAL
- (String) SPOOLED
- See SPOOLED
- (String) READY
- See READY
- (String) FETCHING
- See FETCHING
- (String) FETCHED
- See FETCHED
- (String) COMPLETE
- See COMPLETE
- (String) ERROR
- See ERROR
- (String) CANCELED
- See CANCELED
- (Array<String>) ALL
- Collection of all defined phase
Class Method Summary
- . (void) follower(phase) Retrieve the expected succeeding phase for the given phase
- . (void) predecessor(phase) Retrieve the preceeding phase for the given phase
Class Method Details
.
(void)
follower(phase)
Retrieve the expected succeeding phase for the given phase
.
(void)
predecessor(phase)
Retrieve the preceeding phase for the given phase
Constructor Details
#
(void)
constructor()