Hermes
0.9.5-beta
Hierarchical Distributed I/O Buffering System
|
Base class for Traits, which can attach functionality to VBuckets. More...
#include <traits.h>
Public Member Functions | |
Trait () | |
Default constructor. | |
Trait (TraitID id, const std::vector< TraitID > &conflict_traits, TraitType type) | |
Construct a Trait. More... | |
Public Attributes | |
TraitID | id |
std::vector< TraitID > | conflict_traits |
TraitType | type |
OnAttachCallback | onAttachFn |
OnAttachCallback | onDetachFn |
OnLinkCallback | onLinkFn |
OnLinkCallback | onUnlinkFn |
OnLinkCallback | onGetFn |
Base class for Traits, which can attach functionality to VBuckets.
To add functionality to a VBucket, inherit from this class and implement the various callbacks.
TraitID hermes::api::Trait::id |
The trait's ID
std::vector<TraitID> hermes::api::Trait::conflict_traits |
IDs of Traits whose functionality conflict with this Trait.
TraitType hermes::api::Trait::type |
The trait's type.
OnAttachCallback hermes::api::Trait::onAttachFn |
Callback for trait->vbucket attach events.
OnAttachCallback hermes::api::Trait::onDetachFn |
Callback for trait->vbucket detach events.
OnLinkCallback hermes::api::Trait::onLinkFn |
Callback for blob->vbucket link events.
OnLinkCallback hermes::api::Trait::onUnlinkFn |
Callback for blob-<vbucket unlink events.
OnLinkCallback hermes::api::Trait::onGetFn |
Callback for VBucket::Get events.