UM C API
6.16.1
|
Ultra Messaging (UM) Store Repository Profiling (SRP) API. The "umeprofile.h" header file defines the APIs to extract information from a Persistent Store's cache and state files. The binary code is contained in the "umestore" library (static only on Unix: "libumestorelib.a", dynamic only on Windows: "umestore.dll"). See Store Repository Profiling (SRP) for general information on the SRP API. See Persistence for general information on the Persistent Store. See UM C API for general information on the C API. See Fundamental Concepts for an introduction to Ultra Messaging. More...
Go to the source code of this file.
Data Structures | |
struct | lbm_srp_repo_msg_t_stct |
Information about a message in the repository, retrieved by lbm_srp_get_repo_message(). More... | |
struct | lbm_srp_repo_rcvr_t_stct |
Receiver state information, retrieved by lbm_srp_get_repo_state() via lbm_srp_repo_t::rcvs. More... | |
struct | lbm_srp_repo_t_stct |
Overall information about a store, retrieved by lbm_srp_get_repo_state() More... | |
Typedefs | |
typedef struct lbm_srp_repo_msg_t_stct | lbm_srp_repo_msg_t |
Information about a message in the repository, retrieved by lbm_srp_get_repo_message(). | |
typedef struct lbm_srp_repo_rcvr_t_stct | lbm_srp_repo_rcvr_t |
Receiver state information, retrieved by lbm_srp_get_repo_state() via lbm_srp_repo_t::rcvs. | |
typedef struct lbm_srp_repo_t_stct | lbm_srp_repo_t |
Overall information about a store, retrieved by lbm_srp_get_repo_state() | |
typedef struct lbm_srp_t | lbm_srp_t |
SRP object (opaque) for UM. | |
Enumerations | |
enum | lbm_srp_error_t |
Possible error values returned by lbm_srp_create(). More... | |
enum | lbm_srp_repo_status_t |
Repository status retrieved from lbm_srp_get_repo_state() via lbm_srp_repo_t_stct::repo_status. More... | |
Functions | |
UMEStoreExpDLL int | lbm_srp_create (const char *state_pathname, const char *cache_pathname, const int check_checksum, const lbm_srp_t **srp_handle) |
Create and fill a store repository profile object. More... | |
UMEStoreExpDLL int | lbm_srp_delete (const lbm_srp_t **srp_handle) |
Delete a store repository profile object. More... | |
UMEStoreExpDLL int | lbm_srp_get_repo_state (const lbm_srp_t **srp_handle, int repo_idx, lbm_srp_repo_t **srp_repo) |
Get store repository profile state object. More... | |
UMEStoreExpDLL int | lbm_srp_get_repo_message (lbm_srp_repo_t *srp_repo, int sqn, lbm_srp_repo_msg_t *repo_msg) |
Get store repository profile message. More... | |
UMEStoreExpDLL int | lbm_srp_free_repo_state (lbm_srp_repo_t *srp_repo) |
Free store repository profile state object. More... | |
Ultra Messaging (UM) Store Repository Profiling (SRP) API. The "umeprofile.h" header file defines the APIs to extract information from a Persistent Store's cache and state files. The binary code is contained in the "umestore" library (static only on Unix: "libumestorelib.a", dynamic only on Windows: "umestore.dll"). See Store Repository Profiling (SRP) for general information on the SRP API. See Persistence for general information on the Persistent Store. See UM C API for general information on the C API. See Fundamental Concepts for an introduction to Ultra Messaging.
enum lbm_srp_error_t |
Possible error values returned by lbm_srp_create().
Enumerator | |
---|---|
LBM_SRP_SCAN_STATE_DIR_ERROR |
scandir failed |
LBM_SRP_FINDFFIRSTFILE_ERROR |
FindFirstFile failed. |
LBM_SRP_FINDNEXTFILE_ERROR |
FindNextFile failed. |
Repository status retrieved from lbm_srp_get_repo_state() via lbm_srp_repo_t_stct::repo_status.
UMEStoreExpDLL int lbm_srp_create | ( | const char * | state_pathname, |
const char * | cache_pathname, | ||
const int | check_checksum, | ||
const lbm_srp_t ** | srp_handle | ||
) |
Create and fill a store repository profile object.
The store repository profile object is allocated and filled with the information extracted from files contained in state and cache file directories.
state_pathname | String containing the path to the state directory. |
cache_pathname | String containing the path to the cache directory. |
check_checksum | Flag to enable/disable cache checksum checking. |
srp_handle | Pointer to a store repository profile pointer. Will be filled in by this function to point to the newly created lbm_srp_t object. |
UMEStoreExpDLL int lbm_srp_delete | ( | const lbm_srp_t ** | srp_handle | ) |
Delete a store repository profile object.
Delete a store repository profile object that was created by a call to lbm_srp_create().
srp_handle | Pointer to a store repository profile pointer to an lbm_srp_t object to be deleted. |
UMEStoreExpDLL int lbm_srp_free_repo_state | ( | lbm_srp_repo_t * | srp_repo | ) |
Free store repository profile state object.
Free a store repository profile state object that was created by a call to lbm_srp_get_repo_state().
srp_repo | Pointer to a store repository profile object to delete. |
UMEStoreExpDLL int lbm_srp_get_repo_message | ( | lbm_srp_repo_t * | srp_repo, |
int | sqn, | ||
lbm_srp_repo_msg_t * | repo_msg | ||
) |
Get store repository profile message.
Get a store repository profile message using the store repository state profile object returned by a call to lbm_srp_get_repo_state().
srp_repo | Pointer to a store repository profile. |
sqn | Sequence number of the requested message. |
repo_msg | Pointer to a store repository profile message. The lbm_srp_repo_msg_t object will be filled in by this function. No message body will be provided if the message buffer pointer member (buff) of the lbm_srp_repo_msg_t object is NULL. |
UMEStoreExpDLL int lbm_srp_get_repo_state | ( | const lbm_srp_t ** | srp_handle, |
int | repo_idx, | ||
lbm_srp_repo_t ** | srp_repo | ||
) |
Get store repository profile state object.
Get a store repository profile state object that was created by a call to lbm_srp_create().
srp_handle | Pointer to a store repository profile object to delete. |
repo_idx | The index of the store repository. |
srp_repo | Pointer to a store repository profile state pointer. Will be filled in by this function to point to the newly created lbm_srp_repo_t object. |