OpenTP1 Version 7 Tester and UAP Trace User's Guide
This section lists the offline tester simulation functions and provides notes on function simulations.
Table 14-1 lists the offline tester simulation functions for simulating OpenTP1 functions.
Table 14-1 List of offline tester simulation functions
Type | Function name [prog_name (request_code)] <DML> | Purpose | Traces | Return value | Function processing |
---|---|---|---|---|---|
Control of system operation (adm) | dc_adm_call_command [CBLDCADM(COMMAND)] |
Executes an operating command. | Y | Y | Returns data from the operating command result data file. |
dc_adm_complete [CBLDCADM(COMPLETE)] |
Notifies completion of user server startup. | Y | Y | -- | |
dc_adm_status [CBLDCADM(STATUS)] |
Notifies user server status. | Y | Y | Returns DCADM_STAT_START_NORMAL (return value) or zero (return code) at normal termination. | |
dc_adm_get_nd_status_begin | Starts status acquisition at the OpenTP1 node. | Y | Y | Gets the number of node IDs set in the function return values file. | |
dc_adm_get_nd_status_next | Gets OpenTP1 node status. | Y | Y | Gets the node ID set in the function return values file. Returns DCADM_STATUS_NORMAL (C return value) at normal termination. | |
dc_adm_get_nd_status_done | Ends status acquisition at the OpenTP1 node. | Y | Y | -- | |
dc_adm_get_nd_status | Gets OpenTP1 node status. | Y | Y | Returns DCADM_STATUS_NORMAL (return value) at normal termination. | |
dc_adm_get_node_id | Gets the local node ID from the system common definition. | Y | Y | Gets the node ID set in the function return values file. | |
dc_adm_get_sv_status_begin | Starts server status acquisition. | Y | Y | Gets the number of server names set in the function return values file. | |
dc_adm_get_sv_status_next | Gets server status at the OpenTP1 node. | Y | Y | Gets the server name set in the function return values file. Returns DCADM_STATUS_NORMAL (C return value) at normal termination. | |
dc_adm_get_sv_status_done | Ends server status acquisition. | Y | Y | -- | |
dc_adm_get_sv_status | Gets status of a specified server. | Y | Y | Returns DCADM_STATUS_NORMAL (return value) at normal termination. | |
dc_adm_get_nodeconf_begin | Starts node ID acquisition. | Y | Y | Returns the number of node IDs set in function return values file. | |
dc_adm_get_nodeconf_next | Gets multi-node area ID for the UAP that issued the function, or all node IDs of specified subareas. | Y | Y | Returns the node IDs set in the function return values file. | |
dc_adm_get_nodeconf_done | Ends node ID acquisition. | Y | Y | -- | |
DAM file service (dam) | dc_dam_close [CBLDCDAM(CLOS)] |
Closes a DAM file. | Y | Y | Closes a DAM file. |
dc_dam_create [CBLDCDMB(CRAT)] |
Allocates a physical file. | N | N | Creates a DAM file and returns the file descriptor. | |
dc_dam_end [CBLDCDAM(END)] |
Declares to stop using files not subject to recovery. | Y | Y | -- | |
dc_dam_get [CBLDCDMB(GET)] |
Reads a physical file block. | N | N | Reads a specified block from a DAM file to a specified buffer. | |
dc_dam_hold [CBLDCDAM(HOLD)] |
Logical shutdown of a DAM file | Y | Y | Sets shutdown status in the DAM file header and shuts down the DAM file. | |
dc_dam_iclose [CBLDCDMB(CLOS)] |
Closes a physical file. | N | N | Closes a DAM file. | |
dc_dam_iopen [CBLDCDMB(OPEN)] |
Opens a physical file. | N | N | Opens a DAM file and returns the file descriptor. | |
dc_dam_open [CBLDCDAM(OPEN)] |
Opens a DAM file. | Y | Y | Opens a DAM file and returns the file descriptor. Locks the file if lock is specified for the file. | |
dc_dam_put [CBLDCDMB(PUT)] |
Writes a physical file block. | N | N | Writes buffer contents to a specified DAM file block. | |
dc_dam_read [CBLDCDAM(READ)] |
Reads a DAM file block. | Y | Y | Reads a specified DAM file block to a specified buffer. Locks the file if lock is specified for the block. | |
dc_dam_start [CBLDCDAM(STRT)] |
Declares to start using files not subject to recovery. | Y | Y | -- | |
dc_dam_status [CBLDCDAM(STAT)] |
Shows DAM file state. | Y | Y | Returns the DAM file state. | |
dc_dam_release [CBLDCDAM(RLSE)] |
Releases DAM file shutdown status. | Y | Y | Resets the shutdown status in the DAM file header and cancels the shutdown of the DAM file. | |
dc_dam_rewrite [CBLDCDAM(REWT)] |
Updates a DAM file block. | Y | Y | Writes the contents of a specified buffer to a specified DAM file block. | |
dc_dam_write [CBLDCDAM(WRIT)] |
Outputs a DAM file. | Y | Y | Writes the contents of a specified buffer to a specified DAM file block. | |
Shared table service (ist) | dc_ist_close [CBLDCIST(CLOS)] |
Closes IST table. | Y | Y | Closes the IST table. |
dc_ist_open [CBLDCIST(OPEN)] |
Opens IST table. | Y | Y | Opens the IST table and returns its descriptor. | |
dc_ist_read [CBLDCIST(READ)] |
Reads records from IST table. | Y | Y | Reads specified records from the IST table to specified buffer. | |
dc_ist_write [CBLDCIST(WRIT)] |
Writes records to IST table. | Y | Y | Writes specified records to the IST table. | |
User journal collection (jnl) | dc_jnl_ujput [CBLDCJNL(UJPUT)] |
Collects UAP log information. | Y | Y | -- |
Lock of resources (lck) | dc_lck_get [CBLDCLCK(GET)] |
Requests locking of resources. | Y | Y | -- |
dc_lck_release_all [CBLDCLCK(RELALL)] |
Requests unlocking of all resources. | Y | Y | -- | |
dc_lck_release_byname [CBLDCLCK(RELNAME)] |
Requests unlocking of a specified resource. | Y | Y | -- | |
Message log control (log) | dc_logprint [CBLDCLOG(PRINT)] |
Requests logged message output. | Y | Y | -- |
Message control function (mcf) | dc_mcf_execap [CBLDCMCF(EXECAP)] <SEND> |
Starts an application. | Y | Y | -- |
dc_mcf_mainloop [CBLDCMCF(MAINLOOP)] |
Starts the MCF service. | Y | Y | Notifies the offline tester that MCF service has started. At a service request to the MHP, executes the service function and waits for the next service request. Returns when a UAP termination request is received (at offline tester termination, for example). | |
dc_mcf_receive [CBLDCMCF(RECEIVE) ]<RECEIVE> |
Message receive | Y | Y | Inputs a segment from the MCF receive message file and stores the segment in the message receive area. Counts up the transaction sequence number. | |
dc_mcf_reply [CBLDCMCF(REPLY)] <SEND> |
Response message send | Y | Y | -- | |
dc_mcf_rollback [CBLDCMCF(ROLLBACK)] <ROLLBACK> |
Partial recovery | Y | Y | Counts up the transaction sequence number if the next processing is specified to run as a different transaction. | |
dc_mcf_send [CBLDCMCF(SEND)] <SEND> |
Message send | Y | Y | -- | |
dc_mcf_open [CBLDCMCF(OPEN)] |
Prepares and initializes for using the MCF service. | Y | Y | -- | |
dc_mcf_close [CBLDCMCF(CLOSE)] |
Deletes the environment for using the MCF service. | Y | N | -- | |
dc_mcf_sendrecv [CBLDCMCF(SENDRECV)] <SEND> |
Synchronous message send/receive | Y | Y | Outputs trace information of the last segment, then inputs a segment from the MCF receive message file and stores the segment in the message receive area. | |
dc_mcf_recvsync [CBLDCMCF(RECVSYNC)] <RECEIVE> |
Synchronous message receive | Y | Y | Inputs a segment from the MCF receive message file and stores the segment in the message receive area. | |
dc_mcf_sendsync [CBLDCMCF(SENDSYNC)] <SEND>/<ENABLE>/<DISABLE> |
Synchronous message send | Y | Y | -- | |
dc_mcf_tempget [CBLDCMCF(TEMPGET)] <RECEIVE> |
Passes temporary memory data for continuous inquiry/response | Y | Y | Inputs data from the temporary memory data file and stores the data in the message receive area. Or, stores a null character if no file exists. | |
dc_mcf_tempput [CBLDCMCF(TEMPPUT)] <SEND> |
Updates temporary memory data for continuous inquiry/response | Y | Y | Updates the temporary memory data file. Or, creates an update file if none exists. | |
dc_mcf_contend [CBLDCMCF(CONTEND)] <DISABLE> |
Terminates continuous inquiry/response | Y | Y | Deletes the temporary memory data file. | |
dc_mcf_regster | Sets user exit routine function addresses. | Y | Y | -- | |
dc_mcf_resend [CBLDCMCF(RESEND)] |
Message resend | Y | Y | -- | |
dc_mcf_commit [CBLDCMCF(COMMIT)] |
Synchronous point acquisition | Y | Y | Counts up the transaction sequence number. | |
Remote procedure call (rpc) | dc_rpc_call [CBLDCRPC(CALL)] |
Remote service call | Y | Y | Requests the offline tester to execute a service function. Returns a descriptor (positive integer) as the return value when DCRPC_NOWAIT is specified. Or, returns zero to the specified service (service function) as the response length when DCRPC_NOREPLY is specified. |
dc_rpc_close [CBLDCRPC(CLOSE)] |
UAP termination | Y | N | -- | |
dc_rpc_mainloop [CBLDCRSV(MAINLOOP)] |
Starts the SPP service. | Y | Y | Notifies the offline tester that service has started. At a service request to the SPP, executes the service function and waits for the next service request. Returns when a UAP termination request is received (at offline tester termination, for example). | |
dc_rpc_open [CBLDCRPC(OPEN)] |
UAP start processing | Y | Y | Allocates shared memory, then notifies the offline tester that the UAPs have started. | |
dc_rpc_poll_any_replies [CBLDCRPC(POLLANYR)] |
Receives responses from the dc_rpc_call function (DCRPC_NOWAIT specified). | Y | Y | If flags=DCNOFLAGS, returns the descriptor of the first dc_rpc_call function (DCRPC_NOWAIT specified) for which no reply was received. If flags=DCRPC_SPECIFIC_MSG, returns DC_OK. If no dc_rpc_call functions that terminated normally were issued in the SPP, returns DCRPC_PROTO. | |
dc_rpc_discard_further_replies [CBLDCRPC(DISCARDF)] |
Cancels responses from the dc_rpc_call function (DCRPC_NOWAIT specified). | Y | N | Cancels all descriptors returned by the dc_rpc_call function (DCRPC_NOWAIT specified). | |
dc_rpc_get_callers_address [CBLDCRPC(GETCLADR)] |
Notifies the node address of the client. | Y | N | Returns ADDRESS (fixed value) as the client address. | |
dc_rpc_set_service_prio [CBLDCRPC(SETSVPRI)] |
Sets schedule priority of service requests. | Y | N | -- | |
dc_rpc_get_service_prio [CBLDCRPC(GETSVPRI)] |
Gets schedule priority of service requests. | Y | N | Returns the schedule priority value specified for the dc_rpc_set_service_prio function. | |
dc_rpc_set_watch_time [CBLDCRPC(SETWATCH)] |
Updates the service response wait time. | Y | Y | Updates the service response wait time. | |
dc_rpc_get_watch_time [CBLDCRPC(GETWATCH)] |
References the service response wait time. | Y | N | References the values set by the dc_rpc_set_watch_time function. Returns 180 if the function has not been issued. | |
TAM file service (tam) | dc_tam_close | Closes a TAM table. | Y | Y | Releases lock and closes the TAM table. |
dc_tam_delete [CBLDCTAM(ERS or ERSR)] |
Deletes a record from a TAM table. | Y | Y | Deletes a record specified by key value from a TAM table and updates the TAM table file. | |
dc_tam_get_inf [CBLDCTAM(GST)] |
Collects TAM table information. | Y | Y | Returns DCTAM_STS_OPN if the calling process has issued an open request for the specified TAM table file. Or, returns DCTAM_STS_CLS if no open request has been issued. | |
dc_tam_open | Opens a TAM table. | Y | Y | Opens the TAM table specified by table ID and returns the file ID as the table ID. Locks the TAM table file if lock of the TAM table is specified. | |
dc_tam_read [CBLDCTAM(FxxR or FxxU)] |
Retrieves a record from a TAM table. | Y | Y | Retrieves a specified index from a TAM table (control part and index part) in shared memory and reads the record for the index from the TAM table file. Locks the TAM table file if lock of the record is specified. | |
dc_tam_read_cancel | Cancels TAM table record retrieval. | Y | Y | Unlocks the TAM table file that contains a specified record. | |
dc_tam_rewrite | Updates a retrievable record in a TAM table. | Y | Y | Writes the contents of a specified buffer to a specified record in a TAM table. | |
dc_tam_write [CBLDCTAM(MFY, MFYS, or STR)] |
Updates or appends a record in a TAM table. | Y | Y | Retrieves a specified index from a TAM table (control part and index part) in shared memory and writes the contents of a specified buffer to the record for the index in the TAM table file. | |
Transaction control (trn) | dc_trn_begin [CBLDCTRN(BEGIN)] |
Starts a transaction. | Y | Y | Counts up the transaction sequence number. |
dc_trn_chained_commit [CBLDCTRN(C-COMMIT)] |
Commits a transaction (chained mode). | Y | Y | Counts up the transaction sequence number. | |
dc_trn_chained_rollback [CBLDCTRN(C-ROLL)] |
Rolls back a transaction (chained mode). | Y | Y | Counts up the transaction sequence number. | |
dc_trn_info [CBLDCTRN(INFO)] |
Returns information for the current transaction. | Y | Y | Returns zero if no information is specified in the function return values file. | |
dc_trn_unchained_commit [CBLDCTRN(U-COMMIT)] |
Commits a transaction (unchained mode). | Y | Y | -- | |
dc_trn_unchained_rollback [CBLDCTRN(U-ROLL)] |
Rolls back a transaction (unchained mode). | Y | Y | -- | |
TX interface (tx_~) | tx_begin [TXBEGIN] |
Starts a transaction. | Y | Y | Counts up the transaction sequence number and initializes TXINFO information. |
tx_close [TXCLOSE] |
Closes the resource managers. | Y | Y | -- | |
tx_commit [TXCOMMIT] |
Commits a transaction. | Y | Y | In chained mode, counts up the transaction sequence number. | |
tx_info [TXINFORM] |
Returns information for the current transaction. | Y | Y | Returns zero if no information is specified in the function return values file. | |
tx_open [TXOPEN] |
Opens the resource managers. | Y | Y | -- | |
tx_set_commit_return [TXSETCOMMITRET] |
Sets commit_return characteristics. | Y | Y | -- | |
tx_set_transaction_control [TXSETTRANCTL] |
Sets trans-action_control characteristics. | Y | Y | Sets transaction_control characteristics. | |
tx_set_transaction_timeout [TXSETTIMEOUT] |
Sets trans-action_timeout characteristics. | Y | Y | -- | |
tx_rollback [TXROLLBACK] |
Rolls back a transaction. | Y | Y | In chained mode, counts up the transaction sequence number and sets transaction_state characteristics. | |
XATMI interface (tp_~) | tpalloc | Allocates a typed buffer. | Y | Y | Allocates the buffer specified by an argument of type type and returns the pointer. |
tpfree | Frees a typed buffer. | Y | N | Frees the buffer allocated by the tpalloc or tprealloc function. | |
tprealloc | Resizes a typed buffer. | Y | Y | Resizes the buffer allocated by the tpalloc or tprealloc function. | |
tptypes | Gets typed buffer information. | Y | Y | Returns the type and subtype of the buffer allocated by the tpalloc or tprealloc function. | |
tpservice | Service function template | Y | N | Collects trace information immediately before a service function is called. | |
tpreturn | Returns from a service function. | Y | Y | Sets return information and returns to the client UAP. | |
tpadvertise | Advertises a service name. | Y | Y | -- | |
tpunadvertise | Cancels service name advertising. | Y | Y | -- | |
tpacall | Asynchronous service request | Y | Y | Requests the offline tester to execute a service function. The tpgetrply function returns the call result. | |
tpcall | Synchronous service request | Y | Y | Requests the offline tester to execute a service function. | |
tpcancel | Service cancellation | Y | Y | Cancels the response from the service requested by tpacall function. | |
tpgetrply | Asynchronous response from a service | Y | Y | Returns the execution result of a service function. | |
tpconnect | Establishes the conversational service paradigm connection. | Y | Y | Requests the offline tester to execute a service function. The execution result is returned by the tprecv function. | |
tpdiscon | Disconnects the conversational service paradigm. | Y | Y | Terminates the service if in reply wait state (tprecv function) and disables acceptance of tpsend or tprecv after the tpdiscon is accepted. | |
tprecv | Message receive from the conversational service paradigm | Y | Y | Inputs data from the XATMI receive data file. | |
tpsend | Message send to the conversational service paradigm | Y | Y | Outputs data to the XATMI send data file. | |
Online tester (uto) | dc_uto_test_status [CBLDCUTO(T-STATUS)] |
Reports user server test state. | Y | Y | Returns non-test mode state. |
Note the following points on using the function simulator:
All Rights Reserved. Copyright (C) 2006, 2010, Hitachi, Ltd.