Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
afw_service_s Struct Reference

Runtime service struct. More...

#include <afw_service.h>

Data Fields

const afw_pool_tp
 Pool that holds service's resources.
 
afw_utf8_t service_id
 Service's name. More...
 
const afw_utf8_ttype
 The part before the dash ('-') in service_id. More...
 
const afw_service_type_tservice_type
 afw_service_type instance for this service_type_id.
 
const afw_utf8_tconf_id
 The part after the dash ('-') in the service id.
 
const afw_utf8_tconf_subtype
 This is the value of the subtype property from conf or NULL.
 
const afw_utf8_tsource_location
 The source location associated with this service.
 
const afw_object_tproperties
 The properties object containing runtime and conf properties.
 
const afw_utf8_tconf_source_location
 The source location associated with the conf for this service.
 
afw_service_status_t status
 The status of the service.
 
afw_dateTime_t start_time
 Start time.
 
const afw_utf8_tstatus_message
 Optional status message. More...
 
const afw_utf8_tstatus_debug
 Optional status debug. More...
 
afw_thread_mutex_tmutex
 Mutex used when changing status.
 
void * data
 
afw_boolean_t has_service_conf
 Has a service conf object.
 

Detailed Description

Runtime service struct.

There is one of these for each service that is registered.

Definition at line 46 of file afw_service.h.

Field Documentation

◆ data

void* data
Todo:
FIXME: Might go away.

Definition at line 110 of file afw_service.h.

◆ service_id

afw_utf8_t service_id

Service's name.

The service name is a type followed by a dash ('-') followed by an associated id. The type must be a registered configuration type that has isService=true. The id an appropriate id based on the type. For example, for type adaptor, the associated id is the adaptorId.

Definition at line 59 of file afw_service.h.

◆ status_debug

const afw_utf8_t* status_debug

Optional status debug.

This is a debug version of status_message.

Definition at line 104 of file afw_service.h.

◆ status_message

const afw_utf8_t* status_message

Optional status message.

In the case of status=error, this is the error message.

Definition at line 97 of file afw_service.h.

◆ type

const afw_utf8_t* type

The part before the dash ('-') in service_id.

This is also the conf_type.

Definition at line 66 of file afw_service.h.


The documentation for this struct was generated from the following file: