public class CommitLogSegmentManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
org.apache.cassandra.db.commitlog.CommitLogSegment.Allocation |
allocate(Mutation mutation,
int size)
Reserve space in the current segment for the provided mutation or, if there isn't space available,
create a new segment.
|
void |
awaitTermination()
Returns when the management thread terminates.
|
java.util.Collection<CommitLogSegment> |
getActiveSegments() |
boolean |
manages(java.lang.String name) |
long |
onDiskSize() |
void |
shutdown()
Initiates the shutdown process for the management thread.
|
void |
stopUnsafe(boolean deleteSegments)
Stops CL, for testing purposes.
|
public org.apache.cassandra.db.commitlog.CommitLogSegment.Allocation allocate(Mutation mutation, int size)
public long onDiskSize()
public boolean manages(java.lang.String name)
name
- the filename to checkpublic void stopUnsafe(boolean deleteSegments)
public void shutdown()
public void awaitTermination() throws java.lang.InterruptedException
java.lang.InterruptedException
public java.util.Collection<CommitLogSegment> getActiveSegments()
Copyright © 2020 The Apache Software Foundation