public class WalStateManager extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
WalStateManager.WalMarkerException |
static class |
WalStateManager.WalState |
| Constructor and Description |
|---|
WalStateManager(Instance instance,
ZooReaderWriter zoo) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewWalMarker(TServerInstance tsi,
org.apache.hadoop.fs.Path path) |
void |
closeWal(TServerInstance instance,
org.apache.hadoop.fs.Path path) |
void |
forget(TServerInstance instance) |
Map<TServerInstance,List<UUID>> |
getAllMarkers() |
Map<org.apache.hadoop.fs.Path,WalStateManager.WalState> |
getAllState() |
List<org.apache.hadoop.fs.Path> |
getWalsInUse(TServerInstance tsi) |
void |
initWalMarker(TServerInstance tsi) |
void |
removeWalMarker(TServerInstance instance,
UUID uuid) |
Pair<WalStateManager.WalState,org.apache.hadoop.fs.Path> |
state(TServerInstance instance,
UUID uuid) |
void |
walUnreferenced(TServerInstance tsi,
org.apache.hadoop.fs.Path path) |
public static final String ZWALS
public WalStateManager(Instance instance, ZooReaderWriter zoo)
public void initWalMarker(TServerInstance tsi) throws WalStateManager.WalMarkerException
public void addNewWalMarker(TServerInstance tsi, org.apache.hadoop.fs.Path path) throws WalStateManager.WalMarkerException
public void walUnreferenced(TServerInstance tsi, org.apache.hadoop.fs.Path path) throws WalStateManager.WalMarkerException
public List<org.apache.hadoop.fs.Path> getWalsInUse(TServerInstance tsi) throws WalStateManager.WalMarkerException
public Map<TServerInstance,List<UUID>> getAllMarkers() throws WalStateManager.WalMarkerException
public Pair<WalStateManager.WalState,org.apache.hadoop.fs.Path> state(TServerInstance instance, UUID uuid) throws WalStateManager.WalMarkerException
public Map<org.apache.hadoop.fs.Path,WalStateManager.WalState> getAllState() throws WalStateManager.WalMarkerException
public void removeWalMarker(TServerInstance instance, UUID uuid) throws WalStateManager.WalMarkerException
public void forget(TServerInstance instance) throws WalStateManager.WalMarkerException
public void closeWal(TServerInstance instance, org.apache.hadoop.fs.Path path) throws WalStateManager.WalMarkerException
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.