Class RecordType
- java.lang.Object
-
- com.arjuna.ats.arjuna.coordinator.RecordType
-
public class RecordType extends java.lang.ObjectThe following enumerated type defines the types of record that are derived from AbstractRecord. The type also defines the order in which these types may be held by an AtomicAction if a record refers to the same object (as defined by the AbstractRecord operator== operation). Since records are processed sequentially during an AtomicAction operation the ordering below also defines the order in which each operation is invoked. Hence a LOCK type record will always have operations invoked before an RPCTERMINATE type record. This ordering is important otherwise some records may negate the effects of other record, e.g. during the top_level_commit operation a RPCTERMINATE record terminates a server - this should not occur before the server record has sent the final Commit rpc.- Since:
- JTS 1.0.
- Version:
- $Id: RecordType.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark@arjuna.com)
-
-
Field Summary
Fields Modifier and Type Field Description static intACTIVATIONstatic intCADAVERstatic intCOMMITMARKABLERESOURCEstatic intDISPOSEstatic intJTA_RECORDstatic intJTAX_RECORDstatic intLASTRESOURCEThe following is for a one-phase aware resource that we enlist in a two-phase commit transaction using the last resource commit optimization.static intLOCKstatic intLRA_CHILD_RECORDstatic intLRA_PARENT_RECORDstatic intLRA_RECORDstatic intNAMINGstatic intNONE_RECORDstatic intOTS_ABSTRACTRECORDstatic intOTS_RECORDstatic intPERSISTENCEstatic intRECOVERYThe values are used by the system records.static intREPLICATIONstatic intRESTAT_RECORDstatic intRPCCADAVERstatic intRPCCALLstatic intRPCINITIATEstatic intRPCTERMINATENote that RPCTERMINATE is deliberately late in the list otherwise the server would be terminated BEFORE the user records were processed.static intTXLOG_PERSISTENCEstatic intUNTYPEDstatic intUSER_DEF_FIRST0The following values are provided for user-defined records that should have operations invoked BEFORE the system records.static intUSER_DEF_FIRST1static intUSER_DEF_FIRST2static intUSER_DEF_FIRST3static intUSER_DEF_FIRST4static intUSER_DEF_FIRST5static intUSER_DEF_FIRST6static intUSER_DEF_FIRST7static intUSER_DEF_FIRST8static intUSER_DEF_FIRST9static intUSER_DEF_LAST0The following values are provided for user-defined records that should have operations invoked AFTER the system records.static intUSER_DEF_LAST1static intUSER_DEF_LAST2static intUSER_DEF_LAST3static intUSER_DEF_LAST4static intUSER_DEF_LAST5static intUSER_DEF_LAST6static intUSER_DEF_LAST7static intUSER_DEF_LAST8static intUSER_DEF_LAST9static intXTS_WSAT_RECORDstatic intXTS_WSBA_RECORD
-
Constructor Summary
Constructors Constructor Description RecordType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intclassToType(java.lang.Class cn)static voidprint(java.io.PrintWriter strm, int rt)Print a human-readable version of the lock type.static java.lang.ClasstypeToClass(int rt)
-
-
-
Field Detail
-
USER_DEF_FIRST0
public static final int USER_DEF_FIRST0
The following values are provided for user-defined records that should have operations invoked BEFORE the system records.- See Also:
- Constant Field Values
-
USER_DEF_FIRST1
public static final int USER_DEF_FIRST1
- See Also:
- Constant Field Values
-
USER_DEF_FIRST2
public static final int USER_DEF_FIRST2
- See Also:
- Constant Field Values
-
USER_DEF_FIRST3
public static final int USER_DEF_FIRST3
- See Also:
- Constant Field Values
-
USER_DEF_FIRST4
public static final int USER_DEF_FIRST4
- See Also:
- Constant Field Values
-
USER_DEF_FIRST5
public static final int USER_DEF_FIRST5
- See Also:
- Constant Field Values
-
USER_DEF_FIRST6
public static final int USER_DEF_FIRST6
- See Also:
- Constant Field Values
-
USER_DEF_FIRST7
public static final int USER_DEF_FIRST7
- See Also:
- Constant Field Values
-
USER_DEF_FIRST8
public static final int USER_DEF_FIRST8
- See Also:
- Constant Field Values
-
USER_DEF_FIRST9
public static final int USER_DEF_FIRST9
- See Also:
- Constant Field Values
-
COMMITMARKABLERESOURCE
public static final int COMMITMARKABLERESOURCE
- See Also:
- Constant Field Values
-
RECOVERY
public static final int RECOVERY
The values are used by the system records.- See Also:
- Constant Field Values
-
PERSISTENCE
public static final int PERSISTENCE
- See Also:
- Constant Field Values
-
TXLOG_PERSISTENCE
public static final int TXLOG_PERSISTENCE
- See Also:
- Constant Field Values
-
LOCK
public static final int LOCK
- See Also:
- Constant Field Values
-
ACTIVATION
public static final int ACTIVATION
- See Also:
- Constant Field Values
-
OTS_RECORD
public static final int OTS_RECORD
- See Also:
- Constant Field Values
-
OTS_ABSTRACTRECORD
public static final int OTS_ABSTRACTRECORD
- See Also:
- Constant Field Values
-
XTS_WSAT_RECORD
public static final int XTS_WSAT_RECORD
- See Also:
- Constant Field Values
-
XTS_WSBA_RECORD
public static final int XTS_WSBA_RECORD
- See Also:
- Constant Field Values
-
RESTAT_RECORD
public static final int RESTAT_RECORD
- See Also:
- Constant Field Values
-
LRA_RECORD
public static final int LRA_RECORD
- See Also:
- Constant Field Values
-
LRA_CHILD_RECORD
public static final int LRA_CHILD_RECORD
- See Also:
- Constant Field Values
-
LRA_PARENT_RECORD
public static final int LRA_PARENT_RECORD
- See Also:
- Constant Field Values
-
JTA_RECORD
public static final int JTA_RECORD
- See Also:
- Constant Field Values
-
JTAX_RECORD
public static final int JTAX_RECORD
- See Also:
- Constant Field Values
-
REPLICATION
public static final int REPLICATION
- See Also:
- Constant Field Values
-
NAMING
public static final int NAMING
- See Also:
- Constant Field Values
-
CADAVER
public static final int CADAVER
- See Also:
- Constant Field Values
-
DISPOSE
public static final int DISPOSE
- See Also:
- Constant Field Values
-
RPCCALL
public static final int RPCCALL
- See Also:
- Constant Field Values
-
RPCINITIATE
public static final int RPCINITIATE
- See Also:
- Constant Field Values
-
USER_DEF_LAST0
public static final int USER_DEF_LAST0
The following values are provided for user-defined records that should have operations invoked AFTER the system records.- See Also:
- Constant Field Values
-
USER_DEF_LAST1
public static final int USER_DEF_LAST1
- See Also:
- Constant Field Values
-
USER_DEF_LAST2
public static final int USER_DEF_LAST2
- See Also:
- Constant Field Values
-
USER_DEF_LAST3
public static final int USER_DEF_LAST3
- See Also:
- Constant Field Values
-
USER_DEF_LAST4
public static final int USER_DEF_LAST4
- See Also:
- Constant Field Values
-
USER_DEF_LAST5
public static final int USER_DEF_LAST5
- See Also:
- Constant Field Values
-
USER_DEF_LAST6
public static final int USER_DEF_LAST6
- See Also:
- Constant Field Values
-
USER_DEF_LAST7
public static final int USER_DEF_LAST7
- See Also:
- Constant Field Values
-
USER_DEF_LAST8
public static final int USER_DEF_LAST8
- See Also:
- Constant Field Values
-
USER_DEF_LAST9
public static final int USER_DEF_LAST9
- See Also:
- Constant Field Values
-
RPCTERMINATE
public static final int RPCTERMINATE
Note that RPCTERMINATE is deliberately late in the list otherwise the server would be terminated BEFORE the user records were processed.- See Also:
- Constant Field Values
-
RPCCADAVER
public static final int RPCCADAVER
- See Also:
- Constant Field Values
-
UNTYPED
public static final int UNTYPED
- See Also:
- Constant Field Values
-
NONE_RECORD
public static final int NONE_RECORD
- See Also:
- Constant Field Values
-
LASTRESOURCE
public static final int LASTRESOURCE
The following is for a one-phase aware resource that we enlist in a two-phase commit transaction using the last resource commit optimization. It's prepare must go off after all other records.- See Also:
- Constant Field Values
-
-
Method Detail
-
typeToClass
public static java.lang.Class typeToClass(int rt)
- Returns:
- the
Classrepresenting this type.
-
classToType
public static int classToType(java.lang.Class cn)
- Returns:
- the
intvalue representing this Class.
-
print
public static void print(java.io.PrintWriter strm, int rt)Print a human-readable version of the lock type.
-
-