Hermes
0.9.5-beta
Hierarchical Distributed I/O Buffering System
|
Marks the Blobs in a VBucket as write-only. More...
#include <traits.h>
Public Member Functions | |
void | onAttach (HermesPtr hermes, VBucketID id, Trait *trait) |
Currently a no-op. | |
void | onDetach (HermesPtr hermes, VBucketID id, Trait *trait) |
Currently a no-op. | |
void | onLink (HermesPtr hermes, TraitInput &input, Trait *trait) |
void | onUnlink (HermesPtr hermes, TraitInput &input, Trait *trait) |
Currently a no-op. | |
Public Member Functions inherited from hermes::api::Trait | |
Trait () | |
Default constructor. | |
Trait (TraitID id, const std::vector< TraitID > &conflict_traits, TraitType type) | |
Construct a Trait. More... | |
Additional Inherited Members | |
Public Attributes inherited from hermes::api::Trait | |
TraitID | id |
std::vector< TraitID > | conflict_traits |
TraitType | type |
OnAttachCallback | onAttachFn |
OnAttachCallback | onDetachFn |
OnLinkCallback | onLinkFn |
OnLinkCallback | onUnlinkFn |
OnLinkCallback | onGetFn |
Marks the Blobs in a VBucket as write-only.
If we know that certain Blobs are write-only, we can asynchronously and eagerly flush buffered data to the final destination.
void hermes::api::WriteOnlyTrait::onLink | ( | HermesPtr | hermes, |
TraitInput & | input, | ||
Trait * | trait | ||
) |
a binding function to run on link event