| Package | Description |
|---|---|
| io.atomix.copycat.server.storage |
Standalone segmented log for Copycat's Raft implementation.
|
| io.atomix.copycat.server.storage.compaction |
Classes and interfaces that facilitate compaction of the Copycat
log. |
| Modifier and Type | Method and Description |
|---|---|
Segment |
SegmentManager.createSegment(SegmentDescriptor descriptor)
Creates a new segment.
|
Segment |
SegmentManager.currentSegment()
Returns the current segment.
|
Segment |
SegmentManager.firstSegment()
Returns the first segment in the log.
|
Segment |
Segment.flush()
Flushes the segment buffers to disk.
|
Segment |
SegmentManager.lastSegment()
Returns the last segment in the log.
|
Segment |
SegmentManager.loadSegment(long segmentId,
long segmentVersion)
Loads a segment.
|
Segment |
SegmentManager.nextSegment()
Creates and returns the next segment.
|
Segment |
SegmentManager.segment(long index)
Returns the segment for the given index.
|
Segment |
Segment.skip(long entries)
Skips a number of entries in the segment.
|
Segment |
Segment.truncate(long index)
Truncates entries after the given index.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Segment> |
SegmentManager.reverseSegments()
Returns the collection of segments in reverse order.
|
Collection<Segment> |
SegmentManager.segments()
Returns the collection of segments.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SegmentManager.removeSegment(Segment segment)
Removes a segment.
|
void |
SegmentManager.replaceSegments(Collection<Segment> segments,
Segment segment)
Inserts a segment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SegmentManager.replaceSegments(Collection<Segment> segments,
Segment segment)
Inserts a segment.
|
| Modifier and Type | Method and Description |
|---|---|
List<List<Segment>> |
MajorCompactionManager.getCompactableGroups(Storage storage,
SegmentManager manager)
Returns a list of segments lists to compact, where segments are grouped according to how they will be merged during
compaction.
|
Copyright © 2013–2016. All rights reserved.