The ironic_python_agent.extensions.base
Module¶
-
class
ironic_python_agent.extensions.base.
AgentCommandStatus
[source]¶ Bases:
object
Mapping of agent command statuses.
-
class
ironic_python_agent.extensions.base.
AsyncCommandResult
(command_name, command_params, execute_method, agent=None)[source]¶ Bases:
ironic_python_agent.extensions.base.BaseCommandResult
A command that executes asynchronously in the background.
-
is_done
()[source]¶ Checks to see if command is still RUNNING.
Returns: True if command is done, False if still RUNNING
-
join
(timeout=None)[source]¶ Block until command has completed, and return result.
Parameters: timeout – float indicating max seconds to wait for command to complete. Defaults to None.
-
-
class
ironic_python_agent.extensions.base.
BaseCommandResult
(command_name, command_params)[source]¶ Bases:
ironic_python_agent.encoding.SerializableComparable
Base class for command result.
-
class
ironic_python_agent.extensions.base.
SyncCommandResult
(command_name, command_params, success, result_or_error)[source]¶ Bases:
ironic_python_agent.extensions.base.BaseCommandResult
A result from a command that executes synchronously.