Package com.atomikos.icatch

Examples of com.atomikos.icatch.TxState


     */

    void setStateHandler ( CoordinatorStateHandler stateHandler )
    {
        // NB: if this method is synchronized then deadlock happens on heuristic mixed!
        TxState state = stateHandler.getState ();
        stateHandler_ = stateHandler;
        setState ( state );
    }
View Full Code Here


     * @see FSMPreEnterListener.
     */

    public void preEnter ( FSMEnterEvent<TxState> event ) throws IllegalStateException
    {
      TxState state = event.getState ();

        if ( state.equals ( TxState.TERMINATED )
                || state.equals ( TxState.HEUR_ABORTED )
                || state.equals ( TxState.HEUR_COMMITTED )
                || state.equals ( TxState.HEUR_HAZARD )
                || state.equals ( TxState.HEUR_MIXED ) ) {

            if ( !state.equals ( TxState.TERMINATED ) )
              LOGGER.logWarning ( "Local heuristic termination of coordinator "
                        + root_ + " with state " + getState () );
            else
                dispose ();
        }
View Full Code Here

            //merely return null to avoid logging overhead
            ret = null;

        }
        else {
          TxState imgstate = state;

          if ( recoverableWhileActive_ ) {
            ret = new CoordinatorLogImage ( root_, imgstate, participants_,
                superiorCoordinator_, heuristicMeansCommit_, maxNumberOfTimeoutTicksBeforeHeuristicDecision_,
                stateHandler_, localSiblingCount_, checkSiblings_ , single_threaded_2pc_);
View Full Code Here

        if ( LOGGER.isDebugEnabled() ) LOGGER.logDebug ( "Error during setRollbackOnly" , e );
        }
    }

  public TxState getStateWithTwoPhaseCommitDecision() {
    TxState ret = getState();
    if (TxState.TERMINATED.equals(getState())) {
      if (isCommitted()) ret = TxState.COMMITTED;
      else ret = TxState.ABORTED;
    } else if (TxState.HEUR_ABORTED.equals(getState())) {
      ret = TxState.ABORTED;
View Full Code Here

TOP

Related Classes of com.atomikos.icatch.TxState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.