com.arjuna.mw.wscf.model.sagas.common
Class TwoPhaseResult

java.lang.Object
  extended by com.arjuna.mw.wscf.model.sagas.common.TwoPhaseResult

public class TwoPhaseResult
extends Object

The outcomes which can be generated when a two-phase coordinator attempts to prepare/commit/rollback.

Since:
1.0.
Version:
$Id: TwoPhaseResult.java,v 1.2 2004/03/15 13:25:03 nmcl Exp $
Author:
Mark Little (mark.little@arjuna.com)

Field Summary
static int CANCELLED
           
static int CONFIRMED
           
static int FINISH_ERROR
           
static int FINISH_OK
           
static int HEURISTIC_CANCEL
           
static int HEURISTIC_CONFIRM
           
static int HEURISTIC_HAZARD
           
static int HEURISTIC_MIXED
           
static int NOT_PREPARED
           
static int PREPARE_NOTOK
           
static int PREPARE_OK
           
static int PREPARE_READONLY
           
 
Constructor Summary
TwoPhaseResult()
           
 
Method Summary
static String stringForm(int res)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREPARE_OK

public static final int PREPARE_OK
See Also:
Constant Field Values

PREPARE_NOTOK

public static final int PREPARE_NOTOK
See Also:
Constant Field Values

PREPARE_READONLY

public static final int PREPARE_READONLY
See Also:
Constant Field Values

HEURISTIC_CANCEL

public static final int HEURISTIC_CANCEL
See Also:
Constant Field Values

HEURISTIC_CONFIRM

public static final int HEURISTIC_CONFIRM
See Also:
Constant Field Values

HEURISTIC_MIXED

public static final int HEURISTIC_MIXED
See Also:
Constant Field Values

HEURISTIC_HAZARD

public static final int HEURISTIC_HAZARD
See Also:
Constant Field Values

FINISH_OK

public static final int FINISH_OK
See Also:
Constant Field Values

FINISH_ERROR

public static final int FINISH_ERROR
See Also:
Constant Field Values

NOT_PREPARED

public static final int NOT_PREPARED
See Also:
Constant Field Values

CANCELLED

public static final int CANCELLED
See Also:
Constant Field Values

CONFIRMED

public static final int CONFIRMED
See Also:
Constant Field Values
Constructor Detail

TwoPhaseResult

public TwoPhaseResult()
Method Detail

stringForm

public static String stringForm(int res)
Returns:
a human-readable version of the outcome.


Copyright © 2012. All Rights Reserved.