0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Attributes | List of all members
Hyperspace::HandleCallback Class Reference

#include <HandleCallback.h>

Inheritance diagram for Hyperspace::HandleCallback:
Inheritance graph
[legend]

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
 

Detailed Description

Definition at line 55 of file HandleCallback.h.

Constructor & Destructor Documentation

Hyperspace::HandleCallback::HandleCallback ( uint32_t  event_mask)
inline

Constructor.

Sets the event mask.

Parameters
event_maskmask of events to register

Definition at line 61 of file HandleCallback.h.

Member Function Documentation

virtual void Hyperspace::HandleCallback::attr_del ( const std::string &  name)
inlinevirtual

Invoked when an attribute gets deleted from the file associated with the registered handle.

Parameters
namethe name of the attribute that was deleted

Reimplemented in Hyperspace::FileHandleCallback.

Definition at line 75 of file HandleCallback.h.

virtual void Hyperspace::HandleCallback::attr_set ( const std::string &  name)
inlinevirtual

Invoked when an attribute gets set on the file associated with the registered handle.

Parameters
namethe 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.

virtual void Hyperspace::HandleCallback::child_node_added ( const std::string &  name)
inlinevirtual

Invoked when a child node gets added to the directory associated with the registered handle.

Parameters
namethe name of the attribute that was deleted

Reimplemented in Hyperspace::FileHandleCallback.

Definition at line 82 of file HandleCallback.h.

virtual void Hyperspace::HandleCallback::child_node_removed ( const std::string &  name)
inlinevirtual

Invoked when an attribute gets deleted from the file associated with the registered handle.

Parameters
namethe name of the attribute that was deleted

Reimplemented in Hyperspace::FileHandleCallback.

Definition at line 89 of file HandleCallback.h.

int Hyperspace::HandleCallback::get_event_mask ( )
inline

Returns the event mask of this callback object.

Returns
the event mask

Definition at line 107 of file HandleCallback.h.

virtual void Hyperspace::HandleCallback::lock_acquired ( uint32_t  mode)
inlinevirtual

Invoked when a lock gets acquired on the file associated with the registered handle.

Parameters
modethe mode in which the lock was acquired

Reimplemented in Hypertable::RangeServerHyperspaceCallback, and Hyperspace::FileHandleCallback.

Definition at line 96 of file HandleCallback.h.

virtual void Hyperspace::HandleCallback::lock_released ( )
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.

Member Data Documentation

uint32_t Hyperspace::HandleCallback::m_event_mask
protected

Definition at line 110 of file HandleCallback.h.


The documentation for this class was generated from the following file: