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 |
awaitManagementTasksCompletion()
To be used by tests only.
|
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(boolean flush)
Requests commit log files sync themselves, if needed.
|
protected final CommitLog commitLog
public abstract CommitLogSegment.Allocation allocate(Mutation mutation, int size)
public long onDiskSize()
public void stopUnsafe(boolean deleteSegments)
public void awaitManagementTasksCompletion()
public void shutdown()
public void awaitTermination() throws java.lang.InterruptedException
java.lang.InterruptedException
public java.util.Collection<CommitLogSegment> getActiveSegments()
public void sync(boolean flush) throws java.io.IOException
flush
- Request that the sync operation flush the file to disk.java.io.IOException
Copyright © 2009-2021 The Apache Software Foundation