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

Internal struct used by common adaptor code for all adaptors. More...

#include <afw_adaptor_impl.h>

Data Fields

const afw_adaptor_inf_twrapped_inf
 Wrapped inf.
 
const afw_adaptor_tadaptor
 Associated adaptor instance.
 
const afw_utf8_tadaptor_id
 Pointer to adaptor id.
 
const afw_utf8_tsource_location
 Source location associated with this adaptor.
 
const afw_object_tmetrics_object
 Metrics object.
 
const afw_lock_rw_tadaptor_lock_rw
 Read/write lock used for changing adaptor related structs.
 
const afw_utf8_tauthorization_handler_id
 Authorization handler id. More...
 
const afw_utf8_tjournal_adaptor_id
 Journal adaptor id (FIXME Going away) More...
 
const afw_model_location_tmodel_location
 Model location struct if this adaptor is a model location.
 
const afw_authorization_policy_location_tpolicy_location
 Model location struct if this adaptor is a model location.
 
apr_hash_t * supported_core_object_types
 See afw_adaptor_impl_core_object_type_t.
 
const afw_value_tauthorization
 Adaptor level authorization. More...
 
const afw_object_tcustom_variables
 Custom variables.
 
AFW_ATOMIC afw_integer_t retrieve_objects_count
 retrieve_objects() count.
 
AFW_ATOMIC afw_integer_t get_object_count
 get_object() count.
 
AFW_ATOMIC afw_integer_t add_object_count
 add_object() count.
 
AFW_ATOMIC afw_integer_t modify_object_count
 modify_object() count.
 
AFW_ATOMIC afw_integer_t replace_object_count
 replace_object() count.
 
AFW_ATOMIC afw_integer_t update_object_count
 update_object() count.
 
AFW_ATOMIC afw_integer_t delete_object_count
 delete_object() count.
 
apr_hash_t * object_types_ht
 If not NULL, object types that last for the life of the adaptor.
 
afw_boolean_t all_object_types_immutable
 Object types last for lifetime of adaptor. More...
 
afw_boolean_t object_types_fully_loaded
 Object types fully loaded. More...
 

Detailed Description

Internal struct used by common adaptor code for all adaptors.

Reads and updates to this struct MUST be done using read and write locks of adaptor->p of the appropriate adaptor. For instance, object_types is accessed by model_adaptor->impl->object_types, so the lock should be on model_adaptor->p.

Definition at line 99 of file afw_adaptor_impl.h.

Field Documentation

◆ all_object_types_immutable

afw_boolean_t all_object_types_immutable

Object types last for lifetime of adaptor.

The object_types member is fully loaded with object types.

Definition at line 207 of file afw_adaptor_impl.h.

◆ authorization

const afw_value_t* authorization

Adaptor level authorization.

Evaluated when an authorization decision is needed at the adaptor level.

Definition at line 157 of file afw_adaptor_impl.h.

◆ authorization_handler_id

const afw_utf8_t* authorization_handler_id

Authorization handler id.

This is the id of the authorization handler that controls access to this adaptor. If NULL, there is no access control.

Definition at line 125 of file afw_adaptor_impl.h.

◆ journal_adaptor_id

const afw_utf8_t* journal_adaptor_id

Journal adaptor id (FIXME Going away)

Adaptor that will be used to record journal entries for every modification to this store. This can be the this adaptor or any other adaptor that supports a journal. See supports_journal below. If NULL, no journaling is performed

Definition at line 135 of file afw_adaptor_impl.h.

◆ object_types_fully_loaded

afw_boolean_t object_types_fully_loaded

Object types fully loaded.

If true, object_types_ht holds all the object types for life of adaptor.

Definition at line 214 of file afw_adaptor_impl.h.


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