public class DfsLogger extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DfsLogger.DFSLoggerInputStreams |
static class |
DfsLogger.LogClosedException |
static class |
DfsLogger.LogHeaderIncompleteException
A well-timed tabletserver failure could result in an incomplete header written to a write-ahead log.
|
static interface |
DfsLogger.ServerResources |
| Modifier and Type | Field and Description |
|---|---|
static String |
LOG_FILE_HEADER_V2 |
static String |
LOG_FILE_HEADER_V3 |
| Constructor and Description |
|---|
DfsLogger(DfsLogger.ServerResources conf,
AtomicLong syncCounter,
AtomicLong flushCounter) |
DfsLogger(DfsLogger.ServerResources conf,
String filename,
String meta)
Reference a pre-existing log file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
defineTablet(int seq,
int tid,
KeyExtent tablet) |
boolean |
equals(Object obj) |
String |
getFileName() |
String |
getLogger() |
String |
getMeta()
get the cq needed to reference this logger's entry in +r/!0
|
int |
hashCode() |
org.apache.accumulo.tserver.log.DfsLogger.LoggerOperation |
log(int seq,
int tid,
Mutation mutation,
Durability durability) |
org.apache.accumulo.tserver.log.DfsLogger.LoggerOperation |
logManyTablets(List<TabletMutations> mutations) |
org.apache.accumulo.tserver.log.DfsLogger.LoggerOperation |
minorCompactionFinished(int seq,
int tid,
String fqfn,
Durability durability) |
org.apache.accumulo.tserver.log.DfsLogger.LoggerOperation |
minorCompactionStarted(int seq,
int tid,
String fqfn,
Durability durability) |
void |
open(String address) |
static DfsLogger.DFSLoggerInputStreams |
readHeaderAndReturnStream(VolumeManager fs,
org.apache.hadoop.fs.Path path,
AccumuloConfiguration conf) |
String |
toString() |
public static final String LOG_FILE_HEADER_V2
public static final String LOG_FILE_HEADER_V3
public DfsLogger(DfsLogger.ServerResources conf, AtomicLong syncCounter, AtomicLong flushCounter) throws IOException
IOExceptionpublic DfsLogger(DfsLogger.ServerResources conf, String filename, String meta) throws IOException
meta - the cq for the "log" entry in +r/!0IOExceptionpublic static DfsLogger.DFSLoggerInputStreams readHeaderAndReturnStream(VolumeManager fs, org.apache.hadoop.fs.Path path, AccumuloConfiguration conf) throws IOException
IOExceptionpublic void open(String address) throws IOException
IOExceptionpublic String getMeta()
public String getFileName()
public void close()
throws IOException
IOExceptionpublic void defineTablet(int seq,
int tid,
KeyExtent tablet)
throws IOException
IOExceptionpublic org.apache.accumulo.tserver.log.DfsLogger.LoggerOperation log(int seq,
int tid,
Mutation mutation,
Durability durability)
throws IOException
IOExceptionpublic org.apache.accumulo.tserver.log.DfsLogger.LoggerOperation logManyTablets(List<TabletMutations> mutations) throws IOException
IOExceptionpublic org.apache.accumulo.tserver.log.DfsLogger.LoggerOperation minorCompactionFinished(int seq,
int tid,
String fqfn,
Durability durability)
throws IOException
IOExceptionpublic org.apache.accumulo.tserver.log.DfsLogger.LoggerOperation minorCompactionStarted(int seq,
int tid,
String fqfn,
Durability durability)
throws IOException
IOExceptionpublic String getLogger()
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.