Holds Nagios-style program status information.
More...
#include <Status.h>
Holds Nagios-style program status information.
Definition at line 42 of file Status.h.
Hypertable::Status::Status |
( |
| ) |
|
|
inline |
Constructor.
Definition at line 70 of file Status.h.
Hypertable::Status::Status |
( |
Code |
code, |
|
|
const std::string & |
text |
|
) |
| |
|
inline |
Constructor with initial values.
- Parameters
-
code | Status code |
text | Status text |
Definition at line 75 of file Status.h.
Hypertable::Status::Status |
( |
const Status & |
other | ) |
|
|
inline |
Copy constructor.
- Parameters
-
other | Other status object from which to copy |
Definition at line 79 of file Status.h.
const char * Status::code_to_string |
( |
Code |
code | ) |
|
|
static |
void Status::decode_internal |
( |
uint8_t |
version, |
|
|
const uint8_t ** |
bufp, |
|
|
size_t * |
remainp |
|
) |
| |
|
overrideprivatevirtual |
Reads serialized representation of object from a buffer.
- Parameters
-
version | Encoding version |
bufp | Address of destination buffer pointer (advanced by call) |
remainp | Address of integer holding amount of serialized object remaining |
- See also
- encode_internal() for encoding format
Implements Hypertable::Serializable.
Definition at line 85 of file Status.cc.
void Status::encode_internal |
( |
uint8_t ** |
bufp | ) |
const |
|
overrideprivatevirtual |
Writes serialized representation of object to a buffer.
Serialized format is as follows:
- Parameters
-
bufp | Address of destination buffer pointer (advanced by call) |
Encoding | Description |
i32Status code |
vstrStatus text |
Implements Hypertable::Serializable.
Definition at line 80 of file Status.cc.
size_t Status::encoded_length_internal |
( |
| ) |
const |
|
overrideprivatevirtual |
uint8_t Status::encoding_version |
( |
| ) |
const |
|
overrideprivatevirtual |
std::string Status::format_output_line |
( |
const std::string & |
service | ) |
|
Formats a Nagios-style output line.
Formats and returns a Nagios-style output line in the following format:
SERVICE STATUS - status text
- Parameters
-
- Returns
- Nagios-style output line.
Definition at line 92 of file Status.cc.
void Hypertable::Status::get |
( |
Code * |
code, |
|
|
std::string & |
text |
|
) |
| const |
|
inline |
Gets status code and text.
- Parameters
-
code | Address of variable to hold status code |
text | Reference to string variable to hold status text |
Definition at line 111 of file Status.h.
Code Hypertable::Status::get |
( |
| ) |
|
|
inline |
Copy assignment operator.
- Parameters
-
rhs | Right hand side object to copy |
Definition at line 91 of file Status.h.
void Hypertable::Status::set |
( |
Code |
code, |
|
|
const std::string & |
text |
|
) |
| |
|
inline |
Sets status code and text.
- Parameters
-
code | Status code |
text | Status text |
Definition at line 101 of file Status.h.
Code Hypertable::Status::m_code |
|
private |
std::mutex Hypertable::Status::m_mutex |
|
mutableprivate |
Mutex for serializaing access to members
Definition at line 158 of file Status.h.
std::string Hypertable::Status::m_text |
|
private |
The documentation for this class was generated from the following files:
- /home/doug/src/hypertable/src/cc/Common/Status.h
- /home/doug/src/hypertable/src/cc/Common/Status.cc