public String type() { return AssumedCompleteHeuristicServerTransaction.typeName(); }
private static org.omg.CosTransactions.Status getHeuristicStatus(final Uid uid, final RecoveryStore recoveryStore) throws ObjectStoreException { final int status = recoveryStore.currentState(uid, AssumedCompleteHeuristicServerTransaction.typeName()); switch (status) { case StateStatus.OS_UNKNOWN: return org.omg.CosTransactions.Status.StatusNoTransaction; case StateStatus.OS_COMMITTED: return org.omg.CosTransactions.Status.StatusCommitted; case StateStatus.OS_UNCOMMITTED: return org.omg.CosTransactions.Status.StatusPrepared; case StateStatus.OS_HIDDEN: case StateStatus.OS_COMMITTED_HIDDEN: case StateStatus.OS_UNCOMMITTED_HIDDEN: return org.omg.CosTransactions.Status.StatusPrepared; default: return org.omg.CosTransactions.Status.StatusUnknown; } }
public boolean assumeComplete () { final int heuristicDecision = getHeuristicDecision(); if (heuristicDecision == TwoPhaseOutcome.HEURISTIC_COMMIT || heuristicDecision == TwoPhaseOutcome.HEURISTIC_HAZARD || heuristicDecision == TwoPhaseOutcome.HEURISTIC_MIXED || heuristicDecision == TwoPhaseOutcome.HEURISTIC_ROLLBACK) { _typeName = AssumedCompleteHeuristicServerTransaction.typeName(); } else { _typeName = AssumedCompleteServerTransaction.typeName(); } return true; }
public boolean assumeComplete () { final int heuristicDecision = getHeuristicDecision(); if (heuristicDecision == TwoPhaseOutcome.HEURISTIC_COMMIT || heuristicDecision == TwoPhaseOutcome.HEURISTIC_HAZARD || heuristicDecision == TwoPhaseOutcome.HEURISTIC_MIXED || heuristicDecision == TwoPhaseOutcome.HEURISTIC_ROLLBACK) { _typeName = AssumedCompleteHeuristicServerTransaction.typeName(); } else { _typeName = AssumedCompleteServerTransaction.typeName(); } return true; }