The T_GROUP
class represents application attributes pertaining to a particular server group. These attribute values represent group identification, location, and DTP information.
TA_SRVGRP
: string[1...30]
T_GROUP
class and TA_LMID
values in the T_MACHINE
class. Server group names cannot contain an asterisk (*), comma, or colon.
TA_GRPNO
: 1 <= num < 30,000
TA_LMID
: LMID1[,LMID2]
MIGRATE
option is specified in the T_DOMAIN
:TA_OPTIONS
attribute). A single LMID specified on a GET operation will match either the primary or secondary LMID. Note that the location of an active group is available in the TA_CURLMID
attribute. Logical machine identifiers specified with the TA_LMID
attribute must be already configured. Limitation: Modifications to this attribute for an active object may only change the backup LMID designation for the group.
TA_STATE
:
GET: {ACTive|INActive|MIGrating}
GET
operation will retrieve configuration and run-time information for the selected T_GROUP
object(s). The following states indicate the meaning of a TA_STATE
returned in response to a GET
request. States not listed will not be returned.
SET: {NEW|INValid|ACTive|ReACtivate|INActive|MIGrating}
SET
operation will update configuration and run-time information for the selected T_GROUP
object. The following states indicate the meaning of a TA_STATE
set in a SET
request. States not listed may not be set.
TA_CURLMID
: LMID
TA_ENVFILE
: string[0...78]
string
is placed in the environment.
When booted, local servers inherit the environment of tmboot
(1) and remote servers (not on the MASTER
) inherit the environment of tlisten
(1). TUXCONFIG
, TUXDIR
, and APPDIR
are also put in the environment when a server is booted based on the information in the associated T_GROUP
object.
PATH
is set in the environment to
APPDIR:TUXDIR/bin:/bin:/usr/bin:<path
>
where <path
> is the value of the first PATH
= line in the machine environment file, if one exists (subsequent PATH
= lines is ignored). This PATH
is used as a search path for servers that are specified with a simple or relative pathname (that is, one that doesn't begin with slash).
LD_LIBRARY_PATH
is set in the environment to
APPDIR:TUXDIR/lib:/lib:/usr/lib:<lib
>
where <lib
> is the value of the first LD_LIBRARY_PATH
= line appearing in the machine environment file, if one exists (subsequent LD_LIBRARY_PATH
= lines are ignored).
As part of server initialization (before tpsvrinit
(3c) is called), a server reads and exports variables from both the machine and server ENVFILE
files. If a variable is set in both the machine and server ENVFILE
, the value in the server ENVFILE
will override the value in the machine ENVFILE
with the exception of PATH
which is appended. A client processes only the machine ENVFILE
file. When the machine and server ENVFILE
files are processed, lines that are not of the form <ident
>= is ignored, where <ident
> contains only underscore or alphanumeric characters.
If a PATH
= line is encountered, PATH
is set to
APPDIR:TUXDIR/bin:/bin:/usr/bin:
<path
>
where <path
> is the value of the first PATH
= line appearing in the environment file (subsequent PATH
= lines are ignored). If PATH
appears in both the machine and server files, then <path
> is defined as <path1
>:<path2
> where <path1
> is from the machine ENVFILE
and <path2
> is from the server ENVFILE
. If a LD_LIBRARY_PATH
= line is encountered, LD_LIBRARY_PATH
is set to
APPDIR:TUXDIR/lib:/lib:/usr/lib:<
lib
>
where <lib
> is the value of the first LD_LIBRARY_PATH
= line appearing in the environment file (subsequent LD_LIBRARY_PATH
= lines are ignored). Attempts to reset TUXDIR
, APPDIR
, or TUXCONFIG
are ignored and a warning is displayed if the value does not match the corresponding T_GROUP
attribute value. Limitation: Modifications to this attribute for an active object DO not affect running servers or clients.
TA_CLOSEINFO
: string[0...256]
TMS
" is specified for the TA_TMSNAME
attribute, then this attribute value indicates the resource manager-dependent information needed when terminating access to the resource manager. Otherwise, this attribute value is ignored.
A 0-length string value for this attribute means that the resource manager for this group (if specified) does not require any application specific information to close
access to the resource.
Limitation: Run-time modifications to this attribute will not affect active servers in the group.
TA_OPENINFO
: string[0...256]
TMS
" is specified for the TA_TMSNAME
attribute, then this attribute value indicates the resource manager dependent information needed when initiating access to the resource manager. Otherwise, this attribute value is ignored.
The format for this attribute value is dependent on the requirements of the vendor providing the underlying resource manager. The information required by the vendor must be prefixed with \Q\Qrm_name:'', which is the published name of the vendor's transaction (XA) interface followed immediately by a colon (:).
A 0-length string value for this attribute means that the resource manager for this group (if specified) does not require any application specific information to open
access to the resource.
Limitation: Run-time modifications to this attribute will not affect active servers in the group.
TA_TMSCOUNT
: 0 or 2 <= num < 11
TA_TMSNAME
attribute, then this attribute value indicates the number of transaction manager servers to start for the associated group. Otherwise, this attribute value is ignored.
TA_TMSNAME
: string[0...78]
a.out
associated with this group. This parameter must be specified for any group entry whose servers will participate in distributed transactions (transactions across multiple resource managers and possibly machines that are started with tpbegin
(3), and ended with tpcommit
(3)/tpabort
(3)).
The value "TMS"
is reserved to indicate use of the null XA interface. If a non-empty value other than "TMS"
is specified, then a TLOGDEVICE
must be specified for the machine(s) associated with the primary and secondary logical machines for this object.
A unique server identifier is selected automatically for each TM server, and the servers will be restartable an unlimited number of times.
None.