Package ganeti :: Package jqueue :: Class _QueuedOpCode
[hide private]
[frames] | no frames]

Class _QueuedOpCode

source code


Encapsulates an opcode object.

Instance Methods [hide private]
 
__init__(self, op)
Initializes instances of this class.
source code
dict
Serialize(self)
Serializes this _QueuedOpCode.
source code

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

Class Methods [hide private]
_QueuedOpCode
Restore(cls, state)
Restore the _QueuedOpCode from the serialized form.
source code
Instance Variables [hide private]
  exec_timestamp
timestamp for the actual LU Exec() function invocation
  input
the OpCode we encapsulate
  log
holds the execution log and consists of tuples of the form (log_serial, timestamp, level, message)
  result
the result of the LU execution
  start_timestamp
timestamp for the start of the execution
  status
the current status
  stop_timestamp
timestamp for the end of the execution
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, op)
(Constructor)

source code 

Initializes instances of this class.

Parameters:
Overrides: object.__init__

Restore(cls, state)
Class Method

source code 

Restore the _QueuedOpCode from the serialized form.

Parameters:
  • state (dict) - the serialized state
Returns: _QueuedOpCode
a new _QueuedOpCode instance

Serialize(self)

source code 

Serializes this _QueuedOpCode.

Returns: dict
the dictionary holding the serialized state