Download GLADE User's Guide

Transcript
50
GLADE User’s Guide
3.6.9 Partition Option connection hits
This option sets the number of times a partition tries to connect to the boot server before
raising a Communication Error exception.
Environment Variable
Command Line Option
Type
--connection hits
Natural
CONNECTION HITS
3.6.10 Partition Option reconnection
This option sets the reconnection policy (see Section 3.5.21 [Partition Attribute Reconnection], page 41 for details).
Environment Variable
Command Line Option
Type
RECONNECTION
--reconnection
Reconnection Type
3.6.11 Partition Option termination
This option sets the termination policy (see Section 3.5.20 [Partition Attribute Termination],
page 40 for details).
Environment Variable
Command Line Option
Type
TERMINATION
--termination
Termination Type
3.6.12 Partition Option trace
GLADE has a facility for trace/replay-based debugging. If trace mode is turned on, GLADE
will record into a trace file all messages received by a partition. The trace file can then be
used to replay the execution of the partition, in isolation.
To get a partition to generate a trace file, it has to be given the command line argument
--trace. This is most easily done by using a command line option (see Section 3.5.19
[Partition Attribute Command Line], page 40) in the configuration file to add --trace to the
command lines of the partitions whose executions are to be replayed. When the application
has been built, and started using the starter, as usual, the trace files will be generated. It is
also possible to build the distributed application with the None starter and then to include
the --trace argument on the command line.
As a default, the file name of the trace file is the name of the partition’s executable (i.e.
the string returned by the standard procedure Ada.Command Line.Command Name) with
a suffix .ptf. ptf stands for Partition Trace File. It contains all the incoming requests
delivered to the current partition. The file name can be changed with the --trace file
<othername> command line argument.
Note that when a remote partition is launched with rsh under Unix, GLADE invokes
the executable’s name of this partition with its absolute path included. Therefore, when
--trace is passed on the command line, the partition trace file includes the absolute path
as well. If a file name with a relative path is passed on the command line following the
--trace file argument, then the home user’s directory is concatenated to the --trace file
argument.
3.6.13 Partition Option replay
In order to replay a partition whose execution has been previously traced, the command
line argument --replay is required. In addition, the special boot server location "replay://"
has to be specified, i.e. by using the --boot location replay:// command line argument.