Package multi :: Module result_commands :: Class Null_result_command
[hide private]
[frames] | no frames]

Class Null_result_command

source code


An empty result command.

This command should be returned from slave_command if no other Result_command is returned. This allows the queue processor to register that the slave processor has completed its processing and schedule new Slave-commands to it.

Instance Methods [hide private]
 
__init__(self, processor, completed=True)
Initialise a result.
source code

Inherited from Result_command: run

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]

Inherited from misc.Result: completed, memo_id, rank

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, processor, completed=True)
(Constructor)

source code 

Initialise a result.

This object is designed for subclassing and __init__ should be called via the super() function.

Parameters:
  • processor - Processor the processor instance we are running in.
  • completed - A flag used in batching result returns to indicate that the sequence of batched result commands has completed, the flag should be set by slave_commands. The value should be the value passed to a Slave_commands run method if it is the final result being returned otherwise it should be False.
Overrides: object.__init__
(inherited documentation)