Package org.apache.derby.iapi.store.raw.log

Examples of org.apache.derby.iapi.store.raw.log.LogInstant


    File oldbackup = null;
    File backupcopy = null;
    OutputStreamWriter historyFile = null;
        StorageFile dbHistoryFile = null;
        File backupHistoryFile = null;
    LogInstant backupInstant = logFactory.getFirstUnflushedInstant();
       
    try
    {
      // get name of the current db, ie. database directory of current db.
      StorageFile dbase           = storageFactory.newStorageFile(null);
View Full Code Here


    if (state == ACTIVE)
      setUpdateState();

    seenUpdates = true;
   
    LogInstant clrInstant = logger.logAndUndo(this, compensation, undoInstant, in);

    setLastLogInstant(clrInstant);

    // set the top savepoint to rollback to this record if it doesn't yet have a point saved
    if ((savePoints != null) && !savePoints.empty()) {
View Full Code Here

   * @see Transaction#commit
     **/
  private LogInstant prepareCommit(int commitflag)
        throws StandardException
    {
    LogInstant flushTo = null;

    if (state == CLOSED)
        {
      throw StandardException.newException(
                    SQLState.XACT_PROTOCOL_VIOLATION);
View Full Code Here

    {
      if (SanityManager.DEBUG_ON("XATrace"))
        SanityManager.DEBUG("XATrace","commiting ");
    }

        LogInstant flushTo = prepareCommit(commitflag);

        completeCommit(commitflag);

        return(flushTo);
  }
View Full Code Here

      @exception StandardException  Standard Derby exception policy
    @see Transaction#logAndDo
  */
  public void logAndDo(Loggable operation) throws StandardException {

    LogInstant instant = null;

    if (logger == null)
      getLogger();

    if (logger == null)
View Full Code Here

    if (release) {
      savePoints.setSize(position);
      return false;
    }

    LogInstant rollbackTo = null;

    int size = savePoints.size();
    for (int i = position; i < size; i++) {
      SavePoint rollbackSavePoint = (SavePoint) savePoints.elementAt(i);

      LogInstant li = rollbackSavePoint.getSavePoint();
      if (li != null) {
        rollbackTo = li;
        break;
      }
    }
View Full Code Here

    DataFactory         df,
    TransactionFactory  tf,
    boolean             wait)
     throws StandardException
  {
    LogInstant  redoLWM;

        // we may be called to stop the database after a bad error, make sure
    // logout is set
    if (logOut == null)
    {
View Full Code Here

                 DataFactory df,
                 TransactionFactory tf)
     throws StandardException
  {
    boolean proceed = true;
    LogInstant redoLWM;

    // we may be called to stop the database after a bad error, make sure
    // logout is set
    if (logOut == null)
    {
View Full Code Here

      synchronized(droppedTableStubInfo)
      {
        for (Enumeration e = droppedTableStubInfo.keys();
                     e.hasMoreElements(); )
        {
          LogInstant logInstant  = (LogInstant) e.nextElement();
          if(logInstant.lessThan(redoLWM))
          {
           
            Object[] removeInfo =
                            (Object[]) droppedTableStubInfo.get(logInstant);
            Object identity = removeInfo[1];
View Full Code Here

      synchronized(droppedTableStubInfo)
      {
        for (Enumeration e = droppedTableStubInfo.keys();
                     e.hasMoreElements(); )
        {
          LogInstant logInstant  = (LogInstant) e.nextElement();
          if(logInstant.lessThan(redoLWM))
          {
           
            Object[] removeInfo =
                            (Object[]) droppedTableStubInfo.get(logInstant);
            Object identity = removeInfo[1];
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.store.raw.log.LogInstant

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.