Package com.arjuna.ats.arjuna

Examples of com.arjuna.ats.arjuna.StateManager.type()


         * where crash recovery hasn't run yet.
         */
       
        try
        {
      store.write_uncommitted(sm.get_uid(), sm.type(), dummy);
      result = TwoPhaseOutcome.PREPARE_OK;
        }
        catch (ObjectStoreException e)
        {
      tsLogger.arjLoggerI18N.warn("com.arjuna.ats.arjuna.PersistenceRecord_21",e);
View Full Code Here


      writeToLog = false;
  }
 
  if ((sm != null) && (store != null))
  {
      topLevelState = new OutputObjectState(sm.get_uid(), sm.type());
     
      if (writeToLog || (!store.fullCommitNeeded() &&
             (sm.save_state(topLevelState, ObjectType.ANDPERSISTENT)) &&
             (topLevelState.size() <= PersistenceRecord.MAX_OBJECT_SIZE)))
      {
View Full Code Here

      writeToLog = false;
  }
 
  if ((sm != null) && (store != null))
  {
      topLevelState = new OutputObjectState(sm.get_uid(), sm.type());
     
      if (writeToLog || (!store.fullCommitNeeded() &&
             (sm.save_state(topLevelState, ObjectType.ANDPERSISTENT)) &&
             (topLevelState.size() <= PersistenceRecord.MAX_OBJECT_SIZE)))
      {
View Full Code Here

         * where crash recovery hasn't run yet.
         */
       
        try
        {
      store.write_uncommitted(sm.get_uid(), sm.type(), dummy);
      result = TwoPhaseOutcome.PREPARE_OK;
        }
        catch (ObjectStoreException e)
        {
      tsLogger.arjLoggerI18N.warn("com.arjuna.ats.arjuna.PersistenceRecord_21",e);
View Full Code Here

         * Get ready to create our state to be saved. At this stage we're not
         * sure if the state will go into its own log or be written into the
         * transaction log for improved performance.
         */
       
      topLevelState = new OutputObjectState(sm.get_uid(), sm.type());

      if (writeOptimisation
          && (!store.fullCommitNeeded()
              && (sm.save_state(topLevelState, ObjectType.ANDPERSISTENT)) && (topLevelState.size() <= PersistenceRecord.MAX_OBJECT_SIZE)))
      {
View Full Code Here

           * crash recovery hasn't run yet.
           */

          try
          {
            store.write_uncommitted(sm.get_uid(), sm.type(), dummy);
            result = TwoPhaseOutcome.PREPARE_OK;
          }
          catch (ObjectStoreException e)
          {
            tsLogger.arjLoggerI18N.warn("com.arjuna.ats.arjuna.PersistenceRecord_21", e);
View Full Code Here

/* 164 */       writeToLog = false;
/*     */     }
/*     */
/* 167 */     if ((sm != null) && (this.store != null))
/*     */     {
/* 169 */       this.topLevelState = new OutputObjectState(sm.get_uid(), sm.type());
/*     */
/* 171 */       if ((writeToLog) || ((!this.store.fullCommitNeeded()) && (sm.save_state(this.topLevelState, 1)) && (this.topLevelState.size() <= 4096)))
/*     */       {
/* 175 */         if (PersistenceRecord.classicPrepare)
/*     */         {
View Full Code Here

/* 175 */         if (PersistenceRecord.classicPrepare)
/*     */         {
/* 177 */           OutputObjectState dummy = new OutputObjectState(Uid.nullUid(), null);
/*     */           try
/*     */           {
/* 187 */             this.store.write_uncommitted(sm.get_uid(), sm.type(), dummy);
/* 188 */             result = 0;
/*     */           }
/*     */           catch (ObjectStoreException e)
/*     */           {
/* 192 */             tsLogger.arjLoggerI18N.warn("com.arjuna.ats.arjuna.PersistenceRecord_21", e);
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.