public class TabletServerLogger extends Object
| Constructor and Description |
|---|
TabletServerLogger(TabletServer tserver,
long maxSize,
AtomicLong syncCounter,
AtomicLong flushCounter,
Retry.RetryFactory createRetryFactory,
Retry.RetryFactory writeRetryFactory,
long maxAge) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeForReplication(Collection<CommitSession> sessions) |
void |
defineTablet(CommitSession commitSession,
Retry writeRetry) |
void |
getLogFiles(Set<String> loggersOut) |
void |
log(CommitSession commitSession,
long tabletSeq,
Mutation m,
Durability durability) |
void |
logManyTablets(Map<CommitSession,Mutations> mutations) |
void |
minorCompactionFinished(CommitSession commitSession,
String fullyQualifiedFileName,
long walogSeq,
Durability durability) |
long |
minorCompactionStarted(CommitSession commitSession,
long seq,
String fullyQualifiedFileName,
Durability durability) |
void |
recover(VolumeManager fs,
KeyExtent extent,
TableConfiguration tconf,
List<org.apache.hadoop.fs.Path> logs,
Set<String> tabletFiles,
MutationReceiver mr) |
public TabletServerLogger(TabletServer tserver, long maxSize, AtomicLong syncCounter, AtomicLong flushCounter, Retry.RetryFactory createRetryFactory, Retry.RetryFactory writeRetryFactory, long maxAge)
protected void closeForReplication(Collection<CommitSession> sessions)
public void defineTablet(CommitSession commitSession, Retry writeRetry) throws IOException
IOExceptionpublic void log(CommitSession commitSession, long tabletSeq, Mutation m, Durability durability) throws IOException
IOExceptionpublic void logManyTablets(Map<CommitSession,Mutations> mutations) throws IOException
IOExceptionpublic void minorCompactionFinished(CommitSession commitSession, String fullyQualifiedFileName, long walogSeq, Durability durability) throws IOException
IOExceptionpublic long minorCompactionStarted(CommitSession commitSession, long seq, String fullyQualifiedFileName, Durability durability) throws IOException
IOExceptionpublic void recover(VolumeManager fs, KeyExtent extent, TableConfiguration tconf, List<org.apache.hadoop.fs.Path> logs, Set<String> tabletFiles, MutationReceiver mr) throws IOException
IOExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.