Package org.apache.accumulo.server
Class ServerDirs
- java.lang.Object
-
- org.apache.accumulo.server.ServerDirs
-
public class ServerDirs extends Object
Class that holds important server Directories. These need to be separate fromServerInfo
for bootstrapping during initialization.
-
-
Constructor Summary
Constructors Constructor Description ServerDirs(AccumuloConfiguration conf, org.apache.hadoop.conf.Configuration hadoopConf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
checkBaseUris(org.apache.hadoop.conf.Configuration hadoopConf, Set<String> configuredBaseDirs, boolean ignore)
int
getAccumuloPersistentVersion(Volume v)
int
getAccumuloPersistentVersion(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path)
Set<String>
getBaseUris()
org.apache.hadoop.fs.Path
getDataVersionLocation(Volume v)
org.apache.hadoop.fs.Path
getInstanceIdLocation(Volume v)
Set<String>
getRecoveryDirs()
Set<String>
getTablesDirs()
List<Pair<org.apache.hadoop.fs.Path,org.apache.hadoop.fs.Path>>
getVolumeReplacements()
-
-
-
Constructor Detail
-
ServerDirs
public ServerDirs(AccumuloConfiguration conf, org.apache.hadoop.conf.Configuration hadoopConf)
-
-
Method Detail
-
checkBaseUris
public Set<String> checkBaseUris(org.apache.hadoop.conf.Configuration hadoopConf, Set<String> configuredBaseDirs, boolean ignore)
-
getVolumeReplacements
public List<Pair<org.apache.hadoop.fs.Path,org.apache.hadoop.fs.Path>> getVolumeReplacements()
-
getDataVersionLocation
public org.apache.hadoop.fs.Path getDataVersionLocation(Volume v)
-
getAccumuloPersistentVersion
public int getAccumuloPersistentVersion(Volume v)
-
getAccumuloPersistentVersion
public int getAccumuloPersistentVersion(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path)
-
getInstanceIdLocation
public org.apache.hadoop.fs.Path getInstanceIdLocation(Volume v)
-
-