Package org.apache.accumulo.server
Class ServerConstants
- java.lang.Object
-
- org.apache.accumulo.server.ServerConstants
-
public class ServerConstants extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static BitSet
CAN_UPGRADE
static int
DATA_VERSION
this is the current data versionstatic String
FILE_ARCHIVE_DIR
static String
INSTANCE_ID_DIR
static int
LOGGING_TO_HDFS
version (4) moves logging to HDFS in 1.5.0static int
MOVE_DELETE_MARKERS
version (5) moves delete file markers for the metadata table into the root tabletstatic int
MOVE_TO_REPLICATION_TABLE
version (7) also reflects the addition of a replication tablestatic int
MOVE_TO_ROOT_TABLE
version (6) reflects the addition of a separate root table (ACCUMULO-1481) in version 1.6.0static BitSet
NEEDS_UPGRADE
static String
RECOVERY_DIR
static int
SHORTEN_RFILE_KEYS
version (8) reflects changes to RFile index (ACCUMULO-1124) in version 1.8.0static String
TABLE_DIR
static String
VERSION_DIR
static String
WAL_DIR
static String
WALOG_ARCHIVE_DIR
static Integer
WIRE_VERSION
current version (3) reflects additional namespace operations (ACCUMULO-802) in version 1.6.0
(versions should never be negative)
-
Constructor Summary
Constructors Constructor Description ServerConstants()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]
checkBaseUris(String[] configuredBaseDirs, boolean ignore)
static String[]
getBaseUris()
static org.apache.hadoop.fs.Path
getDataVersionLocation(Volume v)
static org.apache.hadoop.fs.Path
getInstanceIdLocation(Volume v)
static String[]
getRecoveryDirs()
static String[]
getTablesDirs()
static List<Pair<org.apache.hadoop.fs.Path,org.apache.hadoop.fs.Path>>
getVolumeReplacements()
static String[]
getWalDirs()
static String[]
getWalogArchives()
-
-
-
Field Detail
-
VERSION_DIR
public static final String VERSION_DIR
- See Also:
- Constant Field Values
-
INSTANCE_ID_DIR
public static final String INSTANCE_ID_DIR
- See Also:
- Constant Field Values
-
WIRE_VERSION
public static final Integer WIRE_VERSION
current version (3) reflects additional namespace operations (ACCUMULO-802) in version 1.6.0
(versions should never be negative)
-
SHORTEN_RFILE_KEYS
public static final int SHORTEN_RFILE_KEYS
version (8) reflects changes to RFile index (ACCUMULO-1124) in version 1.8.0- See Also:
- Constant Field Values
-
MOVE_TO_REPLICATION_TABLE
public static final int MOVE_TO_REPLICATION_TABLE
version (7) also reflects the addition of a replication table- See Also:
- Constant Field Values
-
DATA_VERSION
public static final int DATA_VERSION
this is the current data version- See Also:
- Constant Field Values
-
MOVE_TO_ROOT_TABLE
public static final int MOVE_TO_ROOT_TABLE
version (6) reflects the addition of a separate root table (ACCUMULO-1481) in version 1.6.0- See Also:
- Constant Field Values
-
MOVE_DELETE_MARKERS
public static final int MOVE_DELETE_MARKERS
version (5) moves delete file markers for the metadata table into the root tablet- See Also:
- Constant Field Values
-
LOGGING_TO_HDFS
public static final int LOGGING_TO_HDFS
version (4) moves logging to HDFS in 1.5.0- See Also:
- Constant Field Values
-
CAN_UPGRADE
public static final BitSet CAN_UPGRADE
-
NEEDS_UPGRADE
public static final BitSet NEEDS_UPGRADE
-
TABLE_DIR
public static final String TABLE_DIR
- See Also:
- Constant Field Values
-
RECOVERY_DIR
public static final String RECOVERY_DIR
- See Also:
- Constant Field Values
-
WAL_DIR
public static final String WAL_DIR
- See Also:
- Constant Field Values
-
WALOG_ARCHIVE_DIR
public static final String WALOG_ARCHIVE_DIR
- See Also:
- Constant Field Values
-
FILE_ARCHIVE_DIR
public static final String FILE_ARCHIVE_DIR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBaseUris
public static String[] getBaseUris()
-
getTablesDirs
public static String[] getTablesDirs()
-
getRecoveryDirs
public static String[] getRecoveryDirs()
-
getWalDirs
public static String[] getWalDirs()
-
getWalogArchives
public static String[] getWalogArchives()
-
getInstanceIdLocation
public static org.apache.hadoop.fs.Path getInstanceIdLocation(Volume v)
-
getDataVersionLocation
public static org.apache.hadoop.fs.Path getDataVersionLocation(Volume v)
-
-