Overview
This chapter presents a list and brief description of the commands and functions used in the Tmax system.
1. Commands
The following are commands available in Tmax.
Command | Description |
---|---|
Compiles a Tmax text configuration file into a binary file. |
|
Improves performance when an event-driven communication method uses more fds than an existing communication method. |
|
Compiles a field key table. |
|
Creates a service table by referring to a binary Tmax configuration file. |
|
Creates a Tmax client module. |
|
Creates an access control list (ACL). |
|
Creates a user group. |
|
Manages a password file. |
|
Creates a Tmax server module. |
|
Centralizes the management of nodes in a distributed multi-node environment. |
|
Executes commands and transfers files across nodes in a multi-node, multi-domain configuration. |
|
Compiles a file that defines structures. |
|
Analyzes and prints log records related to a service execution while a Tmax system operates. |
|
Removes outdated libraries and unnecessary files from the run directory. |
|
Initializes TDL shared memory and dynamic modules. |
|
Retrieves a list of functions to be automatically exported to a specified library. |
|
Removes shared memory when TDL is no longer used. |
|
Retrieves the sequence number of a specific module or function. |
|
Retrieves the TDL shared memory information or enables/disables statistics monitoring or modules. |
|
Synchronizes backup files with TDL shared memory. |
|
Retrieves TDL configuration and statistics data. |
|
Updates a specified dynamic module. |
|
Encrypts the OPENINFO section in the configuration file. |
|
Manages Tmax systems. |
|
Redefines a signal alarm for a service or provides a service timeout for a service that cannot use a signal alarm. |
|
Retrieves the Tmax library version. |
|
Starts a Tmax system fully or partially. |
|
Simulates a client for testing a server program. |
|
Shuts down a Tmax system fully or partially. |
|
Converts a text-based service information file into a binary file. |
|
Enables runtime tracing for an application. |
|
Retrieves the Tmax configuration and performance data using the standard SNMP protocol. |
|
Retrieves detailed error information using the Tmax-defined number and type of an error. |
|
Converts a binary Tmax configuration file (tmconfig) into a text file. |
|
Converts a binary service information file into a text file. |
|
Creates a WSDL document, which defines web services. |
2. Functions
The following are functions available in Tmax.
2.1. Functions supported both in servers and clients
Function | Description |
---|---|
Returns the error code (errno) set when the Tmax system is called. |
|
Checks the connection status of a client by checking the execution status of tpstart(), socket status, and message transmission. |
|
Returns the number of data items stored in GQ. |
|
Retrieves data from GQ using a specified key. |
|
Retrieves a list of keys in GQ. |
|
Generates and retrieves system keys. |
|
Deletes data in GQ. |
|
Stores data in GQ using the key and value. |
|
Returns the current session ID. |
|
Returns the number of key lists from the keylist handle. |
|
Releases keylist handle from memory or other resources. |
|
Retrieves a key with a specified number (the n-th key) from the keylist handle. |
|
Generates a spri value that is unique in a domain. |
|
Returns the number of data items stored in SQ. |
|
Stores data in the session queue. |
|
Retrieves the key list in the current session SQ. |
|
Generates and retrieves system keys. |
|
Deletes data in SQ. |
|
Stores server data in the session queue. |
|
Retrieves the most recently executed service. It returns the name of a service that encounters an error or the last service that executes the routine. |
|
Reads information about a system accessed from a file and redefines the environment variables. |
|
Waits for incoming data in seconds. |
|
Waits for incoming data in microseconds. |
|
Rolls back a global transaction. |
|
Sends an asynchronous service request. |
|
Asynchronously sends a service request to a service included in a specific server group in a server group environment grouped by a COUSIN. |
|
Displays the connection status of a client by checking a socket status. |
|
Allocates a typed buffer. |
|
Sets a transaction time and begins a global transaction. |
|
Sends unsolicited messages to clients registered in the Tmax system. |
|
Sends/receives synchronous service requests. |
|
Calls a service belonging to a specific server group from servers and clients. |
|
Cancels a response. |
|
Commits a global transaction. |
|
Allows a program to establishes connection with an interactive service (svc). |
|
Loads data from RQ. |
|
Loads data from RQ while supporting transactions. |
|
Disconnects an interactive communication. |
|
Stores data in RQ. |
|
Stores data in RQ while supporting transactions. |
|
Retrieves detailed information about an error that occurs when a server or client calls the Tmax system. |
|
Provides detailed information about data read from RQ through tpdeq(). |
|
Displays service names stored in RQ. |
|
Releases memory allocated to typed buffers. |
|
Returns the block timeout value. |
|
Retrieves a list of currently active servers. |
|
Retrieves the IP address and port of a client connected to the Tmax system. |
|
Retrieves the IP address and port of a client connected to the Tmax system. This function is used in an IPv6 environment. |
|
Retrieves the number of a client connected to the Tmax system. |
|
Returns the current context. |
|
Returns the value of an environment variable registered as 'name'. |
|
Checks transaction mode. |
|
Retrieves a list of nodes connected in the Tmax system. |
|
Retrieves a connected peer’s socket address. |
|
Returns the RCAH process number (same as the tpgetsvrseqno API). |
|
Provides RCAH thread information. |
|
Receives a response to an asynchronous service request. |
|
Receives the socket address used internally in the Tmax system. |
|
Retrieves the index of a server process to which a relevant service belongs. It is used to call a service at the server process level. |
|
Returns information about a server group to which a service belongs and other server groups bound by COUSIN with that server group. |
|
Retrieves a list of server groups matching the specified node name, among those providing the specified service. |
|
Displays the priority of a service request. |
|
Calls services of servers in all server groups bound by COUSIN. |
|
API developed to support the extended features of a tpmcall(). Unlike existing functions, it waits until it receives replies from all services of a COUSIN server group. |
|
Sends unsolicited messages to clients specified by the server. |
|
Triggers a specific event and sends messages. |
|
Re-configures an environment variable value. |
|
Sends a request for statistics of data stored in RQ. |
|
Sends a request for statistics of a specific service in RQ. It retrieves statistics of data accumulated in RQ. |
|
Retrieves the number of data items stored in RQ. |
|
Receives messages in an interactive communication. |
|
Reissues a request in the RQ’s fail queue to the request queue. |
|
Establishes a connection with a remote node via TCP. |
|
Resets the commit mode. |
|
Sends messages in an interactive communication. |
|
Sets a block timeout. |
|
Registers the socket FD in the scheduler of the UCS process. |
|
Waits for incoming data. |
|
Calls a service for a specific server process with indexes obtained by tpgetsprlist(). |
|
Calls a service for a specific server process with the specified sequential number from starti obtained through tpgetsprlist(). This function is used in DYN type servers. |
|
Specifies the priority of a service request. |
|
Sets the current context. |
|
Displays the error message corresponding to the error number. |
|
Returns the queue name corresponding to the sub queue number. |
|
Subscribes to a specific event message. |
|
Retrieves the information about the type and subtype of a buffer. |
|
Unsubscribes from a specific event message. |
|
Returns an environment variable value. |
|
Applies an environment variable. |
|
Reads an environment variable from a file. |
|
Begins a global transaction. |
|
Commits a global transaction. |
|
Returns information about a global transaction. |
|
Rolls back a global transaction. |
|
Sets the behavior of commit_return. |
|
Sets the behavior of transaction_control with the control value. |
|
Sets the behavior of transaction_timeout with the timeout value. |
|
Stores the ulog of the memory buffer in a file. |
|
Stores the ulog in the memory buffer. |
|
Stores the ulog in a file directly. |
2.2. Server Functions
Function | Description |
---|---|
Validates licenses of AnyLink and OpenFrame. |
|
A callback function triggered by the slog when the SVRTYPE is set to EVT_SVR. |
|
Used for a user program containing main(). |
|
A callback function used in UCS processes to get notified of a client shutdown from tpsetcliwatcher. |
|
Displays the statistics information retrieved by tmadmin, the Tmax system administrative tool. |
|
Retrieves the password matching the username of the database to which Tmax is currently connected. |
|
Retrieves the tnsname of the database to which Tmax is currently connected. |
|
Retrieves the username of the database to which Tmax is currently connected. |
|
Retrieves the spri value that is unique in the domain where the process is running. |
|
Returns the number of services in the server. |
|
Returns the list of services in the server. |
|
Displays a server restart status after a server process failure. This function can be called from a Tmax AP Server routine. |
|
Checks whether the server is XA or NON-XA. |
|
Retrieves the OPENINFO setting information for the server group. |
|
Retrieves the system configuration information for the server process. |
|
Retrieves the current group ID (GID). Supports the SysMaster trace feature. |
|
Stores logging data in a structure buffer. |
|
Returns the number of data items to be logged. |
|
Allows a server to advertise the service that it offers. |
|
Removes the contents of a CTX_T structure in a server library. |
|
Checks whether the client is correctly connected to the server to receive unsolicited messages before sending data used by the UCS process. |
|
Cancels detecting shutdown events of clients registered with tpsetcliwatcher(). Used in UCS processes. |
|
Turns off the bit for a socket fd in an internal fdset used by UCS processes. |
|
Turns off the bit for a socket fd in an internal writable FDSET used by UCS processes. |
|
Forwards a service request to another service routine. |
|
Retrieves information about the client with the specified clid from the clients connected to the Tmax system. |
|
Saves a value of a CTX_T structure in a server library to a user variable. |
|
Retrieves RM session information. |
|
Retrieves the number of the client that initiates the first service in the Tmax system. |
|
Returns the maximum number of server processes that can run. |
|
Retrieves the maximum number of concurrent users of the node to which the server process belongs. |
|
Retrieves the minimum number of server processes to run. |
|
Retrieves the name and number of a specific node in a server. |
|
Returns the number of the server group currently connected to. |
|
Returns the server process ID. |
|
Returns the name of the node specified by the server. |
|
Retrieves the number of the node with the specified nodename in the server. |
|
Retrieves the CLH number to which the client is currently connected to. |
|
Returns the number of the node to which the client is currently connected to. |
|
Returns a connected peer’s IP address (node). |
|
Retrieves the service name from the service index. |
|
Returns the serial number of a server process from duplicate server processes. |
|
Checks if data is received in a socket fd in a UCS process. |
|
Tests a fdset used by a UCS-type process to check if there is any data to be sent to a socket fd specified by a parameter. |
|
A user callback routine to check the status of RM. This function is called before the client connects to the Tmax system. |
|
Registers a callback function to receive events generated by the admnoti command. |
|
Sets a routine to receive responses to asynchronous requests in UCS type processes from a server program. |
|
Forwards a service request to another service routine that contains the information of a client that requested that service. Used in UCS server process. |
|
Resumes a currently terminated global transaction. A terminated global transaction can be resumed using tpresumetx() or tpsuspendxt(). |
|
Terminates a server’s service. |
|
Internally manages client information. This function is used in a UCS process. |
|
Waits for incoming data in a UCS server process. |
|
Sends unsolicited messages to a specified client. |
|
Detects shutdown of a specified client. Used in UCS processes. |
|
Retrieves RM session information. |
|
Sets a service timeout in a server. |
|
Suspends a global transaction. |
|
Indicates a service timeout occurs. |
|
Calls the routine of a Tmax server process shutdown. |
|
Shuts down a server process. |
|
Initializes a Tmax server process. |
|
Terminates service threads before tpsvrdone is executed when server processes shut down in a multi-threaded, multi-context server configuration. |
|
Initializes threads after the tpsvrinit function is executed in a multi-threaded, multi-context server configuration. |
|
Waits for a server process shutdown event from TMM. |
|
Unadvertises a service provided by a server process. |
|
Unadvertises a callback function that receives events generated by the admnoti command. |
|
Resets a routine to receive responses to asynchronous requests in UCS server processes. |
|
Waits for incoming data in a UCS server process. |
|
Closes connections with resource managers. |
|
Establishes connections with relevant resource managers. |
2.3. Client Functions
Function | Description |
---|---|
Returns the specified urcode to the urcode service. |
|
Calls a function to check for and handle unsolicited messages. |
|
Disconnects the client from the Tmax system. |
|
Checks the client connection to the Tmax system or retrieves the IP address and port of the connected Tmax system. |
|
Handles unsolicited messages that are received without client requests. |
|
Establishes connection with the Tmax system. |
|
Disconnects a client. |
|
Sets a routine to handle unsolicited messages. |
|
Changes the flag setting for receiving unsolicited messages. |
|
Connects to the Tmax system. |
|
Disconnects from the Tmax system. |
|
Connects to a backup Tmax system. |
2.4. TCP/IP Gateway Functions
Function | Description |
---|---|
Checks a message received from a remote server during a ping test. |
|
Periodically called to reconfigure a ping message in a TCP/IP gateway. |
|
Configures a message to be sent when checking a ping to a local or remote server. |
2.5. TDL Functions
Function | Description |
---|---|
Calls the latest version of a dynamic module function. |
|
Calls the latest version of a dynamic module function. |
|
Calls the latest version of a dynamic module function. |
|
Calls the latest version of a dynamic module function. |
|
Calls the latest version of a dynamic module function. |
|
Calls the latest version of a dynamic module function. |
|
Resets the count of references for the module to 0, or directly releases the module from memory. |
|
Creates a class instance using a class factory in the latest version of a dynamic module. Available when the version is set to 4 (VERSION=4) in the TDL configuration file (tdl.cfg). |
|
Destroys a class instance using a class factory in the latest version of a dynamic module. Available when the version is set to 4 (VERSION=4) in the TDL configuration file (tdl.cfg). |
|
Initializes shared memory. |
|
Ends explicit version consistency maintenance. |
|
Converts an error from tdlcall() into a text string. |
|
Finds the index of a module. |
|
Finds the index of a module. |
|
Retrieves the global sequence number. |
|
Initializes shared memory. |
|
Performs the hashtable search and library loading before tdlcall() is executed, storing the module information in the local cache in advance. |
|
Performs the hashtable search and library loading before tdlcall() is executed, storing the module information in the local cache in advance. |
|
Resumes explicit version consistency maintenance. |
|
Starts explicit version consistency maintenance. |
|
Displays TDL statistical information. |
|
Displays TDL statistical information. |
|
Suspends explicit version consistency maintenance. |
2.6. Windows-Related Functions
Function | Description |
---|---|
Sends an asynchronous service request in a multi-threaded environment. |
|
Sends an asynchronous service request in a multi-threaded environment. |
|
Closes connection with the Tmax system. |
|
Sends data. |
|
Specifies the Windows handle and message type. |
|
Connects to the Tmax system in a multi-Windows environment. |
2.7. Other Functions
Function | Description |
---|---|
Closes a transaction log file. Used for transaction log analysis. |
|
Searches for an entry that matches the specified information in a transaction log file. |
|
Retrieves the node number where a transaction started, using a given XID. |
|
Opens a transaction log file. Used for transaction log analysis. |
|
Initializes the Tmax signal handler. |
|
Sets macros for user-defined signal handling. Not available in Windows environments. |
|
Sets an integrated error code when an error occurs while invoking a system call. |
|
Prints a system error message to stderr when an ATMI API call fails and tperrno is set to TPEOS. |
|
Returns the integrated error message corresponding to a system error code (errno). |
|
Provides a Tmax API for encryption and decryption. |