SE_instance_get_statistics

Gets statistics on the specified ArcSDE instance

Usage syntax

LONG SE_instance_get_statistics (const CHAR *server,
const CHAR *instance, SE_INSTANCE_STATS **stats_list_addr, LONG *stats_count_addr);

Parameters
server The server name
instance The ArcSDE instance name
stats_list_addr Pointer to an array of SE_INSTANCE_STATS structures
stats_count_addr The number of SE_INSTANCE_STATS structures returned
Description

SE_instance_get_statistics returns an array of SE_INSTANCE_STATS structures, one for each user currently connected to the specified ArcSDE instance on the specified node. The default instance name is esri_sde. The application should free the list when it is done by calling SE_instance_free_statistics.

The following information is returned in the SE_INSTANCE_STATS structure for each user:

typedef struct {
LONG pid;
LONG rcount;     /* Total # of reads by process */
LONG wcount;     /* Total # of writes by process */
LONG numlocks;   /* Total # of locks held by this pid */
LONG fb_partial; /* Total # of partial features shipped by this process */
LONG fb_count;   /* Total # of buffers loaded by this process */
LONG fb_fcount;  /* Total # of features buffered by this process */
LONG fb_kbytes;  /* Total 1K bytes of buffered data by this process */
} SE_INSTANCE_STATS;

Returns

SE_SUCCESS
SE_FAILURE

SE_INSTANCE_NOT_AVAILABLE

SE_INSTANCE_TOO_EARLY

SE_INVALID_POINTER

SE_INVALID_SERVER

SE_IOMGR_NOT_AVAILABLE

SE_NET_FAILURE

SE_OUT_OF_CLMEM

SE_OUT_OF_SVMEM

SE_SERVICE_NOT_FOUND