public class StoreFileTrackerForTest extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected org.apache.hadoop.conf.Configuration | 
conf  | 
protected org.apache.hadoop.hbase.regionserver.StoreContext | 
ctx  | 
protected boolean | 
isPrimaryReplica  | 
private static org.slf4j.Logger | 
LOG  | 
private String | 
storeId  | 
private static ConcurrentMap<String,BlockingQueue<org.apache.hadoop.hbase.regionserver.StoreFileInfo>> | 
trackedFiles  | 
| Constructor and Description | 
|---|
StoreFileTrackerForTest(org.apache.hadoop.conf.Configuration conf,
                       boolean isPrimaryReplica,
                       org.apache.hadoop.hbase.regionserver.StoreContext ctx)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
add(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0)  | 
static void | 
clear()  | 
org.apache.hadoop.hbase.regionserver.StoreFileWriter | 
createWriter(org.apache.hadoop.hbase.regionserver.CreateStoreFileWriterParams arg0)  | 
protected void | 
doAddCompactionResults(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0,
                      Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg1)  | 
protected void | 
doAddNewStoreFiles(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> newFiles)  | 
protected String | 
getTrackerName()  | 
List<org.apache.hadoop.hbase.regionserver.StoreFileInfo> | 
load()  | 
void | 
replace(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0,
       Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg1)  | 
boolean | 
requireWritingToTmpDirFirst()  | 
void | 
set(List<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0)  | 
static boolean | 
tracked(String encodedRegionName,
       String family,
       org.apache.hadoop.fs.Path file)  | 
org.apache.hadoop.hbase.client.TableDescriptorBuilder | 
updateWithTrackerConfigs(org.apache.hadoop.hbase.client.TableDescriptorBuilder arg0)  | 
private static final org.slf4j.Logger LOG
private static ConcurrentMap<String,BlockingQueue<org.apache.hadoop.hbase.regionserver.StoreFileInfo>> trackedFiles
protected final org.apache.hadoop.conf.Configuration conf
protected final boolean isPrimaryReplica
protected final org.apache.hadoop.hbase.regionserver.StoreContext ctx
public StoreFileTrackerForTest(org.apache.hadoop.conf.Configuration conf, boolean isPrimaryReplica, org.apache.hadoop.hbase.regionserver.StoreContext ctx)
protected void doAddNewStoreFiles(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> newFiles) throws IOException
IOExceptionpublic List<org.apache.hadoop.hbase.regionserver.StoreFileInfo> load() throws IOException
load in interface org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerIOExceptionpublic static boolean tracked(String encodedRegionName, String family, org.apache.hadoop.fs.Path file)
public static void clear()
public boolean requireWritingToTmpDirFirst()
protected void doAddCompactionResults(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0, Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg1) throws IOException
IOExceptionpublic final void add(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0) throws IOException
add in interface org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerIOExceptionpublic final void replace(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0, Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg1) throws IOException
replace in interface org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerIOExceptionpublic org.apache.hadoop.hbase.client.TableDescriptorBuilder updateWithTrackerConfigs(org.apache.hadoop.hbase.client.TableDescriptorBuilder arg0)
updateWithTrackerConfigs in interface org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerprotected final String getTrackerName()
public final org.apache.hadoop.hbase.regionserver.StoreFileWriter createWriter(org.apache.hadoop.hbase.regionserver.CreateStoreFileWriterParams arg0) throws IOException
createWriter in interface org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.