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 org.apache.hadoop.io.Text |
switchRootTabletVolume(KeyExtent extent,
org.apache.hadoop.io.Text 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 org.apache.hadoop.io.Text switchRootTabletVolume(KeyExtent extent, org.apache.hadoop.io.Text location) throws IOException
IOException
public static VolumeUtil.TabletFiles updateTabletVolumes(AccumuloServerContext context, ZooLock zooLock, VolumeManager vm, KeyExtent extent, VolumeUtil.TabletFiles tabletFiles, boolean replicate) throws IOException
IOException
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.