#if !defined(_CLUSTERCONFIG_H_) #define _CLUSTERCONFIG_H_ 1 #include "xce/types.h" typedef struct { int nhash_slots; int delta; } hash_zarray_config_t; typedef hash_zarray_config_t jobmgr_config_t; typedef hash_zarray_config_t workermgr_config_t; typedef hash_zarray_config_t qmgr_config_t; typedef struct { int nhash_slots; int delta; int inst_delta; } resmgr_config_t; typedef hash_zarray_config_t xstrings_config_t; typedef struct { char* name; char* host; int port; } master_candidate_t; typedef struct { char* clustername; int port; int ncandidates; master_candidate_t** candidates; int heartbeat_interval; int inactive_heartbeat_count; int fetch_job_interval; int netio_timeout; int vcpus; int nres; xce_resource_t** resources; int nqueues; xce_queue_t** queues; int nugroups; xce_group_config_t** ugroups; int nhgroups; xce_group_config_t** hgroups; int nhconfigs; xce_hostconfig_t** hconfigs; jobmgr_config_t* jobmgr; workermgr_config_t* workermgr; qmgr_config_t* qmgr; resmgr_config_t* resmgr; xstrings_config_t* xstrings; int nhproviders; scaler_config_t** hproviders; int nlimits; xce_limit_config_t** limits; } cluster_config_t; #endif