public class StorageSegment extends Object
ByteBufferRedoLogFileStorage
Modifier and Type | Class and Description |
---|---|
class |
StorageSegment.SegmentCursor |
Constructor and Description |
---|
StorageSegment(IByteBufferStorageFactory storageProvider,
IStorageSegmentsMediator segmentsMediator,
int maxReaders) |
Modifier and Type | Method and Description |
---|---|
void |
addIndex(int packetCountFromLastIndex,
long distanceFromLastIndex) |
long |
adjustReader(IByteBufferStorageCursor reader,
long packetPosition) |
void |
clear() |
void |
decreaseNumOfPackets(long numOfPackets) |
void |
decreaseWeight(long weight) |
void |
delete() |
StorageSegment.SegmentCursor |
getCursorForReading() |
StorageSegment.SegmentCursor |
getCursorForWriting() |
long |
getIndexPosition(int packetPosition) |
String |
getName() |
int |
getNumOfDeletedPackets() |
long |
getNumOfPackets() |
long |
getPosition() |
int |
getUnindexedLength() |
int |
getUnindexedPackets() |
long |
getWeight() |
void |
increaseNumOfPackets(long numOfPackets) |
void |
increaseWeight(long weight) |
void |
sealWriter() |
com.gigaspaces.internal.server.space.redolog.storage.bytebuffer.StorageSegment.Index |
searchIndex(long packetPosition) |
void |
setUnindexedState(int unindexedLength,
int unindexedPacketsCount) |
public StorageSegment(IByteBufferStorageFactory storageProvider, IStorageSegmentsMediator segmentsMediator, int maxReaders) throws ByteBufferStorageException
ByteBufferStorageException
public String getName()
public StorageSegment.SegmentCursor getCursorForWriting()
public void sealWriter()
public StorageSegment.SegmentCursor getCursorForReading() throws ByteBufferStorageException
ByteBufferStorageException
public void clear() throws ByteBufferStorageException
ByteBufferStorageException
public long getPosition()
public void increaseNumOfPackets(long numOfPackets)
public long getNumOfPackets()
public int getNumOfDeletedPackets()
public void delete()
public void decreaseNumOfPackets(long numOfPackets)
public void setUnindexedState(int unindexedLength, int unindexedPacketsCount)
public int getUnindexedLength()
public int getUnindexedPackets()
public void addIndex(int packetCountFromLastIndex, long distanceFromLastIndex)
public long adjustReader(IByteBufferStorageCursor reader, long packetPosition)
public long getIndexPosition(int packetPosition)
public com.gigaspaces.internal.server.space.redolog.storage.bytebuffer.StorageSegment.Index searchIndex(long packetPosition)
public void increaseWeight(long weight)
public void decreaseWeight(long weight)
public long getWeight()
Copyright © GigaSpaces.