0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Hypertable::FsBroker::Lib::Request::Parameters::Shutdown Class Reference

Request parameters for shutdown requests. More...

#include <Shutdown.h>

Inheritance diagram for Hypertable::FsBroker::Lib::Request::Parameters::Shutdown:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::FsBroker::Lib::Request::Parameters::Shutdown:
Collaboration graph
[legend]

Public Member Functions

 Shutdown ()
 Constructor. More...
 
 Shutdown (uint16_t flags)
 Constructor. More...
 
uint16_t get_flags ()
 Gets flags. More...
 
- Public Member Functions inherited from Hypertable::Serializable
virtual size_t encoded_length () const
 Returns serialized object length. More...
 
virtual void encode (uint8_t **bufp) const
 Writes serialized representation of object to a buffer. More...
 
virtual void decode (const uint8_t **bufp, size_t *remainp)
 Reads serialized representation of object from a buffer. More...
 

Private Member Functions

uint8_t encoding_version () const override
 Returns encoding version. More...
 
size_t encoded_length_internal () const override
 Returns internal serialized length. More...
 
void encode_internal (uint8_t **bufp) const override
 Writes serialized representation of object to a buffer. More...
 
void decode_internal (uint8_t version, const uint8_t **bufp, size_t *remainp) override
 Reads serialized representation of object from a buffer. More...
 

Private Attributes

uint16_t m_flags {}
 Flags. More...
 

Additional Inherited Members

Detailed Description

Request parameters for shutdown requests.

Definition at line 46 of file Shutdown.h.

Constructor & Destructor Documentation

Hypertable::FsBroker::Lib::Request::Parameters::Shutdown::Shutdown ( )
inline

Constructor.

Empty initialization for decoding.

Definition at line 51 of file Shutdown.h.

Hypertable::FsBroker::Lib::Request::Parameters::Shutdown::Shutdown ( uint16_t  flags)
inline

Constructor.

Initializes with parameters for encoding. Sets m_flags to flags.

Parameters
flagsFlags

Definition at line 57 of file Shutdown.h.

Member Function Documentation

void Shutdown::decode_internal ( uint8_t  version,
const uint8_t **  bufp,
size_t *  remainp 
)
overrideprivatevirtual

Reads serialized representation of object from a buffer.

This function is to be overridden by derived classes and should decode the object per-se as encoded with encode_internal().

Parameters
versionEncoding version
bufpAddress of destination buffer pointer (advanced by call)
remainpAddress of integer holding amount of serialized encoding remaining
See also
encode_internal() for encoding format

Implements Hypertable::Serializable.

Definition at line 49 of file Shutdown.cc.

void Shutdown::encode_internal ( uint8_t **  bufp) const
overrideprivatevirtual

Writes serialized representation of object to a buffer.

This function is to be overridden by derived classes and should encode the object per-se.

Parameters
bufpAddress of destination buffer pointer (advanced by call)

Implements Hypertable::Serializable.

Definition at line 45 of file Shutdown.cc.

size_t Shutdown::encoded_length_internal ( ) const
overrideprivatevirtual

Returns internal serialized length.

This function is to be overridden by derived classes and should return the length of the the serialized object per-se.

Returns
Internal serialized length
See also
encode_internal() for encoding format

Implements Hypertable::Serializable.

Definition at line 41 of file Shutdown.cc.

uint8_t Shutdown::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 37 of file Shutdown.cc.

uint16_t Hypertable::FsBroker::Lib::Request::Parameters::Shutdown::get_flags ( )
inline

Gets flags.

Returns
Flags

Definition at line 61 of file Shutdown.h.

Member Data Documentation

uint16_t Hypertable::FsBroker::Lib::Request::Parameters::Shutdown::m_flags {}
private

Flags.

Definition at line 75 of file Shutdown.h.


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