Collage  1.0.1
Object-Oriented C++ Network Library
Static Public Member Functions | List of all members
co::Global Class Reference

Global parameter handling for the Collage library. More...

#include <global.h>

Static Public Member Functions

static CO_API void setDefaultPort (const uint16_t port)
 Set the default listening port. More...
 
static CO_API uint16_t getDefaultPort ()
 
static CO_API void setObjectBufferSize (const uint32_t size)
 Set the minimum buffer size for Object serialization. More...
 
static CO_API uint32_t getObjectBufferSize ()
 
static CO_API bool fromString (const std::string &data)
 
static CO_API void toString (std::string &data)
 
static CO_API
lunchbox::PluginRegistry & 
getPluginRegistry ()
 
static CO_API uint32_t getKeepaliveTimeout ()
 

Attributes

enum  IAttribute {
  IATTR_INSTANCE_CACHE_SIZE, IATTR_NODE_SEND_QUEUE_SIZE, IATTR_NODE_SEND_QUEUE_AGE, IATTR_RSP_ACK_TIMEOUT,
  IATTR_RSP_ERROR_DOWNSCALE, IATTR_RSP_ERROR_UPSCALE, IATTR_RSP_ERROR_MAXSCALE, IATTR_RSP_MIN_SENDRATE_SHIFT,
  IATTR_RSP_NUM_BUFFERS, IATTR_RSP_ACK_FREQUENCY, IATTR_UDP_MTU, IATTR_UDP_BUFFER_SIZE,
  IATTR_QUEUE_MIN_SIZE, IATTR_QUEUE_REFILL, IATTR_RDMA_RING_BUFFER_SIZE_MB, IATTR_RDMA_SEND_QUEUE_DEPTH,
  IATTR_RDMA_RESOLVE_TIMEOUT_MS, IATTR_ROBUSTNESS, IATTR_TIMEOUT_DEFAULT, IATTR_OBJECT_COMPRESSION,
  IATTR_ALL
}
 Global integer attributes. More...
 
static CO_API void setIAttribute (const IAttribute attr, const int32_t value)
 
static CO_API int32_t getIAttribute (const IAttribute attr)
 
static CO_API uint32_t getTimeout ()
 

Detailed Description

Global parameter handling for the Collage library.

Definition at line 30 of file global.h.

Member Enumeration Documentation

Global integer attributes.

Definition at line 81 of file global.h.

Member Function Documentation

static CO_API uint16_t co::Global::getDefaultPort ( )
static
Returns
the default listening port.
Version
1.0
static CO_API uint32_t co::Global::getObjectBufferSize ( )
static
Returns
the minimum buffer size for Object serialization.
Version
1.0
static CO_API lunchbox::PluginRegistry& co::Global::getPluginRegistry ( )
static
Returns
the plugin registry.
Version
1.0
static CO_API void co::Global::setDefaultPort ( const uint16_t  port)
static

Set the default listening port.

Version
1.0
static CO_API void co::Global::setObjectBufferSize ( const uint32_t  size)
static

Set the minimum buffer size for Object serialization.

The buffer size is used during serialization. When a DataOStream has buffered at least size bytes, the data is send to the slave nodes. The default is 60.000 bytes.

Parameters
sizethe treshold before the DataOStream sends a buffer.
Version
1.0

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