public class TabletServerLogger extends Object
| Constructor and Description |
|---|
TabletServerLogger(TabletServer tserver,
long maxSize,
AtomicLong syncCounter,
AtomicLong flushCounter,
RetryFactory retryFactory,
long maxAge) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeForReplication(Collection<CommitSession> sessions) |
int |
defineTablet(CommitSession commitSession) |
void |
getLogFiles(Set<String> loggersOut) |
int |
log(CommitSession commitSession,
int tabletSeq,
Mutation m,
Durability durability) |
int |
logManyTablets(Map<CommitSession,Mutations> mutations) |
void |
minorCompactionFinished(CommitSession commitSession,
String fullyQualifiedFileName,
int walogSeq,
Durability durability) |
int |
minorCompactionStarted(CommitSession commitSession,
int 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, RetryFactory retryFactory, long maxAge)
protected void closeForReplication(Collection<CommitSession> sessions)
public int defineTablet(CommitSession commitSession) throws IOException
IOExceptionpublic int log(CommitSession commitSession, int tabletSeq, Mutation m, Durability durability) throws IOException
IOExceptionpublic int logManyTablets(Map<CommitSession,Mutations> mutations) throws IOException
IOExceptionpublic void minorCompactionFinished(CommitSession commitSession, String fullyQualifiedFileName, int walogSeq, Durability durability) throws IOException
IOExceptionpublic int minorCompactionStarted(CommitSession commitSession, int 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–2017 The Apache Software Foundation. All rights reserved.