|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - type of the implementing class.public interface IExecutionState<T>
Represents state of command execution.
This interface represents the main states of command execution distinguished by a pipe.
Implementing class should represent execution state for specific command and resource types. It can be Enumeration, but it is not necessary.
ICommandExecutionContainer| Method Summary | |
|---|---|
boolean |
isExecuting()
Command (responsible execution container) is being currently executed. |
boolean |
isFinalized()
Command (responsible execution container) reached its final state. |
boolean |
isFinished()
Command (responsible execution container) execution is finished. |
boolean |
isQueued()
Command (responsible execution container) is queued for execution but is not executing. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
boolean isQueued()
true if command is queued for execution.boolean isExecuting()
There can be only one command in this state pro ICommandPipe
true if command is being currently executed.boolean isFinished()
This state means that execution of command is finished, but command has
not reached its final state yet. The next command queued in a
ICommandPipe can be activated. The command execution container in
this state will not be removed from a pipe and could undergo some king of
post processing.
true if command execution is finished.boolean isFinalized()
At this state no other state changes are allowed. Command execution
container will be removed from a ICommandPipe.
Execution result should be available only in this tsate.
true if command is finalized.IExecutionResult
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||