![]() |
![]() |
![]() |
![]() |
![]() |
Deployment Workflow
Drawing a Deployment Diagram
One or many SDL systems can be deployed in the same deployment diagram. However, it is necessary that all the deployed SDL systems reside in the same .sdt file.
Perform the following steps to draw a complete diagram:
- Start the Deployment Editor with a new diagram. See Starting the Deployment Editor for instructions.
- Name the diagram. As the diagram name is used for naming the target directory root, it is important to select a descriptive name.
- Identify the nodes on which your system(s) will execute. Draw the nodes in the deployment diagram.
- Name each node and edit stereotype and properties values in the Symbol Details dialog box, if desired.
- For each node, identify the executables. Each executable is symbolized by a component.
- Draw the components in the deployment diagram and draw aggregations from the node symbols to the components that should execute on them.
- Set name and edit the integration model for each component.
- Draw the threads that you wish to use and enter thread settings for each thread.
- Draw the objects that you wish to deploy. Collect name, qualifier and stereotype information from the Organizer view of your SDL systems and enter this information in each object.
- Connect each object to a component or thread, depending on the integration model chosen.
Let the Organizer window be visible when you edit the diagrams for easy access to SDL object information.
Example 320 shows a deployment scenario where components with different integration models are combined.
Example 320 : AccessControl Deployment
This example shows a Deployment Diagram for the AccessControl system. The complete system is deployed on two nodes, as shown in Figure 331. On each node there is a component. The component Prog1 has Threaded as integration model and uses threads. See Example 319 for a more detailed description of threaded concepts.
The node named Ethernet_Hub is contained in the diagram to show how the nodes are physically connected to its external environment in a network. As this node has external as stereotype, it is ignored when partitioning diagram data is generated. The associations between the nodes are also ignored.
The component Prog2 has Tight as integration model. The SDL objects are attached directly to the component. Note that the integration model is not visible in the diagram. It is set in the "Symbol Details" dialog box.
Draw several Deployment Diagrams to experiment with different deployment situations for your SDL systems. This can be useful when you experiment with different thread configurations.
Generating Partitioning Diagram Data for the Targeting Expert
The Targeting Expert uses the Partitioning Diagram Model (PDM) to structure an application that should be built. It uses the node and component concepts from the Deployment Diagram.
PDM files can be generated from Deployment Diagrams using the Organizer. In order to start the Targeting Expert with partitioning diagram data from a deployment diagram, perform the following tasks:
- Right-click the deployment diagram symbol (.sdp file) in the Organizer.
- Select Targeting Expert from the pop-up menu.
A partitioning diagram model is now generated. If there are errors or information messages, the Organizer Log is opened. If the generation passes, the Targeting Expert is started in interactive mode with the partitioning diagram.
The PDM file is saved in the same directory as the .sdp file and has the name as the .sdp file except for the extension, which is .pdm. As the PDM data is saved on file, it can be used by the Targeting Expert both in interactive mode and batch mode.
PDM in Targeting Expert Interactive Mode
To start the Targeting Expert in interactive mode with data from a deployment diagram, you must right-click the .sdp file symbol in the Organizer and select Targeting Expert. The Partitioning Diagram Model is not visible from the Organizer.
The Partitioning Diagram Model for the deployment diagram is shown in the upper-left corner in the Targeting Expert window. The application is seen on node and component level. For each component, you make build settings. Depending on the integration model selected in the deployment diagram, specific predefined integration settings are available.
For more information on the Targeting Expert batch mode, see Interactive Mode.
PDM in Targeting Expert Batch Mode
The Targeting Expert can use PDM files in batch mode by either setting the flag -pdm or by giving the command Open-PDM as a batch mode command. A PDM file from a Deployment Diagram must be generated using the Organizer. After that, the PDM file can be used in either interactive or batch mode.
For more information on the Targeting Expert batch mode, see Batch Mode.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |