#include <operation.hpp>
virtual kzh::operation::~operation |
( |
| ) |
|
|
inlinevirtual |
virtual void kzh::operation::commit |
( |
| ) |
|
|
inlinevirtual |
Purging is handy for operations that use the Karazeh cache while deploying or staging. When an operation is called to commit, it is guaranteed that the patch has been rolled out successfully and any transient data will not be needed (no rollback will be invoked).
The cache is used for operations that require storing some data in a safe place only for the use of rollbacks if required, but should otherwise be discarded.
Reimplemented in kzh::update_operation, kzh::delete_operation, and kzh::create_operation.
virtual STAGE_RC kzh::operation::deploy |
( |
| ) |
|
|
pure virtual |
virtual void kzh::operation::rollback |
( |
| ) |
|
|
pure virtual |
virtual STAGE_RC kzh::operation::stage |
( |
| ) |
|
|
pure virtual |
An operation gets "staged" in order to verify whether all its required conditions are fulfilled in order to be deployted.
Usually, operations verify permissions, existence (or lack of) required files, and the downloading of resources while staging.
If an operation returns anything other than STAGE_OK, all registered patch operations will be called to rollback().
Implemented in kzh::create_operation, kzh::update_operation, and kzh::delete_operation.
virtual string_t kzh::operation::tostring |
( |
| ) |
|
|
inlinevirtual |
Referenced by kzh::create_operation::commit(), kzh::delete_operation::commit(), kzh::update_operation::commit(), kzh::delete_operation::deploy(), kzh::update_operation::deploy(), kzh::create_operation::deploy(), kzh::create_operation::get_destination(), kzh::create_operation::has_deployed(), kzh::create_operation::rollback(), kzh::delete_operation::rollback(), kzh::update_operation::rollback(), kzh::delete_operation::stage(), kzh::update_operation::stage(), and kzh::create_operation::stage().
The documentation for this class was generated from the following file: