Back to home page

Enduro/X

 
 

    


0001 $/**
0002 $ * @brief Enduro/X internal UBF field table
0003 $ *
0004 $ * @file Exfields.h
0005 $ */
0006 $/* -----------------------------------------------------------------------------
0007 $ * Enduro/X Middleware Platform for Distributed Transaction Processing
0008 $ * Copyright (C) 2009-2016, ATR Baltic, Ltd. All Rights Reserved.
0009 $ * Copyright (C) 2017-2023, Mavimax, Ltd. All Rights Reserved.
0010 $ * This software is released under one of the following licenses:
0011 $ * AGPL (with Java and Go exceptions) or Mavimax's license for commercial use.
0012 $ * See LICENSE file for full text.
0013 $ * -----------------------------------------------------------------------------
0014 $ * AGPL license:
0015 $ *
0016 $ * This program is free software; you can redistribute it and/or modify it under
0017 $ * the terms of the GNU Affero General Public License, version 3 as published
0018 $ * by the Free Software Foundation;
0019 $ *
0020 $ * This program is distributed in the hope that it will be useful, but WITHOUT ANY
0021 $ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
0022 $ * PARTICULAR PURPOSE. See the GNU Affero General Public License, version 3
0023 $ * for more details.
0024 $ *
0025 $ * You should have received a copy of the GNU Affero General Public License along 
0026 $ * with this program; if not, write to the Free Software Foundation, Inc.,
0027 $ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
0028 $ *
0029 $ * -----------------------------------------------------------------------------
0030 $ * A commercial use license is available from Mavimax, Ltd
0031 $ * contact@mavimax.com
0032 $ * -----------------------------------------------------------------------------
0033 $ */
0034 
0035 $#ifndef __EXFIELDS_H
0036 $#define __EXFIELDS_H
0037 
0038 *base 100
0039 
0040 #NAME           ID      TYPE    FLAG    COMMENT
0041 #----           --      ----    ----    -------
0042 # Service name for UD
0043 SRVCNM          1       string  -       Service name to be called
0044 
0045 # Event subsystem related
0046 EV_FLAGS        4       long    -       Event subscription flags
0047 EV_MASK         5       string  -       Event subscription mask
0048 EV_FILTER       6       string  -       Event subscription filter
0049 EV_SRVCNM       7       string  -       Event subscription service name
0050 EV_SUBSNR       8       long    -       Event subscriber number
0051 
0052 # EnduroXD monitor
0053 EXDM_RESTARTS   15      long    -       ndrxd restarts done
0054 # Transaction manager specific fields
0055 TMCMD           20      char    -       Transaction Manager Command code
0056 TMXID           21      string  -       XID used for TM exchange
0057 TMRMID          23      short   -       Resource Manager ID - branch id (master)
0058 TMNODEID        22      short   -       Transaction Manager Node id
0059 TMSRVID         24      short   -       Server ID of Transaction Manager
0060 TMKNOWNRMS      25      string  -       List of known Resource Managers involved in tx
0061 # Error handling for XA:
0062 TMERR_CODE       30      short   -       Error code returned by TM (0 - OK)
0063 TMERR_REASON     31      short   -       Reason code (0 - not specific)
0064 TMERR_MSG        32      string  -       Error message returned by TM
0065 
0066 # Initiator
0067 TMPROCESSID     50       string  -       Process ID starting the transaction
0068 TMCALLERRM      51       short   -       Caller's resource manager
0069 TMTXTOUT        52       long    -       Transaction timeout value (seconds)
0070 TMTXTOUT_LEFT   53       long    -       Time left for transaction till timeout
0071 TMTXSTAGE       54       short   -       Transaction stage, where we are currenlty
0072 TMTXRMID        55       short   M       Resource manager id (grpno)
0073 TMTXRMSTATUS    56       char    M       Resource manager status
0074 TMTXRMERRCODE   57       long    M       Resource manager error code associated
0075 TMTXRMREASON    58       short   M       Reason code associated with RM
0076 TMTXTRYCNT      59       long    -       Transaction try count
0077 TMTXTRYMAXCNT   60       long    -       Transaction try count, max
0078 TMTXFLAGS       61       long    -       Various TM flags...
0079 
0080 $#endif
0081 
0082 $/* vim: set ts=4 sw=4 et smartindent: */