Examples of OutputObjectState


Examples of com.arjuna.ats.arjuna.state.OutputObjectState

     *
     * @param participantRecoveryRecord
     */
    public boolean writeParticipantRecoveryRecord(ATParticipantRecoveryRecord participantRecoveryRecord)
    {
        OutputObjectState oos = new OutputObjectState();
        // we need to be able to retrieve the class of the participant record so we can
        // create an instancde to load the rest of the participant specific data
        try {
            oos.packString(participantRecoveryRecord.getClass().getCanonicalName());
        } catch (IOException ioe) {
            if (XTSLogger.arjLoggerI18N.isWarnEnabled())
            {
                XTSLogger.arjLoggerI18N.warn("org.jboss.transactions.xts.recovery.participant.at.XTSATRecoveryModule_1",
                        new Object[] {participantRecoveryRecord.getId()}, ioe);
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

     *
     * @param participantRecoveryRecord
     */
    public boolean writeParticipantRecoveryRecord(BAParticipantRecoveryRecord participantRecoveryRecord)
    {
        OutputObjectState oos = new OutputObjectState();
        // we need to be able to retrieve the class of the participant record so we can
        // create an instancde to load the rest of the participant specific data
        try {
            oos.packString(participantRecoveryRecord.getClass().getCanonicalName());
        } catch (IOException ioe) {
            if (XTSLogger.arjLoggerI18N.isWarnEnabled())
            {
                XTSLogger.arjLoggerI18N.warn("org.jboss.transactions.xts.recovery.participant.ba.XTSBARecoveryModule_1",
                        new Object[] {participantRecoveryRecord.getId()}, ioe);
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

                            // kicked-in
                  {
                    boolean moved = _objectStore
                        .write_committed(newUid,
                            _movedTypeName,
                            new OutputObjectState(
                                state));

                    if (!moved)
                    {
                      tsLogger.arjLoggerI18N
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

      boolean res = false;
     
      if (state != null) // just in case recovery
          // kicked-in
      {
          boolean moved = _objectStore.write_committed(newUid, _movedTypeName, new OutputObjectState(state));

          if (!moved)
          {
              tsLogger.arjLoggerI18N.warn(
                      "com.arjuna.ats.internal.arjuna.recovery.ExpiredTransactionStatusManagerScanner_3",
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

    {
  boolean ret_status = false ;
 
  try
      {
    OutputObjectState objstate = new OutputObjectState();
   
    if ( save_state(objstate) )
        {
      ret_status = getStore().write_committed ( _pidUid,
                  _typeName,
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

/*      */
/* 1241 */     boolean unloadOk = false;
/* 1242 */     Lock current = null;
/* 1243 */     String otype = type();
/* 1244 */     Uid u = get_uid();
/* 1245 */     OutputObjectState S = new OutputObjectState(u, otype);
/* 1246 */     int lockCount = this.locksHeld.entryCount();
/*      */
/* 1250 */     if (txojLogger.aitLogger.isDebugEnabled())
/*      */     {
/* 1252 */       txojLogger.aitLogger.debug(16L, 1L, 2L, "LockManager::unloadState() unloading " + lockCount + " lock(s)");
/*      */     }
/*      */
/* 1258 */     if (lockCount == 0)
/*      */     {
/* 1260 */       if (this.lockStore.remove_state(u, otype))
/*      */       {
/* 1262 */         unloadOk = true;
/*      */       }
/* 1266 */       else if (txojLogger.aitLoggerI18N.isWarnEnabled())
/*      */       {
/* 1268 */         txojLogger.aitLoggerI18N.warn("com.arjuna.ats.txoj.LockManager_10", new Object[] { u, otype });
/*      */       }
/*      */
/*      */     }
/*      */     else
/*      */     {
/*      */       try
/*      */       {
/* 1279 */         S.packInt(lockCount);
/*      */
/* 1281 */         while ((current = this.locksHeld.pop()) != null)
/*      */         {
/* 1283 */           current.get_uid().pack(S);
/*      */
/* 1285 */           if (!current.save_state(S, 1))
/*      */           {
/* 1287 */             if (txojLogger.aitLoggerI18N.isWarnEnabled())
/*      */             {
/* 1289 */               txojLogger.aitLoggerI18N.warn("com.arjuna.ats.txoj.LockManager_11", new Object[] { current });
/*      */             }
/*      */
/* 1292 */             unloadOk = false;
/*      */           }
/*      */
/* 1295 */           current = null;
/*      */         }
/*      */
/* 1298 */         if (unloadOk)
/*      */         {
/* 1302 */           if ((S.valid()) && (this.lockStore.write_committed(u, otype, S)))
/*      */           {
/* 1304 */             unloadOk = true;
/*      */           }
/* 1308 */           else if (txojLogger.aitLoggerI18N.isWarnEnabled())
/*      */           {
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

/* 350 */     int result = 1;
/* 351 */     StateManager sm = this.objectAddr;
/*     */
/* 353 */     if ((sm != null) && (this.store != null))
/*     */     {
/* 355 */       this.topLevelState = new OutputObjectState(sm.get_uid(), sm.type());
/*     */
/* 357 */       if ((writeOptimisation) || ((!this.store.fullCommitNeeded()) && (sm.save_state(this.topLevelState, 1)) && (this.topLevelState.size() <= 4096)))
/*     */       {
/* 361 */         if (classicPrepare)
/*     */         {
/* 363 */           OutputObjectState dummy = new OutputObjectState(Uid.nullUid(), null);
/*     */           try
/*     */           {
/* 374 */             this.store.write_uncommitted(sm.get_uid(), sm.type(), dummy);
/* 375 */             result = 0;
/*     */           }
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

/* 468 */         this.store.unpack(os);
/* 469 */         this.shadowMade = os.unpackBoolean();
/*     */
/* 473 */         if (!this.shadowMade)
/*     */         {
/* 475 */           this.topLevelState = new OutputObjectState(os);
/* 476 */           res = this.topLevelState.valid();
/*     */         }
/*     */         else {
/* 479 */           res = true;
/*     */         }
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

/*  452 */       setupStore(rootName);
/*      */
/*  454 */       if ((this.currentStatus == 3) || (this.currentStatus == 2))
/*      */       {
/*  456 */         String tn = type();
/*  457 */         OutputObjectState newState = new OutputObjectState(this.objectUid, tn);
/*      */
/*  464 */         if (save_state(newState, this.myType))
/*      */         {
/*      */           try
/*      */           {
View Full Code Here

Examples of com.arjuna.ats.arjuna.state.OutputObjectState

/*      */         }
/*      */
/*  994 */         this.modifyingActions.put(action.get_uid(), action);
/*      */       }
/*      */
/*  999 */       OutputObjectState state = new OutputObjectState(this.objectUid, type());
/* 1000 */       int rStatus = 2;
/*      */
/* 1002 */       if (save_state(state, 0))
/*      */       {
/* 1004 */         if ((this.myType == 0) && (this.smAttributes.objectModel == 0))
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.