Class RecordType
java.lang.Object
com.arjuna.ats.arjuna.coordinator.RecordType
The 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
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
The following is for a one-phase aware resource that we enlist in a two-phase commit transaction using the last resource commit optimization.static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
The values are used by the system records.static final int
static final int
static final int
static final int
static final int
static final int
Note that RPCTERMINATE is deliberately late in the list otherwise the server would be terminated BEFORE the user records were processed.static final int
static final int
static final int
The following values are provided for user-defined records that should have operations invoked BEFORE the system records.static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
The following values are provided for user-defined records that should have operations invoked AFTER the system records.static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
classToType
(Class cn) static void
print
(PrintWriter strm, int rt) Print a human-readable version of the lock type.static Class
typeToClass
(int rt)
-
Field Details
-
USER_DEF_FIRST0
public static final int USER_DEF_FIRST0The following values are provided for user-defined records that should have operations invoked BEFORE the system records.- See Also:
-
USER_DEF_FIRST1
public static final int USER_DEF_FIRST1- See Also:
-
USER_DEF_FIRST2
public static final int USER_DEF_FIRST2- See Also:
-
USER_DEF_FIRST3
public static final int USER_DEF_FIRST3- See Also:
-
USER_DEF_FIRST4
public static final int USER_DEF_FIRST4- See Also:
-
USER_DEF_FIRST5
public static final int USER_DEF_FIRST5- See Also:
-
USER_DEF_FIRST6
public static final int USER_DEF_FIRST6- See Also:
-
USER_DEF_FIRST7
public static final int USER_DEF_FIRST7- See Also:
-
USER_DEF_FIRST8
public static final int USER_DEF_FIRST8- See Also:
-
USER_DEF_FIRST9
public static final int USER_DEF_FIRST9- See Also:
-
COMMITMARKABLERESOURCE
public static final int COMMITMARKABLERESOURCE- See Also:
-
RECOVERY
public static final int RECOVERYThe values are used by the system records.- See Also:
-
PERSISTENCE
public static final int PERSISTENCE- See Also:
-
TXLOG_PERSISTENCE
public static final int TXLOG_PERSISTENCE- See Also:
-
LOCK
public static final int LOCK- See Also:
-
ACTIVATION
public static final int ACTIVATION- See Also:
-
OTS_RECORD
public static final int OTS_RECORD- See Also:
-
OTS_ABSTRACTRECORD
public static final int OTS_ABSTRACTRECORD- See Also:
-
XTS_WSAT_RECORD
public static final int XTS_WSAT_RECORD- See Also:
-
XTS_WSBA_RECORD
public static final int XTS_WSBA_RECORD- See Also:
-
RESTAT_RECORD
public static final int RESTAT_RECORD- See Also:
-
LRA_RECORD
public static final int LRA_RECORD- See Also:
-
LRA_CHILD_RECORD
public static final int LRA_CHILD_RECORD- See Also:
-
LRA_PARENT_RECORD
public static final int LRA_PARENT_RECORD- See Also:
-
JTA_RECORD
public static final int JTA_RECORD- See Also:
-
JTAX_RECORD
public static final int JTAX_RECORD- See Also:
-
REPLICATION
public static final int REPLICATION- See Also:
-
NAMING
public static final int NAMING- See Also:
-
CADAVER
public static final int CADAVER- See Also:
-
DISPOSE
public static final int DISPOSE- See Also:
-
RPCCALL
public static final int RPCCALL- See Also:
-
RPCINITIATE
public static final int RPCINITIATE- See Also:
-
USER_DEF_LAST0
public static final int USER_DEF_LAST0The following values are provided for user-defined records that should have operations invoked AFTER the system records.- See Also:
-
USER_DEF_LAST1
public static final int USER_DEF_LAST1- See Also:
-
USER_DEF_LAST2
public static final int USER_DEF_LAST2- See Also:
-
USER_DEF_LAST3
public static final int USER_DEF_LAST3- See Also:
-
USER_DEF_LAST4
public static final int USER_DEF_LAST4- See Also:
-
USER_DEF_LAST5
public static final int USER_DEF_LAST5- See Also:
-
USER_DEF_LAST6
public static final int USER_DEF_LAST6- See Also:
-
USER_DEF_LAST7
public static final int USER_DEF_LAST7- See Also:
-
USER_DEF_LAST8
public static final int USER_DEF_LAST8- See Also:
-
USER_DEF_LAST9
public static final int USER_DEF_LAST9- See Also:
-
RPCTERMINATE
public static final int RPCTERMINATENote that RPCTERMINATE is deliberately late in the list otherwise the server would be terminated BEFORE the user records were processed.- See Also:
-
RPCCADAVER
public static final int RPCCADAVER- See Also:
-
UNTYPED
public static final int UNTYPED- See Also:
-
NONE_RECORD
public static final int NONE_RECORD- See Also:
-
LASTRESOURCE
public static final int LASTRESOURCEThe 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:
-
-
Constructor Details
-
RecordType
public RecordType()
-
-
Method Details
-
typeToClass
- Returns:
- the
Class
representing this type.
-
classToType
- Returns:
- the
int
value representing this Class.
-
print
Print a human-readable version of the lock type.
-