Hitachi

In-Memory Data Grid Hitachi Elastic Application Data Store


20.1.1 ead_init_client() (initializes the EADS client)

Organization of this subsection

(1) Description

This function performs initial setup of the EADS client according to the client properties.

The EADS client name is treated as a null character string.

In addition, it obtains a handle (pointer) to the cache manager that manages the cache.

Each time ead_init_client() is executed, a thread for monitoring the cluster is generated. This thread is terminated when ead_terminate_client() is executed.

(2) Format

#include <eads.h>
EAD_CACHE_MANAGER *ead_init_client
(
  const char     *filename,      /* In */
  int            *error_code     /* Out */
);

(3) Arguments

filename

Specifies the path of the client property file for the EADS client.

error_code

Specifies the pointer from which to retrieve the error code.

For details about error codes, see 20.2 Error codes in the client library (C).

(4) Return value

If ead_init_client() terminates normally, it returns a handle (pointer) to the cache manager for managing the cache.

If ead_init_client() terminates abnormally, it returns NULL.

(5) Notes