Package com.arjuna.ats.arjuna.exceptions

Examples of com.arjuna.ats.arjuna.exceptions.ObjectStoreException


     
      Uid.nullUid().pack(state);
    }
    catch (final IOException ex)
    {
      throw new ObjectStoreException(ex);
    }

    return new InputObjectState(state);
  }
View Full Code Here


         * Not a number at start of file.
         */
          }
          catch (IOException e)
          {
        throw new ObjectStoreException(tsLogger.log_mesg.getString("com.arjuna.ats.internal.arjuna.objectstore.HashedStore_5"));
          }
      }
        }
    }
    else
    {
        // ignore
    }
      }
  }

  /* terminate list */

  try
  {
      Uid.nullUid().pack(store);
  }
  catch (IOException e)
  {
      throw new ObjectStoreException(tsLogger.log_mesg.getString("com.arjuna.ats.internal.arjuna.objectstore.HashedStore_6"));
  }

  state.setBuffer(store.buffer());

  store = null;
View Full Code Here

    }
   
    public void remove() throws ObjectStoreException
    {
        if (!getStore().remove_committed(getSavingUid(), type()))
            throw new ObjectStoreException();
    }
View Full Code Here

      }
      else
    result = true;
  }
  else
      throw new ObjectStoreException("ShadowStore::commit_state - "+tsLogger.log_mesg.getString("com.arjuna.ats.internal.arjuna.objectstore.notypenameuid")+objUid);

  return result;
    }
View Full Code Here

        }
        catch (FileNotFoundException e)
        {
      closeAndUnlock(fd, ifile, null);
     
      throw new ObjectStoreException("ShadowingStore::read_state error: "+e);
        }

        /* now try to read the actual image out of the store */

        try
        {
      if ((buffer != null) && (ifile.read(buffer, 0, imageSize) == imageSize))
      {
          new_image = new InputObjectState(objUid, tName, buffer);
      }
      else {
          tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.ShadowingStore_7");
      }
        }
        catch (IOException e)
        {
      closeAndUnlock(fd, ifile, null);
     
      throw new ObjectStoreException("ShadowingStore::read_state failed: "+e);
        }
       
        if (!closeAndUnlock(fd, ifile, null))
        {
      if (tsLogger.arjLoggerI18N.isWarnEnabled()){
          tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.ShadowingStore_8",
              new Object[]{fname});
      }
        }
    }
      }
  }
  else
      throw new ObjectStoreException("ShadowStore::read_state - "+tsLogger.log_mesg.getString("com.arjuna.ats.internal.arjuna.objectstore.notypenameuid")+objUid);

  return new_image;
    }
View Full Code Here

    }
    catch (SyncFailedException e)
    {
        closeAndUnlock(fd, null, ofile);
       
        throw new ObjectStoreException("ShadowingStore::write_state() - write failed to sync for "+fname);
    }
    catch (FileNotFoundException e)
    {
        closeAndUnlock(fd, null, ofile);

        e.printStackTrace();
       
        throw new ObjectStoreException("ShadowingStore::write_state() - write failed to locate file "+fname+": "+e);
    }
    catch (IOException e)
    {
        closeAndUnlock(fd, null, ofile);

        e.printStackTrace();
       
        throw new ObjectStoreException("ShadowingStore::write_state() - write failed for "+fname+": "+e);
    }
      }
     
      if (!closeAndUnlock(fd, null, ofile))
      {
    if (tsLogger.arjLoggerI18N.isWarnEnabled())
    {
        tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.ShadowingStore_19",
            new Object[]{fname});
    }
      }

      super.addToCache(fname);
     
      return true;
  }
  else
      throw new ObjectStoreException("ShadowStore::write_state - "+tsLogger.log_mesg.getString("com.arjuna.ats.internal.arjuna.objectstore.notypenameuid")+objUid);
    }
View Full Code Here

     *         otherwise.
     */

    public boolean allObjUids(String s, InputObjectState buff, int m) throws ObjectStoreException
    {
        throw new ObjectStoreException("Operation not supported by this implementation");
    }
View Full Code Here

     *         otherwise.
     */

    public boolean allTypes(InputObjectState buff) throws ObjectStoreException
    {
        throw new ObjectStoreException("Operation not supported by this implementation");
    }
View Full Code Here

     *         otherwise.
     */

    public synchronized boolean commit_state(Uid u, String tn) throws ObjectStoreException
    {
        throw new ObjectStoreException("Operation not supported by this implementation");
    }
View Full Code Here

     *         otherwise.
     */

    public boolean hide_state(Uid u, String tn) throws ObjectStoreException
    {
        throw new ObjectStoreException("Operation not supported by this implementation");
    }
View Full Code Here

TOP

Related Classes of com.arjuna.ats.arjuna.exceptions.ObjectStoreException

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.