Package com.atomikos.icatch

Examples of com.atomikos.icatch.StringHeuristicMessage


                    // heur hazard or not; the conclusion is the same
                    // System.err.println ( "TerminationResult: heuristic hh" );

                    heurhazards = true;
                    heurmixed = (heurmixed || heuraborts || heurcommits);
                    HeuristicMessage heurmsg = new StringHeuristicMessage (
                            "No commit ACK from " + "participant "
                                    + reply.getParticipant () );
                    errmsgvector_.addElement ( heurmsg );
                    heuristicparticipants_.put ( reply.getParticipant (),
                            TxState.HEUR_HAZARD );
View Full Code Here


        state_ = TxState.ACTIVE;
        heuristicMessages_ = new Vector ();
        isXaSuspended_ = false;
        enlisted_ = false;
        // add default heuristic message
        addHeuristicMessage ( new StringHeuristicMessage ( "XA resource '"
                + resource.getName () + "' accessed with Xid '" + xidToHexString (xid_) + "'" ) );
    }
View Full Code Here

  }
 
  private void switchToHeuristicState ( String opCode , TxState state , XAException cause )
  {
    String errorMsg = interpretErrorCode ( resourcename_ , opCode , xid_ , cause.errorCode );
    addHeuristicMessage ( new StringHeuristicMessage ( errorMsg ) );
    state_ = state;
  }
View Full Code Here

        } catch ( RollbackException jtr ) {
            // NO vote.
            result = new Boolean ( false );
        } catch ( Exception e ) {
            // here, participant might be indoubt!
            StringHeuristicMessage shm = new StringHeuristicMessage (
                    "Possibly heuristic participant: " + part.toString () );
            HeuristicMessage[] msgs = new HeuristicMessage[1];
            msgs[0] = shm;
            HeurHazardException heurh = new HeurHazardException ( msgs );
            throw new PropagationException ( heurh, false );
View Full Code Here

    {
        recoverableWhileActive_ = true;
    }
   
    void setRollbackOnly() {  
      StringHeuristicMessage msg = new StringHeuristicMessage (
      "setRollbackOnly" );
      RollbackOnlyParticipant p = new RollbackOnlyParticipant ( msg );

      try {
        addParticipant ( p );
View Full Code Here

    out.writeUTF(msg_.toString());
   
  }

  public void readData(DataInput in) throws IOException {
    msg_=new StringHeuristicMessage(in.readUTF());
   
  }
View Full Code Here

  }
  public ReadOnlyParticipant ( CoordinatorImp coordinator )
  {
    this.coordinatorId = coordinator.getCoordinatorId();
    msgs = new StringHeuristicMessage[1];
    msgs[0] = new StringHeuristicMessage ( "ReadOnlyParticipant" );
  }
View Full Code Here

                } else {

                    atLeastOneHeuristicHazardException = true;
                    atLeastOneHeuristicMixedException = (atLeastOneHeuristicMixedException || atLeastOneHeuristicRollbackException || atLeastOneHeuristicCommitException);
                    HeuristicMessage heurmsg = new StringHeuristicMessage (
                            "No commit ACK from " + "participant "
                                    + reply.getParticipant () );
                    heuristicMessagesOfHeuristicParticipants_.addElement ( heurmsg );
                    heuristicparticipants_.put ( reply.getParticipant (),
                            TxState.HEUR_HAZARD );
View Full Code Here

    subordinateId=in.readUTF();
    int size=in.readInt();
    msgs=new HeuristicMessage[size];

    for (int i = 0; i < msgs.length; i++) {
      msgs[i]=new StringHeuristicMessage(in.readUTF());
    }
    prepareCalled=in.readBoolean();
  }
View Full Code Here

    return IntraVmObjectFactory.createReference ( this , getUniqueResourceName() );   
  }
 
  public Connection getConnection() throws SQLException
  {
    StringHeuristicMessage m = null;
    return getConnection ( m );
  }
View Full Code Here

TOP

Related Classes of com.atomikos.icatch.StringHeuristicMessage

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.