Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
Functions
qpid::sys::SystemInfo Namespace Reference

Retrieve information about the system we are running on. More...

Functions

long concurrency ()
 Estimate available concurrency, e.g.
bool getLocalHostname (Address &address)
 Get the local host name and set it in the specified.
void getLocalIpAddresses (uint16_t port, std::vector< Address > &addrList)
 Get the (possibly multiple) local IP addresses of this host using the specified port.
bool isLocalHost (const std::string &host)
 Return true if host names an address of the local host.
void getSystemId (std::string &osName, std::string &nodeName, std::string &release, std::string &version, std::string &machine)
 Retrieve system identifiers and versions.
uint32_t getProcessId ()
 Get the process ID of the current process.
uint32_t getParentProcessId ()
 Get the process ID of the parent of the current process.
std::string getProcessName ()
 Get the name of the current process (i.e.

Detailed Description

Retrieve information about the system we are running on.

Results may be dependent on OS/hardware.


Function Documentation

long qpid::sys::SystemInfo::concurrency ( )

Estimate available concurrency, e.g.

number of CPU cores. -1 means estimate not available on this platform.

bool qpid::sys::SystemInfo::getLocalHostname ( Address &  address)

Get the local host name and set it in the specified.

Returns false if it can't be obtained and sets errno to any error value.

void qpid::sys::SystemInfo::getLocalIpAddresses ( uint16_t  port,
std::vector< Address > &  addrList 
)

Get the (possibly multiple) local IP addresses of this host using the specified port.

uint32_t qpid::sys::SystemInfo::getParentProcessId ( )

Get the process ID of the parent of the current process.

uint32_t qpid::sys::SystemInfo::getProcessId ( )

Get the process ID of the current process.

std::string qpid::sys::SystemInfo::getProcessName ( )

Get the name of the current process (i.e.

the name of the executable)

void qpid::sys::SystemInfo::getSystemId ( std::string &  osName,
std::string &  nodeName,
std::string &  release,
std::string &  version,
std::string &  machine 
)

Retrieve system identifiers and versions.

This is information that can generally be retrieved via POSIX uname().

Parameters:
osNameReceives the OS name; e.g., GNU/Linux or Windows
nodeNameReceives the nodename. This may or may not match the set hostname from getLocalHostname().
releaseReceives the OS release identifier.
versionReceives the OS release version (kernel, build, sp, etc.)
machineReceives the hardware type.
bool qpid::sys::SystemInfo::isLocalHost ( const std::string &  host)

Return true if host names an address of the local host.

Parameters:
hosthost name or IP address.

Qpid C++ API Reference
Generated on Tue Sep 25 2012 for Qpid C++ Client API by doxygen 1.8.1.1