cosTransactions - Online Linux Manual PageSection : 3
Updated : cosTransactions 5.0
Source : Ericsson AB
Note : Erlang Module Definition

NAMEcosTransactions − The main module of the cosTransactions application.

DESCRIPTIONTo get access to the record definitions for the structures use:
-include_lib("cosTransactions/include/CosTransactions​.hrl")​.
This module contains the functions for starting and stopping the application​. If the application is started using application:start(cosTransactions)​ the default configuration is used (see listing below)​. The Factory reference is stored using the CosNaming Service under the id "oe_cosTransactionsFac_IPNo"​​. The following application configuration parameters exist: *  maxRetries​ - default is 40 times, i​.e​., if a transaction participant is unreachable the application will retry to contact it N​ times​. Reaching the maximum is considered to be a disaster​. *  comFailWait​ - default is 5000 milliseconds, i​.e​., before the application retries to contact unreachable transaction participants the application wait Time​ milliseconds​.

EXPORTSstart() -> Return
Types: Return = ok | {error, Reason}
This operation starts the cosTransactions application​. stop() -> Return
Types: Return = ok | {error, Reason}
This operation stops the cosTransactions application​. start_factory() -> TransactionFactory
Types: TransactionFactory = #objref
This operation creates a Transaction Factory​​. The Factory is used to create a new top-level transaction​ using default options (see listing below)​. start_factory(FacDef) -> TransactionFactory
Types: FacDef = [Options], see Option listing below​.
TransactionFactory = #objref
This operation creates a Transaction Factory​​. The Factory is used to create a new top-level transaction​. The FacDef list must be a list of {Item, Value} tuples, where the following values are allowed: *  {hash_max, HashValue} - This value denotes the upper bound of the hash value the Coordinator​ uses​. Default is 1013​​. HashValue must be an integer​. *  {allow_subtr, Boolean} - If set to true it is possible to create subtransactions​​. Default is true​​. *  {typecheck, Boolean} - If set to to true all transaction operation​'s arguments will be type-checked​. Default is true​​. *  {tty, Boolean} - Enables or disables error printouts to the tty​. If Flag is false, all text that the error logger would have sent to the terminal is discarded​. If Flag is true, error messages are sent to the terminal screen​. *  {logfile, FileName} - This function makes it possible to store all system information in FileName(string())​. It can be used in combination with the tty(false) item in to have a silent system, where all system information are logged to a file​. As default no logfile is used​. *  {maxRetries, Integer}​ - default is 40 times, i​.e​., if a transaction participant is unreachable the application will retry to contact it N​ times​. Reaching the maximum is considered to be a disaster​. This option overrides the application configuration parameter​. *  {comFailWait, Integer}​ - default is 5000 milliseconds, i​.e​., before the application retries to contact unreachable transaction participants the application wait Time​ milliseconds​. This option overrides the application configuration parameter​. stop_factory(TransactionFactory) -> Reply
Types: TransactionFactory = #objref
Reply = ok | {'EXCEPTION​', E}
This operation stop the target transaction factory​.
0
Johanes Gumabo
Data Size   :   16,425 byte
man-cosTransactions.3erlBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 198,219
Visitor ID   :     :  
Visitor IP   :   18.118.144.239   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.