public abstract class AbstractCommitLogSegmentManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
abstract CommitLogSegment.Allocation |
allocate(Mutation mutation,
int size)
Allocate a segment within this CLSM.
|
void |
awaitTermination()
Returns when the management thread terminates.
|
java.util.Collection<CommitLogSegment> |
getActiveSegments() |
long |
onDiskSize() |
void |
shutdown()
Initiates the shutdown process for the management thread.
|
void |
stopUnsafe(boolean deleteSegments)
Stops CL, for testing purposes.
|
void |
sync()
Forces a disk flush on the commit log files that need it.
|
protected final CommitLog commitLog
public abstract CommitLogSegment.Allocation allocate(Mutation mutation, int size)
public long onDiskSize()
public void stopUnsafe(boolean deleteSegments)
public void shutdown()
public void awaitTermination() throws java.lang.InterruptedException
java.lang.InterruptedException
public java.util.Collection<CommitLogSegment> getActiveSegments()
public void sync() throws java.io.IOException
java.io.IOException
Copyright © 2017 The Apache Software Foundation