public class ServerRegionReplicaUtil extends RegionReplicaUtil
RegionReplicaUtil
but for the server sideConstructor and Description |
---|
ServerRegionReplicaUtil() |
Modifier and Type | Method and Description |
---|---|
static HRegionInfo |
getRegionInfoForFs(HRegionInfo regionInfo)
Returns the regionInfo object to use for interacting with the file system.
|
static StoreFileInfo |
getStoreFileInfo(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
HRegionInfo regionInfo,
HRegionInfo regionInfoForFs,
String familyName,
org.apache.hadoop.fs.FileStatus status)
Returns a StoreFileInfo from the given FileStatus.
|
static boolean |
isReadOnly(HRegion region)
Returns whether this region replica can accept writes.
|
static boolean |
shouldReplayRecoveredEdits(HRegion region)
Returns whether to replay the recovered edits to flush the results.
|
getRegionInfoForDefaultReplica, getRegionInfoForReplica, isDefaultReplica, isDefaultReplica, removeNonDefaultRegions
public static HRegionInfo getRegionInfoForFs(HRegionInfo regionInfo)
public static boolean isReadOnly(HRegion region)
region
- the HRegion objectpublic static boolean shouldReplayRecoveredEdits(HRegion region)
region
- the HRegion objectpublic static StoreFileInfo getStoreFileInfo(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, HRegionInfo regionInfo, HRegionInfo regionInfoForFs, String familyName, org.apache.hadoop.fs.FileStatus status) throws IOException
IOException
Copyright © 2015 The Apache Software Foundation. All rights reserved.