public class VolumeUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
VolumeUtil.TabletFiles |
| Constructor and Description |
|---|
VolumeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.fs.Path |
removeTrailingSlash(org.apache.hadoop.fs.Path path) |
static String |
removeTrailingSlash(String path) |
static String |
switchRootTableVolume(String location) |
static String |
switchVolume(String path,
VolumeManager.FileType ft,
List<Pair<org.apache.hadoop.fs.Path,org.apache.hadoop.fs.Path>> replacements) |
static VolumeUtil.TabletFiles |
updateTabletVolumes(AccumuloServerContext context,
ZooLock zooLock,
VolumeManager vm,
KeyExtent extent,
VolumeUtil.TabletFiles tabletFiles,
boolean replicate)
This method does two things.
|
public static org.apache.hadoop.fs.Path removeTrailingSlash(org.apache.hadoop.fs.Path path)
public static String switchVolume(String path, VolumeManager.FileType ft, List<Pair<org.apache.hadoop.fs.Path,org.apache.hadoop.fs.Path>> replacements)
public static String switchRootTableVolume(String location) throws IOException
IOExceptionpublic static VolumeUtil.TabletFiles updateTabletVolumes(AccumuloServerContext context, ZooLock zooLock, VolumeManager vm, KeyExtent extent, VolumeUtil.TabletFiles tabletFiles, boolean replicate) throws IOException
IOExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.