Download PolyORB User's Guide

Transcript
Chapter 8: Ada Distributed Systems Annex (DSA)
81
By default, partitions in a PolyORB/DSA application rely on an external, stand-alone
name server launched by the user, and whose location is retrieved from runtime configuration.
A pragma Name Server with parameter Embedded can be used to request the PCS to
instead set up a name server within the main partition. If the Ada starter is used, the
location of the name server is passed automatically to slave partitions.
8.5.4.10 Pragma Boot Location
When a partition starts executing, one of the first steps consists in a connection to the boot
server. This pragma provides one or more locations in order to get a connection with the
boot server.
PRAGMA ::=
PRAGMA_WITH_NAME_AND_DATA
| PRAGMA_WITH_LOCATION
| PRAGMA_WITH_LOCATION_LIST
PRAGMA_WITH_NAME_AND_DATA ::=
pragma Boot_Location
([Protocol_Name =>] STRING_LITERAL,
[Protocol_Data =>] STRING_LITERAL);
PRAGMA_WITH_LOCATION ::=
pragma Boot_Location ([Location =>] LOCATION);
PRAGMA_WITH_LOCATION_LIST ::=
pragma Boot_Location ([Locations =>] LOCATION_LIST);
This boot server location can be concatenated into a single string to be used as a command line option or an environment variable (see Section 8.5.5 [Partition Runtime Parameters], page 90).
Note: pragma Boot Server is now obsolete. It is recommended to use pragma
Boot Location. This wording is more consistent with the rest of the configuration
language (see Self Location hundefinedi [Partition Option self location], page hundefinedi
and Data Location hundefinedi [Partition Option data location], page hundefinedi).
8.5.4.11 Partition Attribute Self Location
Except for the boot partition on which the boot server is located, a partition is reachable
through a dynamically computed location (for instance, the partition looks for a free port
when the protocol is tcp). The user may want such a partition to be reachable from a given
location, especially if the user wants to make this partition a boot mirror. To do so, he can
force the partition location with self location feature.
REPRESENTATION_CLAUSE ::=
for PARTITION_IDENTIFIER’Self_Location use LOCATION;
| for PARTITION_IDENTIFIER’Self_Location use LOCATION_LIST;
If the attribute definition clause applies to the predefined type Partition, the locations
have to be incomplete. Otherwise, all the partitions would be reachable through the same
locations, which is definitively not recommended.