@InterfaceAudience.Private public final class FileArchiverNotifierFactoryImpl extends Object implements FileArchiverNotifierFactory
FileArchiverNotifier
.Modifier and Type | Class and Description |
---|---|
(package private) static class |
FileArchiverNotifierFactoryImpl.CacheKey |
Modifier and Type | Field and Description |
---|---|
private ConcurrentHashMap<TableName,FileArchiverNotifier> |
CACHE |
private static FileArchiverNotifierFactory |
CURRENT_INSTANCE |
private static FileArchiverNotifierFactoryImpl |
DEFAULT_INSTANCE |
Modifier | Constructor and Description |
---|---|
private |
FileArchiverNotifierFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
FileArchiverNotifier |
get(Connection conn,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
TableName tn)
Returns the
FileArchiverNotifier instance for the given TableName . |
int |
getCacheSize() |
static FileArchiverNotifierFactory |
getInstance() |
(package private) static void |
reset() |
(package private) static void |
setInstance(FileArchiverNotifierFactory inst) |
private static final FileArchiverNotifierFactoryImpl DEFAULT_INSTANCE
private static volatile FileArchiverNotifierFactory CURRENT_INSTANCE
private final ConcurrentHashMap<TableName,FileArchiverNotifier> CACHE
private FileArchiverNotifierFactoryImpl()
public static FileArchiverNotifierFactory getInstance()
static void setInstance(FileArchiverNotifierFactory inst)
static void reset()
public FileArchiverNotifier get(Connection conn, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, TableName tn)
FileArchiverNotifier
instance for the given TableName
.get
in interface FileArchiverNotifierFactory
tn
- The table to obtain a notifier fortablename
.public int getCacheSize()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.