Hyperspace definitions More...
Namespaces | |
HsClientState | |
HsParser | |
StateDbKeys | |
Util | |
Typedefs | |
typedef std::unordered_map < uint64_t, uint64_t > | NotificationMap |
Hash map from Node handle ID to Session ID. More... | |
typedef std::shared_ptr < BDbHandles > | BDbHandlesPtr |
Smart pointer to BDbHandles. More... | |
typedef std::shared_ptr < ClientConnectionHandler > | ClientConnectionHandlerPtr |
Shared smart pointer to ClientConnectionHandler. More... | |
typedef std::shared_ptr < ClientHandleState > | ClientHandleStatePtr |
typedef std::shared_ptr < ClientKeepaliveHandler > | ClientKeepaliveHandlerPtr |
typedef std::shared_ptr< Event > | HyperspaceEventPtr |
typedef std::shared_ptr < HandleCallback > | HandleCallbackPtr |
typedef std::shared_ptr < HsCommandInterpreter > | HsCommandInterpreterPtr |
typedef std::shared_ptr< Master > | MasterPtr |
typedef std::shared_ptr < MetricsHandler > | MetricsHandlerPtr |
Smart pointer to MetricsHandler. More... | |
typedef std::shared_ptr < ServerKeepaliveHandler > | ServerKeepaliveHandlerPtr |
typedef std::shared_ptr< Session > | SessionPtr |
typedef std::shared_ptr < SessionData > | SessionDataPtr |
Functions | |
std::ostream & | operator<< (std::ostream &out, const BDbTxn &txn) |
Writes human-readable version of txn to an ostream. More... | |
size_t | encoded_length_dir_entry (const DirEntry &dir_entry) |
Returns the number of bytes required to encode (serialize) the given directory entry. More... | |
void | encode_dir_entry (uint8_t **buf_ptr, const DirEntry &dir_entry) |
Encodes (serializes) the given directory entry to a buffer. More... | |
DirEntry & | decode_dir_entry (const uint8_t **buf_ptr, size_t *remaining_ptr, DirEntry &dir_entry) |
Decodes (unserializes) a directory entry from a buffer. More... | |
size_t | encoded_length_dir_entry_attr (const DirEntryAttr &entry) |
Returns the number of bytes required to encode (serialize) the given directory entry. More... | |
void | encode_dir_entry_attr (uint8_t **buf_ptr, const DirEntryAttr &entry) |
Encodes (serializes) the given directory entry to a buffer. More... | |
DirEntryAttr & | decode_dir_entry_attr (const uint8_t **buf_ptr, size_t *remaining_ptr, DirEntryAttr &entry) |
Decodes (unserializes) a directory entry from a buffer. More... | |
const char * | EventMaskToString (uint32_t mask) |
const char * | event_mask_to_string (uint32_t mask) |
void | close_handle (SessionPtr hyperspace, uint64_t handle) |
void | close_handle_ptr (SessionPtr hyperspace, uint64_t *handlep) |
Hyperspace definitions
typedef std::shared_ptr<ClientConnectionHandler> Hyperspace::ClientConnectionHandlerPtr |
Shared smart pointer to ClientConnectionHandler.
Definition at line 102 of file ClientConnectionHandler.h.
typedef std::shared_ptr<ClientHandleState> Hyperspace::ClientHandleStatePtr |
Definition at line 49 of file ClientHandleState.h.
typedef std::shared_ptr<ClientKeepaliveHandler> Hyperspace::ClientKeepaliveHandlerPtr |
Definition at line 119 of file ClientKeepaliveHandler.h.
typedef std::shared_ptr<HandleCallback> Hyperspace::HandleCallbackPtr |
Definition at line 113 of file HandleCallback.h.
typedef std::shared_ptr<HsCommandInterpreter> Hyperspace::HsCommandInterpreterPtr |
Definition at line 53 of file HsCommandInterpreter.h.
typedef std::shared_ptr<Event> Hyperspace::HyperspaceEventPtr |
typedef std::shared_ptr<Master> Hyperspace::MasterPtr |
typedef std::shared_ptr<ServerKeepaliveHandler> Hyperspace::ServerKeepaliveHandlerPtr |
Definition at line 56 of file ServerKeepaliveHandler.h.
typedef std::shared_ptr<SessionData> Hyperspace::SessionDataPtr |
Definition at line 156 of file SessionData.h.
anonymous enum |
anonymous enum |
Enumerator | |
---|---|
EVENT_MASK_ATTR_SET | |
EVENT_MASK_ATTR_DEL | |
EVENT_MASK_CHILD_NODE_ADDED | |
EVENT_MASK_CHILD_NODE_REMOVED | |
EVENT_MASK_LOCK_ACQUIRED | |
EVENT_MASK_LOCK_RELEASED | |
EVENT_MASK_LOCK_GRANTED |
Definition at line 36 of file HandleCallback.h.
enum Hyperspace::LockMode |
Lock mode.
Used to specify the type of lock to acquire.
Enumerator | |
---|---|
LOCK_MODE_SHARED |
Lock in shared mode. |
LOCK_MODE_EXCLUSIVE |
Lock exclusive mode. |
Definition at line 47 of file LockSequencer.h.
Lock status.
Used to report the result of a lock attempt
Definition at line 56 of file LockSequencer.h.
DirEntry & Hyperspace::decode_dir_entry | ( | const uint8_t ** | buf_ptr, |
size_t * | remaining_ptr, | ||
DirEntry & | dir_entry | ||
) |
Decodes (unserializes) a directory entry from a buffer.
buf_ptr | address of pointer to buffer containing encoded directory entry (advanced after decode) |
remaining_ptr | address of count variable holding the number of bytes remaining in buffer (decremented after decode) |
dir_entry | the directory entry to encode |
Definition at line 43 of file DirEntry.cc.
DirEntryAttr & Hyperspace::decode_dir_entry_attr | ( | const uint8_t ** | buf_ptr, |
size_t * | remaining_ptr, | ||
DirEntryAttr & | entry | ||
) |
Decodes (unserializes) a directory entry from a buffer.
buf_ptr | address of pointer to buffer containing encoded directory entry (advanced after decode) |
remaining_ptr | address of count variable holding the number of bytes remaining in buffer (decremented after decode) |
entry | the directory entry to encode |
Definition at line 53 of file DirEntryAttr.cc.
void Hyperspace::encode_dir_entry | ( | uint8_t ** | buf_ptr, |
const DirEntry & | dir_entry | ||
) |
Encodes (serializes) the given directory entry to a buffer.
buf_ptr | address of pointer to buffer to receive encoded directory entry (pointer is advanced passed the encoded entry) |
dir_entry | the directory entry to encode |
Definition at line 37 of file DirEntry.cc.
void Hyperspace::encode_dir_entry_attr | ( | uint8_t ** | buf_ptr, |
const DirEntryAttr & | entry | ||
) |
Encodes (serializes) the given directory entry to a buffer.
buf_ptr | address of pointer to buffer to receive encoded directory entry (pointer is advanced passed the encoded entry) |
entry | the directory entry to encode |
Definition at line 42 of file DirEntryAttr.cc.
size_t Hyperspace::encoded_length_dir_entry | ( | const DirEntry & | dir_entry | ) |
Returns the number of bytes required to encode (serialize) the given directory entry.
dir_entry | the directory entry |
Definition at line 33 of file DirEntry.cc.
size_t Hyperspace::encoded_length_dir_entry_attr | ( | const DirEntryAttr & | entry | ) |
Returns the number of bytes required to encode (serialize) the given directory entry.
entry | the directory entry |
Definition at line 35 of file DirEntryAttr.cc.
const char* Hyperspace::event_mask_to_string | ( | uint32_t | mask | ) |
const char* Hyperspace::EventMaskToString | ( | uint32_t | mask | ) |
Definition at line 27 of file HandleCallback.cc.