Deployment Anatomy
Deployments
A Deployment Definition is an XML file that describes the Components and connections that make up a Deployment. The Deployment definition is used by the GenerationOne FSDK to generate the necessary code and configuration files for the Deployment.
Show the example Deployment definition
<?xml version="1.0" encoding="UTF-8"?>
<ModelElement xmlns="http://www.brightascension.com/schemas/gen1/model"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Deployment name="test">
<Description>
A GenerationOne FSDK Deployment.
</Description>
<!-- Component type imports -->
<Import>
<!-- The component types used by this deployment -->
<Use type="Version" />
</Import>
<!-- Component deployment -->
<Deploy>
<!-- Component Groups -->
<!-- Component Instances -->
<Component name="Version" type="Version" />
</Deploy>
</Deployment>
</ModelElement>
This table provides an overview of the elements that make up a Deployment XML file. The Deployment XML file specifies the Component Types used by the Deployment, the component instances and their connections, and the Tasks associated with each component instance.
Element |
Description |
Example |
|
Specifies the Component Types used by the Deployment. Each Component Type is listed using a |
|
|
Contains the actual Deployment configuration, including component instances and their connections. |
|
|
Groups related component instances together for organizational purposes. component groups can be nested to create a hierarchy. |
|
|
Defines a specific instance of a Component Type. The name attribute specifies the unique name of the instance, and the type attribute indicates the Component Type being instantiated. |
|
|
Specifies the connections between component instances. Connections can be made using |
|
|
Defines a connection between two Components using a Service interface. The name attribute specifies the Service name, Component indicates the providing Component, and Service specifies the Service type. |
|
|
Defines a connection between two Components directly. The name attribute specifies the connection name, and Component indicates the connected Component. |
|
|
Specifies the Tasks associated with a component instance. Tasks can be periodic, sporadic, or interrupt-driven. |
|
|
Defines a Task that runs at a fixed interval. The name attribute specifies the Task name, period indicates the time between Task executions, and priority sets the Task's execution priority. |
|
|
Defines a Task that runs in response to an event or message. The name attribute specifies the Task name, and priority sets the Task's execution priority. |
|
|
Defines a Task that runs in response to a hardware interrupt. The name attribute specifies the Task name, and priority sets the Task's execution priority. |
|