java.lang.Object
com.gigaspaces.internal.server.space.redolog.storage.bytebuffer.StorageSegment

public class StorageSegment extends Object
A single segment inside a ByteBufferRedoLogFileStorage
Since:
7.1
Author:
eitany
  • Constructor Details

  • Method Details

    • getName

      public String getName()
    • getCursorForWriting

      public StorageSegment.SegmentCursor getCursorForWriting()
    • sealWriter

      public void sealWriter()
    • getCursorForReading

      public StorageSegment.SegmentCursor getCursorForReading() throws ByteBufferStorageException
      Throws:
      ByteBufferStorageException
    • clear

      public void clear() throws ByteBufferStorageException
      Throws:
      ByteBufferStorageException
    • getPosition

      public long getPosition()
    • increaseNumOfPackets

      public void increaseNumOfPackets(long numOfPackets)
    • getNumOfPackets

      public long getNumOfPackets()
    • getNumOfDeletedPackets

      public int getNumOfDeletedPackets()
    • delete

      public void delete()
    • decreaseNumOfPackets

      public void decreaseNumOfPackets(long numOfPackets)
    • setUnindexedState

      public void setUnindexedState(int unindexedLength, int unindexedPacketsCount)
    • getUnindexedLength

      public int getUnindexedLength()
    • getUnindexedPackets

      public int getUnindexedPackets()
    • addIndex

      public void addIndex(int packetCountFromLastIndex, long distanceFromLastIndex)
    • adjustReader

      public long adjustReader(IByteBufferStorageCursor reader, long packetPosition)
    • getIndexPosition

      public long getIndexPosition(int packetPosition)
    • searchIndex

      public com.gigaspaces.internal.server.space.redolog.storage.bytebuffer.StorageSegment.Index searchIndex(long packetPosition)
    • increaseWeight

      public void increaseWeight(long weight)
    • decreaseWeight

      public void decreaseWeight(long weight)
    • getWeight

      public long getWeight()