The T_SVCGRP
class represents configuration and run-time attributes of services/groups within an application. These attribute values identify and characterize configured services/groups, and provide run-time tracking of statistics and resources associated with each object.
Both the T_SERVICE
class and the T_SVCGRP
class define activation time attribute settings for service names within the application. When a new service is activated (advertised), either due to initial activation of a server or due to a call to tpadvertise
(3c), the following hierarchy exists for determining the attribute values to be used at service startup time.
T_SVCGRP
object exists (matching service name and
server group), then the attributes defined in that object are used to initially
configure the advertised service.
The specification of configuration attributes for application services is completely optional, that is, services advertised by servers as they are activated will take on the established default service attribute values if configured values are not available (see above for description of how attribute values are identified at service activation time). Service names to be offered by a server are built in at runtime (see buildserver
(1)) and may be overridden by the command line options specified for a server object (see T_SERVER
:TA_CLOPT
and servopts
(5).
Once a T_SVCGRP
object is active, it is represented solely by the T_SVCGRP
class. A particular service name/group name combination may have more than one associated T_SVCGRP
class at runtime if there are multiple servers within the group offering the service.
1 2If nothing is specified for this attribute, it defaults to SET
operations on this class must specify sufficient key fields to uniquely identify the object being addressed. If the object is active, then it may be necessary to augment the TA_SERVICENAME
and TA_SRVGRP
key fields with either TA_RQADDR
or TA_SRVID
. Modifications to an active object will affect that object and the related configuration record but not other active objects that may have derived their run-time attributes from the same configuration record.
TA_SERVICENAME
.
Attribute Semantics
TA_SERVICENAME
: string[1...15]
TA_SRVGRP
: string[1...30]
T_SVCGRP
OVERVIEW
section.
TA_GRPNO
: 1 <= num < 30,000
TA_STATE
:
GET: {ACTive|INActive|SUSpended|PARtitioned}
GET
operation will retrieve configuration and run-time information for the selected T_SVCGRP 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|INActive|SUSpended}
SET
operation will update configuration and run-time information for the selected T_SVCGRP object. Note that run-time modifications to a service object may affect more than one active server. The following states indicate the meaning of a TA_STATE
set in a SET
request. States not listed may not be set.
TA_AUTOTRAN
: {Y|N
}
Y
") when a service request message is received for this service if the request is not already in transaction mode.
TA_LOAD
: 1 <= num < 32K
T_SVCGRP
object imposes the indicated load on the system. Service loads are used for load balancing purposes, that is, queues with higher enqueued workloads are less likely to be chosen for a new request.
TA_PRIO
: 1 <= num < 101
T_SVCGRP
object has the indicated dequeuing priority. If multiple service requests are waiting on a queue for servicing, the higher priority requests will be serviced first.
TA_SVCTIMEOUT
: 0 <= num
Limitation: This attribute value is not enforced on BEA TUXEDO System Release 4.2.2 sites or earlier.
TA_TRANTIME
: 0 <= num
T_SVCGRP
object. Transactions are started automatically when a request not in transaction mode is received and the T_SVCGRP
:TA_AUTOTRAN
attribute value for the service is "Y
".
TA_LMID
: LMID
TA_RQADDR
: string[1...30]
T_SERVER
:TA_RQADDR
for more information on this attribute.
TA_SRVID
: 1 <= num < 30,001
T_SERVER
:TA_SRVID
for more information on this attribute.
TA_SVCRNAM
: string[1...15]
SET
request, the server must be able to map the function name to a function using its symbol table to successfully advertise the service. In some situations (for example, direct calls to tpadvertise
(3c) by the server), the function name for an ACTive
service object will not be known and the string "?
" will be returned as the attribute value.
Limitation: This attribute may only be set along with a state change from INActive
to ACTive
.
TA_BUFTYPE
: string[1...256]
Limitation: This attribute is settable only via the corresponding T_SERVICE
class object.
TA_ROUTINGNAME
: string[0...15]
Limitation: This attribute is settable only via the corresponding T_SERVICE
class object.
TA_NCOMPLETED: 0 <=
num
ACTive
or SUSpended
object since it was activated (advertised).
Limitation: This attribute is returned only when the T_DOMAIN
:TA_LDBAL
attribute is set to "Y
".
TA_SVCTYPE
: {APP|CALLABLE|SYSTEM
}
APP
indicates an application defined service name. CALLABLE
indicates a system provided callable service. SYSTEM
indicates a system provided and system callable service. SYSTEM
services are not available to application clients and servers for direct access. Note that when used as a GET
key field, a delimited list ('|' delimiter) may be used to retrieve multiple types of service group entries on one request. By default, only APP
services are retrieved.
Number of requests currently enqueued to this service. This attribute is incremented at enqueue time and decremented when the server dequeues the request. Limitation: This attribute is returned only when the T_DOMAIN
:TA_MODEL
attribute is set to SHM
and the T_DOMAIN
:TA_LDBAL
attribute is set to "Y
".
TA_NQUEUED: 0 <=
num
< 32K
Limitation: This attribute is returned only when the T_DOMAIN
: TA_LDBAL
attribute is set to "Y".
None.