ComponentConfigurationDTO

enum gr_componentconfigurationdto::ComponentState

Values:

UNSATISFIED_REFERENCE

The component configuration is unsatisfied due to an unsatisfied reference.

SATISFIED

The component configuration is satisfied.

Any services declared by the component description are registered.

ACTIVE

The component configuration is active.

This is the normal operational state of a component configuration.

struct cppmicroservices::service::component::runtime::dto::ComponentConfigurationDTO
#include <cppmicroservices/servicecomponent/runtime/dto/ComponentConfigurationDTO.hpp>

A representation of an actual instance of a declared component description parameterized by component properties.

Public Members

ComponentDescriptionDTO description

The representation of the component configuration’s component description.

ComponentState state

The current state of the component configuration.

This is one of ComponentState::UNSATISFIED_REFERENCE, ComponentState::SATISFIED or ComponentState::ACTIVE.

unsigned long id

The id of the component configuration.

The id is a non-persistent, unique value assigned at runtime. The id is also available as the component.id component property. The value of this field is unspecified if the state of this component configuration is unsatisfied.

std::unordered_map<std::string, cppmicroservices::Any> properties

The component properties for the component configuration.

See
ComponentContext::GetProperties()

std::vector<SatisfiedReferenceDTO> satisfiedReferences

The satisfied references.

Each SatisfiedReferenceDTO in the vector represents a satisfied reference of the component configuration. The vector must be empty if the component configuration has no satisfied references.

std::vector<UnsatisfiedReferenceDTO> unsatisfiedReferences

The unsatisfied references.

Each UnsatisfiedReferenceDTO in the vector represents an unsatisfied reference of the component configuration. The vector must be empty if the component configuration has no unsatisfied references.