Handle basic startup and shutdown commands.
Handle basic startup and shutdown commands. This should clearly be overridden in all cases except possibly TailStages
a command originating from the channel
Shuts down the stage, deallocating resources, etc.
Shuts down the stage, deallocating resources, etc.
This method will be called when the stages receives a Disconnected command unless the
inboundCommand
method is overridden. It is not impossible that this will not be called
due to failure for other stages to propagate shutdown commands. Conversely, it is also
possible for this to be called more than once due to the reception of multiple disconnect
commands. It is therefore recommended that the method be idempotent.
Start the stage, allocating resources etc.
Start the stage, allocating resources etc.
This method should not effect other stages by sending commands etc unless it creates them. It is not impossible that the stage will receive other commands besides Connected before this method is called. It is not impossible for this method to be called multiple times by misbehaving stages. It is therefore recommended that the method be idempotent.