JULEA
Data Structures | Typedefs | Functions
Configuration

Data Structures

struct  JConfiguration
 

Typedefs

typedef struct JConfiguration JConfiguration
 

Functions

JConfigurationj_configuration (void)
 
JConfigurationj_configuration_new (void)
 
JConfigurationj_configuration_new_for_data (GKeyFile *key_file)
 
JConfigurationj_configuration_ref (JConfiguration *configuration)
 
void j_configuration_unref (JConfiguration *configuration)
 
gchar const * j_configuration_get_server (JConfiguration *, JBackendType, guint32)
 
guint32 j_configuration_get_server_count (JConfiguration *, JBackendType)
 
gchar const * j_configuration_get_backend (JConfiguration *, JBackendType)
 
gchar const * j_configuration_get_backend_path (JConfiguration *, JBackendType)
 
guint64 j_configuration_get_max_operation_size (JConfiguration *)
 
guint64 j_configuration_get_max_inject_size (JConfiguration *)
 
guint16 j_configuration_get_port (JConfiguration *)
 
guint32 j_configuration_get_max_connections (JConfiguration *)
 
guint64 j_configuration_get_stripe_size (JConfiguration *)
 
gchar const * j_configuration_get_checksum (JConfiguration *)
 

Detailed Description

Typedef Documentation

◆ JConfiguration

Function Documentation

◆ j_configuration()

JConfiguration * j_configuration ( void  )

Returns the configuration.

Returns
The configuration.

◆ j_configuration_get_backend()

gchar const * j_configuration_get_backend ( JConfiguration configuration,
JBackendType  backend 
)

◆ j_configuration_get_backend_path()

gchar const * j_configuration_get_backend_path ( JConfiguration configuration,
JBackendType  backend 
)

◆ j_configuration_get_checksum()

gchar const * j_configuration_get_checksum ( JConfiguration configuration)

◆ j_configuration_get_max_connections()

guint32 j_configuration_get_max_connections ( JConfiguration configuration)

◆ j_configuration_get_max_inject_size()

guint64 j_configuration_get_max_inject_size ( JConfiguration configuration)

◆ j_configuration_get_max_operation_size()

guint64 j_configuration_get_max_operation_size ( JConfiguration configuration)

◆ j_configuration_get_port()

guint16 j_configuration_get_port ( JConfiguration configuration)

◆ j_configuration_get_server()

gchar const * j_configuration_get_server ( JConfiguration configuration,
JBackendType  backend,
guint32  index 
)

◆ j_configuration_get_server_count()

guint32 j_configuration_get_server_count ( JConfiguration configuration,
JBackendType  backend 
)

◆ j_configuration_get_stripe_size()

guint64 j_configuration_get_stripe_size ( JConfiguration configuration)

◆ j_configuration_new()

JConfiguration * j_configuration_new ( void  )

Creates a new configuration.

Returns
A new configuration. Should be freed with j_configuration_unref().

◆ j_configuration_new_for_data()

JConfiguration * j_configuration_new_for_data ( GKeyFile *  key_file)

Creates a new configuration for the given configuration data.

Parameters
key_fileThe configuration data.
Returns
A new configuration. Should be freed with j_configuration_unref().
Todo:
check value ranges (max_operation_size, port, max_connections, stripe_size)

◆ j_configuration_ref()

JConfiguration * j_configuration_ref ( JConfiguration configuration)

Increases a configuration's reference count.

JConfiguration * j_configuration_ref(JConfiguration *configuration)
Definition: jconfiguration.c:374
Definition: jconfiguration.c:46
Parameters
configurationA configuration.
Returns
configuration.

◆ j_configuration_unref()

void j_configuration_unref ( JConfiguration configuration)

Decreases a configuration's reference count. When the reference count reaches zero, frees the memory allocated for the configuration.

Parameters
configurationA configuration.