#include <HandleCallback.h>
Public Member Functions | |
HandleCallback (uint32_t event_mask) | |
Constructor. More... | |
virtual void | attr_set (const std::string &name) |
Invoked when an attribute gets set on the file associated with the registered handle. More... | |
virtual void | attr_del (const std::string &name) |
Invoked when an attribute gets deleted from the file associated with the registered handle. More... | |
virtual void | child_node_added (const std::string &name) |
Invoked when a child node gets added to the directory associated with the registered handle. More... | |
virtual void | child_node_removed (const std::string &name) |
Invoked when an attribute gets deleted from the file associated with the registered handle. More... | |
virtual void | lock_acquired (uint32_t mode) |
Invoked when a lock gets acquired on the file associated with the registered handle. More... | |
virtual void | lock_released () |
Invoked when a lock gets released on the file associated with the registered handle. More... | |
int | get_event_mask () |
Returns the event mask of this callback object. More... | |
Protected Attributes | |
uint32_t | m_event_mask |
Definition at line 55 of file HandleCallback.h.
|
inline |
Constructor.
Sets the event mask.
event_mask | mask of events to register |
Definition at line 61 of file HandleCallback.h.
|
inlinevirtual |
Invoked when an attribute gets deleted from the file associated with the registered handle.
name | the name of the attribute that was deleted |
Reimplemented in Hyperspace::FileHandleCallback.
Definition at line 75 of file HandleCallback.h.
|
inlinevirtual |
Invoked when an attribute gets set on the file associated with the registered handle.
name | the name of the attribute that was set |
Reimplemented in Hypertable::Lib::Master::HyperspaceCallback, Hypertable::RootFileHandler, and Hyperspace::FileHandleCallback.
Definition at line 68 of file HandleCallback.h.
|
inlinevirtual |
Invoked when a child node gets added to the directory associated with the registered handle.
name | the name of the attribute that was deleted |
Reimplemented in Hyperspace::FileHandleCallback.
Definition at line 82 of file HandleCallback.h.
|
inlinevirtual |
Invoked when an attribute gets deleted from the file associated with the registered handle.
name | the name of the attribute that was deleted |
Reimplemented in Hyperspace::FileHandleCallback.
Definition at line 89 of file HandleCallback.h.
|
inline |
Returns the event mask of this callback object.
Definition at line 107 of file HandleCallback.h.
|
inlinevirtual |
Invoked when a lock gets acquired on the file associated with the registered handle.
mode | the mode in which the lock was acquired |
Reimplemented in Hypertable::RangeServerHyperspaceCallback, and Hyperspace::FileHandleCallback.
Definition at line 96 of file HandleCallback.h.
|
inlinevirtual |
Invoked when a lock gets released on the file associated with the registered handle.
Reimplemented in Hypertable::RangeServerHyperspaceCallback, and Hyperspace::FileHandleCallback.
Definition at line 101 of file HandleCallback.h.
|
protected |
Definition at line 110 of file HandleCallback.h.