The Sequence Toolkit
www.sequence-toolkit.com |
Go to the source code of this file.
Macros | |
#define | STK_SERVICE_GROUP_INIT 1 |
#define | STK_SERVICE_GROUP_RUNNING 2 |
#define | STK_SERVICE_IN_GROUP_EXPECTED 1 |
#define | STK_SERVICE_IN_GROUP_JOINED 2 |
#define | STK_SERVICE_IN_GROUP_ERROR 0xff |
Typedefs | |
typedef struct stk_service_group_stct | stk_service_group_t |
typedef stk_uint64 | stk_service_group_id |
typedef stk_uint16 | stk_service_group_state |
typedef stk_uint16 | stk_service_in_group_state |
typedef stk_ret(* | stk_service_in_group_cb )(stk_service_group_t *svc_group, stk_service_t *svc, void *clientd) |
typedef void(* | stk_service_added_cb )(stk_service_group_t *svc_group, stk_service_t *svc, stk_service_in_group_state state) |
typedef void(* | stk_service_removed_cb )(stk_service_group_t *svc_group, stk_service_t *svc, stk_service_in_group_state state) |
typedef void(* | stk_service_smartbeat_cb )(stk_service_group_t *svc_group, stk_service_t *svc, stk_smartbeat_t *smartbeat) |
The stk_service_group_api.h file provides the typedefs and definitions required to interface with the Server Group APIs
#define STK_SERVICE_GROUP_INIT 1 |
Service Group is Initialising
#define STK_SERVICE_GROUP_RUNNING 2 |
Service Group is Running
#define STK_SERVICE_IN_GROUP_ERROR 0xff |
Service in the group is in an error state
#define STK_SERVICE_IN_GROUP_EXPECTED 1 |
Service is expected in the group, but not joined
#define STK_SERVICE_IN_GROUP_JOINED 2 |
Service has joined the group
typedef void(* stk_service_added_cb)(stk_service_group_t *svc_group, stk_service_t *svc, stk_service_in_group_state state) |
The signature to be used for callback functions being registered to hear of services being added to a group.
A 64 bit unsigned value which represents the Service Group ID. Applications may define their own group IDs
A 16 bit unsigned value which represents the state of a service group. Applications may define their own states, but several are mandatory.
A handle used to access a Sequence Service Group
typedef stk_ret(* stk_service_in_group_cb)(stk_service_group_t *svc_group, stk_service_t *svc, void *clientd) |
The callback signature to be used for functions being passed to stk_iterate_service_group()
A 16 bit unsigned value which represents the state of a service within a group. Applications may define their own states, but several are mandatory.
typedef void(* stk_service_removed_cb)(stk_service_group_t *svc_group, stk_service_t *svc, stk_service_in_group_state state) |
The signature to be used for callback functions being registered to hear of services being removed from a group.
typedef void(* stk_service_smartbeat_cb)(stk_service_group_t *svc_group, stk_service_t *svc, stk_smartbeat_t *smartbeat) |
The signature to be used for callback functions being registered to hear of smartbeats from services.