In this tutorial, we will show you how to specify constraints which limites the number of components per node.
We will just manipulate Cube Abstract Components. All what is applied to these components can be projected to real technology-specific components (using Cube Extensions).
From the downloaded distribution of Cube, in the following directory:
demo/getting_started/components_per_node
In this tutorial, we will use only one Node (mynode). The Cube Agent controling this node is configured with two extensions: the core extension and the internal monitoring extension. The first one contains the core model types (components, nodes and scopes) and the core constraints and their resolvers, while the second one allows us to see, in graphical interface, the structure of the application's part (components).
have a look to the agent config file located here:
demo/getting_started/components_per_node/mynode/load/cube.agent