Files | |
| file | clCachedCkpt.h | 
| Header file of the Cached Checkpoint which provides a fast lookup for a P2P generated database.  | |
Classes | |
| struct | ClCachedCkptClientSvcInfoT | 
| Client side data structure.  More... | |
| struct | ClCachedCkptDataT | 
| The type of the CachedCkpt section data.  More... | |
| struct | ClCachedCkptSvcInfoT | 
| Cached Checkpoint global data structure.  More... | |
Functions | |
| ClRcT | clCachedCkptFinalize (ClCachedCkptSvcInfoT *serviceInfo) | 
| Finalizes the Cached Checkpoint service.   | |
| ClRcT | clCachedCkptInitialize (ClCachedCkptSvcInfoT *serviceInfo, const SaNameT *ckptName, const SaCkptCheckpointCreationAttributesT *ckptAttributes, SaCkptCheckpointOpenFlagsT openFlags, ClUint32T cachSize) | 
| Initializes the Cached Checkpoint service.   | |
| ClRcT | clCachedCkptSectionCreate (ClCachedCkptSvcInfoT *serviceInfo, const ClCachedCkptDataT *sectionData) | 
| Creates a section in the checkpoint.   | |
| ClRcT | clCachedCkptSectionDelete (ClCachedCkptSvcInfoT *serviceInfo, const ClNameT *sectionName) | 
| Deletes a section in the checkpoint.   | |
| void | clCachedCkptSectionGetFirst (ClCachedCkptSvcInfoT *serviceInfo, ClCachedCkptDataT **sectionData, ClUint32T *sectionOffset) | 
| Gets the first section of the checkpoint.   | |
| void | clCachedCkptSectionGetNext (ClCachedCkptSvcInfoT *serviceInfo, ClCachedCkptDataT **sectionData, ClUint32T *sectionOffset) | 
| Gets next section of the checkpoint.   | |
| void | clCachedCkptSectionRead (ClCachedCkptSvcInfoT *serviceInfo, const ClNameT *sectionName, ClCachedCkptDataT **sectionData) | 
| Reads a single section.   | |
| ClRcT | clCachedCkptSectionUpdate (ClCachedCkptSvcInfoT *serviceInfo, const ClCachedCkptDataT *sectionData) | 
| Updates a checkpoint section.   | |
| ClRcT | clCachedCkptSynch (ClCachedCkptSvcInfoT *serviceInfo, ClBoolT isEmpty) | 
| Synchronizes the cache (local copy) with the checkpoint.   | |
| ClRcT clCachedCkptFinalize | ( | ClCachedCkptSvcInfoT * | serviceInfo | ) | 
Finalizes the Cached Checkpoint service.
| serviceInfo | (in) A pointer to the global data structure used by CachedCkpt service. Refer to ClCachedCkptSvcInfoT structure. | 
| CL_OK | The API executed successfully. | 
| CL_ERR_NOT_INITIALIZED | If the checkpoint server is not completely initialized. | 
| ClRcT clCachedCkptInitialize | ( | ClCachedCkptSvcInfoT * | serviceInfo, | 
| const SaNameT * | ckptName, | ||
| const SaCkptCheckpointCreationAttributesT * | ckptAttributes, | ||
| SaCkptCheckpointOpenFlagsT | openFlags, | ||
| ClUint32T | cachSize | ||
| ) | 
Initializes the Cached Checkpoint service.
| serviceInfo | (in) A pointer to the global data structure used by CachedCkpt service. Refer to ClCachedCkptSvcInfoT structure. | 
| ckptName | (in) Name of the checkpoint to be opened. | 
| ckptAttributes | (in) A pointer to the create attributes of the checkpoint. | 
| openFlags | (in) Flags to indicate the desired mode to open. It can have the following values: 
  | 
| CL_OK | The API executed successfully. | 
| CL_ERR_NULL_POINTER | When the parameters passed are NULL pointers. | 
| CL_ERR_NOT_INITIALIZED | If the checkpoint server is not completely initialized. | 
| CL_ERR_ALREADY_EXIST | If the checkpoint is already existing. | 
| CL_ERR_NO_MEMORY | If there is not enough memory. | 
| ClRcT clCachedCkptSectionCreate | ( | ClCachedCkptSvcInfoT * | serviceInfo, | 
| const ClCachedCkptDataT * | sectionData | ||
| ) | 
Creates a section in the checkpoint.
| serviceInfo | (in) A pointer to the global data structure used by CachedCkpt service. Refer to ClCachedCkptSvcInfoT structure. | 
| sectionData | (in) A pointer to the section data to be stored. Refer to ClCachedCkptDataT structure. | 
| CL_OK | The API executed successfully. | 
| CL_ERR_NOT_INITIALIZED | If the checkpoint server is not completely initialized. | 
| CL_ERR_ALREADY_EXIST | If the checkpoint section is already existing. | 
| CL_ERR_NO_MEMORY | On memory allocation failure. | 
| ClRcT clCachedCkptSectionDelete | ( | ClCachedCkptSvcInfoT * | serviceInfo, | 
| const ClNameT * | sectionName | ||
| ) | 
Deletes a section in the checkpoint.
| serviceInfo | (in) A pointer to the global data structure used by CachedCkpt service. Refer to ClCachedCkptSvcInfoT structure. | 
| sectionName | (in) Name of the section to be deleted. | 
| CL_OK | The API executed successfully. | 
| CL_ERR_NOT_INITIALIZED | If the checkpoint server is not completely initialized. | 
| CL_ERR_NO_MEMORY | On memory allocation failure. | 
| void clCachedCkptSectionGetFirst | ( | ClCachedCkptSvcInfoT * | serviceInfo, | 
| ClCachedCkptDataT ** | sectionData, | ||
| ClUint32T * | sectionOffset | ||
| ) | 
Gets the first section of the checkpoint.
| serviceInfo | (in) A pointer to the global data structure used by CachedCkpt service. Refer to ClCachedCkptSvcInfoT structure. | 
| sectionData | (out) Pointer to the section data to be read. Refer to ClCachedCkptDataT structure. | 
| sectionOffset | (out) Pointer to the offset of the next section | 
| void clCachedCkptSectionGetNext | ( | ClCachedCkptSvcInfoT * | serviceInfo, | 
| ClCachedCkptDataT ** | sectionData, | ||
| ClUint32T * | sectionOffset | ||
| ) | 
Gets next section of the checkpoint.
| serviceInfo | (in) A pointer to the global data structure used by CachedCkpt service. Refer to ClCachedCkptSvcInfoT structure. | 
| sectionData | (out) Pointer to the section data to be read. Refer to ClCachedCkptDataT structure. | 
| sectionOffset | (out) Pointer to the offset of the next section | 
| void clCachedCkptSectionRead | ( | ClCachedCkptSvcInfoT * | serviceInfo, | 
| const ClNameT * | sectionName, | ||
| ClCachedCkptDataT ** | sectionData | ||
| ) | 
Reads a single section.
| serviceInfo | (in) A pointer to the global data structure used by CachedCkpt service. Refer to ClCachedCkptSvcInfoT structure. | 
| sectionName | (in) Name of the section to be read. | 
| sectionData | (out) Pointer to the section data to be read. Refer to ClCachedCkptDataT structure. | 
| ClRcT clCachedCkptSectionUpdate | ( | ClCachedCkptSvcInfoT * | serviceInfo, | 
| const ClCachedCkptDataT * | sectionData | ||
| ) | 
Updates a checkpoint section.
| serviceInfo | (in) A pointer to the global data structure used by CachedCkpt service. Refer to ClCachedCkptSvcInfoT structure. | 
| sectionData | (in) A pointer to the section data to be updated. Refer to ClCachedCkptDataT structure. | 
| CL_OK | The API executed successfully. | 
| CL_ERR_NOT_INITIALIZED | If the checkpoint server is not completely initialized. | 
| CL_ERR_NO_MEMORY | On memory allocation failure. | 
| ClRcT clCachedCkptSynch | ( | ClCachedCkptSvcInfoT * | serviceInfo, | 
| ClBoolT | isEmpty | ||
| ) | 
Synchronizes the cache (local copy) with the checkpoint.
| serviceInfo | (in) A pointer to the global data structure used by CachedCkpt service. Refer to ClCachedCkptSvcInfoT structure. | 
| CL_OK | The API executed successfully. |