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

Examples of org.apache.derby.iapi.store.raw.Loggable


    StreamLogScan scan = (StreamLogScan)
      openForwardsScan(checkpointInstant, (LogInstant)null);

    // estimated size of a checkpoint log record, which contains 3 longs
    // and assorted other log record overhead
    Loggable lop = logger.readLogRecord(scan, 100);
               
    scan.close();

    if (lop instanceof CheckpointOperation)
      return (CheckpointOperation)lop;
View Full Code Here


  */
  public void actionAllocatePage(RawTransaction t, BasePage allocPage,
                   long pageNumber, int doStatus, int undoStatus)
     throws StandardException
  {
    Loggable lop = new AllocPageOperation((AllocPage)allocPage, pageNumber, doStatus, undoStatus);

    // mark the page as pre-dirtied so that if a checkpoint happens after
    // the log record is sent to the log stream, the cache cleaning will
    // wait for this change.
    allocPage.preDirty();
View Full Code Here

  */
  public void actionChainAllocPage(RawTransaction t, BasePage allocPage,
                long pageNumber, long pageOffset)
     throws StandardException
  {
    Loggable lop = new ChainAllocPageOperation((AllocPage)allocPage, pageNumber, pageOffset);

    // mark the page as pre-dirtied so that if a checkpoint happens after
    // the log record is sent to the log stream, the cache cleaning will
    // wait for this change.
    allocPage.preDirty();
View Full Code Here

    BasePage        allocPage,
    int             new_highest_page,
    int             num_pages_truncated)
        throws StandardException
    {
    Loggable lop =
            new CompressSpacePageOperation(
                (AllocPage)allocPage, new_highest_page, num_pages_truncated);
        allocPage.preDirty();

        t.logAndDo(lop);
View Full Code Here

    StreamLogScan scan = (StreamLogScan)
      openForwardsScan(checkpointInstant, (LogInstant)null);

    // estimated size of a checkpoint log record, which contains 3 longs
    // and assorted other log record overhead
    Loggable lop = logger.readLogRecord(scan, 100);
               
    scan.close();

    if (lop instanceof CheckpointOperation)
      return (CheckpointOperation)lop;
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.store.raw.Loggable

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.