Package com.arjuna.ats.arjuna.state

Examples of com.arjuna.ats.arjuna.state.InputObjectState


/*     */     }
/*     */   }
/*     */
/*     */   private final boolean findHoldingTransaction()
/*     */   {
/* 187 */     InputObjectState uncommittedState = null;
/*     */
/* 189 */     this._originalProcessUid = new Uid(Uid.nullUid());
/*     */     try
/*     */     {
/* 193 */       uncommittedState = this._objectStore.read_uncommitted(this._ourUid, this._type);
View Full Code Here


/*     */     }
/*     */
/* 120 */     this._uncommittedTOTable = new Hashtable();
/*     */     try
/*     */     {
/* 124 */       InputObjectState types = new InputObjectState();
/*     */
/* 127 */       if (_objectStore.allTypes(types)) {
/* 128 */         String theName = null;
/*     */         try
/*     */         {
/* 131 */           boolean endOfList = false;
/*     */
/* 133 */           while (!endOfList)
/*     */           {
/* 135 */             theName = types.unpackString();
/*     */
/* 137 */             if (theName.compareTo("") == 0) {
/* 138 */               endOfList = true; continue;
/*     */             }
/* 140 */             InputObjectState uids = new InputObjectState();
/*     */
/* 143 */             if (_objectStore.allObjUids(theName, uids, 2))
/*     */             {
/* 145 */               Uid theUid = new Uid(Uid.nullUid());
/*     */               try
View Full Code Here

/* 292 */     LockStateStore ptr = find(u);
/*     */
/* 294 */     if (ptr == null) {
/* 295 */       return null;
/*     */     }
/* 297 */     return new InputObjectState(ptr._state);
/*     */   }
View Full Code Here

/* 196 */     OutputObjectState state = _storeManager.getState(objUid, ft);
/*     */
/* 198 */     if (state == null) {
/* 199 */       return super.read_state(objUid, tName, ft);
/*     */     }
/* 201 */     return new InputObjectState(state);
/*     */   }
View Full Code Here

/*  526 */         tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.ShadowingStore_6");
/*      */       }
/*  528 */       return null;
/*      */     }
/*      */
/*  531 */     InputObjectState new_image = null;
/*      */
/*  533 */     if (tName != null)
/*      */     {
/*  535 */       int state = currentState(objUid, tName);
/*      */
/*  537 */       if ((state == 1) || (state == 2))
/*      */       {
/*  544 */         if (((state == 1) && (ft != 11)) || ((state == 2) && (ft != 10)))
/*      */         {
/*  547 */           return null;
/*      */         }
/*      */
/*  550 */         String fname = genPathName(objUid, tName, ft);
/*  551 */         File fd = openAndLock(fname, 0, false);
/*      */
/*  553 */         if (fd != null)
/*      */         {
/*  555 */           int imageSize = (int)fd.length();
/*  556 */           byte[] buffer = new byte[imageSize];
/*  557 */           FileInputStream ifile = null;
/*      */           try
/*      */           {
/*  561 */             ifile = new FileInputStream(fd);
/*      */           }
/*      */           catch (FileNotFoundException e)
/*      */           {
/*  565 */             closeAndUnlock(fd, ifile, null);
/*      */
/*  567 */             throw new ObjectStoreException("ShadowingStore::read_state error: " + e);
/*      */           }
/*      */
/*      */           try
/*      */           {
/*  574 */             if ((buffer != null) && (ifile.read(buffer, 0, imageSize) == imageSize))
/*      */             {
/*  576 */               new_image = new InputObjectState(objUid, tName, buffer);
/*      */             }
/*      */             else {
/*  579 */               tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.ShadowingStore_7");
/*      */             }
/*      */           }
View Full Code Here

/*     */
/*     */   public void periodicWorkFirstPass()
/*     */   {
/*  91 */     boolean AtomicActions = false;
/*     */
/*  94 */     InputObjectState aa_uids = new InputObjectState();
/*     */     try
/*     */     {
/*  98 */       if (tsLogger.arjLogger.isInfoEnabled())
/*     */       {
/* 100 */         tsLogger.arjLogger.info("StatusModule: first pass ");
View Full Code Here

/*  91 */       tsLogger.arjLoggerI18N.debug(16L, 4L, 2048L, "com.arjuna.ats.internal.arjuna.recovery.ExpiredTransactionStatusManagerScanner_2", new Object[] { _timeFormat.format(oldestSurviving) });
/*     */     }
/*     */
/*     */     try
/*     */     {
/*  99 */       InputObjectState uids = new InputObjectState();
/*     */
/* 102 */       if (this._objectStore.allObjUids(this._itemTypeName, uids))
/*     */       {
/* 104 */         Uid theUid = new Uid(Uid.nullUid());
/*     */
View Full Code Here

/*     */   private boolean restoreThis()
/*     */   {
/* 194 */     boolean ret_status = false;
/*     */     try
/*     */     {
/* 198 */       InputObjectState objstate = getStore().read_committed(this._pidUid, _typeName);
/*     */
/* 201 */       if (restore_state(objstate))
/*     */       {
/* 203 */         return ret_status = 1;
/*     */       }
View Full Code Here

/*   96 */     if (jtaLogger.loggerI18N.isInfoEnabled())
/*      */     {
/*   98 */       jtaLogger.loggerI18N.info("com.arjuna.ats.internal.jta.recovery.info.firstpass", new Object[] { this._logName });
/*      */     }
/*      */
/*  104 */     this._uids = new InputObjectState();
/*      */     try
/*      */     {
/*  112 */       if (!this._objStore.allObjUids(this._recoveryManagerClass.type(), this._uids))
/*      */       {
/*  114 */         if (jtaLogger.loggerI18N.isWarnEnabled())
View Full Code Here

    Xid[] indoubt = null;

    try
    {
      ObjectStore objStore = new ObjectStore(TxControl.getActionStoreType());
      InputObjectState states = new InputObjectState();

      // only look in the JCA section of the object store

      if (objStore.allObjUids(SubordinateAtomicAction.getType(), states) && (states.notempty()))
      {
        Stack values = new Stack();
        boolean finished = false;

        do
View Full Code Here

TOP

Related Classes of com.arjuna.ats.arjuna.state.InputObjectState

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.