20.1 Functions provided by the C client library
The C client library provides an EADS API that consists of the functions shown in the table below. Source programs written in the C can use these functions by including the header file provided by EADS.
Note that the functions available in the C client library (except ead_terminate_client()) are thread-safe.
No. |
Function name |
Description |
Header file |
---|---|---|---|
1 |
Performs initial setup of the EADS client according to the client properties. |
eads.h |
|
2 |
Initializes the EADS client according to the EADS client name and client properties. |
||
3 |
Starts access to the cache and obtains a handle (pointer) for accessing the specified cache. |
||
4 |
Stops access to a specified cache. |
||
5 |
Acquires the cache name associated with the handle to a specified cache. |
||
6 |
Terminates the EADS client. |
||
7 |
Stores a value by associating it with a key. |
||
8 |
Concatenates multiple values and then stores the values by associating them with keys. |
||
9 |
Using a batch operation, this function stores multiple keys and values in cache. |
||
10 |
Stores a value with a key only when a new key is stored. |
||
11 |
Stores a value with the specified key only if the key is already stored (updates the value). |
||
12 |
Compares the value associated with a specified key to the value information specified in a comparison condition, and stores the value with the key only if the values match (replaces the value). |
||
13 |
Retrieves the value associated with a specified key. |
||
14 |
Using a batch operation, this function acquires the values associated with a specified list of keys. |
||
15 |
Using a batch operation, this function acquires the values associated with keys that belong to a specified group and its lower hierarchy groups. |
||
16 |
Deletes a specified key and the value associated with that key. |
||
17 |
Using a batch operation, this function deletes the values associated with a specified list of keys. |
||
18 |
Using a batch operation, this function deletes the keys and values that belong to a specified group, including the keys and values that belong to lower hierarchy groups. |
||
19 |
Using a batch operation, this function deletes keys and values that were copied from a specified EADS server. |
||
20 |
Acquires a list of the group names of the groups in the highest hierarchy that are stored on a specified EADS server. The group names are listed in ascending order based on their ASCII code values. |
||
21 |
Acquires a list of keys that belong to a specified group, including keys that belong to groups under the specified group's hierarchy. The keys are listed in ascending order based on their ASCII code values. |
||
22 |
Acquires a list of keys stored on a specified EADS server. The keys are listed in ascending order based on their ASCII code values. |
||
23 |
Acquires the number of groups in the highest hierarchy that are stored on a specified EADS server. |
||
24 |
Acquires the number of keys that belong to a specified group. The number of keys acquired includes the keys that belong to groups under the specified group's hierarchy. |
||
25 |
Acquires the number of keys that are stored on a specified EADS server. |
||
26 |
Acquires the first key in ascending order based on its ASCII code value from among all the keys that belong to a specified group. The keys that belong to groups under the specified group's hierarchy are also subject to this acquisition processing. |
||
27 |
Acquires the first key in ascending order based on its ASCII code value from among all the keys stored on a specified EADS server. |
||
28 |
Acquires the key that immediately follows a specified key in ascending order based on its ASCII code value from among all the keys that belong to a specified group. The keys that belong to the groups under the specified group's hierarchy are also subject to this acquisition processing. |
||
29 |
Acquires the key that immediately follows a specified key in ascending order based on its ASCII code value from among all the keys that are stored on a specified EADS server. |
||
30 |
Uses a specified key or group to determine the EADS server on which a user function is to be executed and then executes that user function. |
||
31 |
Uses a specified key or group to determine the EADS server on which a user function is to be executed and then executes that user function. This function also sets a reception timeout value. |
||
32 |
Executes a user function with an EADS server specified. |
||
33 |
Executes a user function with an EADS server specified and sets a reception timeout value. |
||
34 |
Acquires information about the connection-target EADS servers maintained by the EADS client. |
||
35 |
[Deprecated] Acquires information about the original source EADS server that stores a specified key or group. |
||
36 |
Acquires information about the original target EADS servers to which data stored on a specified EADS server is copied. |
||
37 |
Acquires information about the source EADS server that currently stores a specified key (or group). |
||
38 |
Acquires information about the original source EADS server that stores a specified key (or group). |
- Organization of this section
-
-
20.1.8 ead_put_array_value() (concatenates and stores multiple values)
-
20.1.9 ead_put_all() (stores keys and values by using a batch operation)
-
20.1.14 ead_get_all() (acquires values by using a batch operation)
-
20.1.15 ead_get_group() (acquires values by using a batch operation with group specification)
-
20.1.17 ead_remove_all() (deletes values by using a batch operation)
-
20.1.18 ead_remove_group() (deletes values by using a batch operation with group specification)
-
20.1.19 ead_remove_node() (deletes values by using a batch operation with EADS server specification)
-
20.1.20 ead_get_group_names() (acquires a list of group names in the highest hierarchy)
-
20.1.21 ead_get_group_keys() (acquires a list of keys with group specification)
-
20.1.22 ead_get_node_keys() (acquires a list of keys with EADS server specification)
-
20.1.23 ead_get_group_count() (acquires the number of groups in the highest hierarchy)
-
20.1.24 ead_get_group_key_count() (acquires the number of keys with group specification)
-
20.1.25 ead_get_node_key_count() (acquires the number of keys with EADS server specification)
-
20.1.26 ead_get_group_first_key() (acquires the first key with group specification)
-
20.1.27 ead_get_node_first_key() (acquires the first key with EADS server specification)
-
20.1.28 ead_get_group_next_key() (acquires the next key with group specification)
-
20.1.29 ead_get_node_next_key() (acquires the next key with EADS server specification)
-
20.1.32 ead_execute_node_function() (executes a user function with an EADS server specified)
-
20.1.34 ead_get_nodelist() (acquires information about the connection-target EADS servers)
-
20.1.37 ead_get_current_master_node() (acquires information about the current source EADS server)
-
20.1.38 ead_get_original_master_node() (acquires information about the original source EADS server)
-
20.1.43 ead_put_all_results structure (execution results of ead_put_all())
-
20.1.44 ead_get_all_results structure (execution results of ead_get_all())
-
20.1.45 ead_get_group_results structure (execution results of ead_get_group())
-
20.1.46 ead_remove_all_results structure (execution results of ead_remove_all())
-
20.1.48 ead_object structure (object used in a user function)
-
20.1.50 ead_node structure (object used in a user function with an EADS server specified)
-
20.1.51 ead_address structure (EADS server address information)