public class ConfPersister extends Object
| Constructor and Description |
|---|
ConfPersister(CoreFileSystem coreFS,
org.apache.hadoop.fs.Path persistDir) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.fs.Path |
getPersistDir()
Get the target directory
|
void |
load(AggregateConf conf)
Load the configuration.
|
void |
mkPersistDir()
Make the persistent directory
|
void |
save(AggregateConf conf,
LockHeldAction action)
Save the configuration
|
String |
toString() |
public ConfPersister(CoreFileSystem coreFS, org.apache.hadoop.fs.Path persistDir)
public org.apache.hadoop.fs.Path getPersistDir()
public void mkPersistDir()
throws IOException
IOException - IO failurepublic void save(AggregateConf conf, LockHeldAction action) throws IOException, SliderException, LockAcquireFailedException
conf - configuration to fill inaction - IOException - IO problemsLockAcquireFailedException - the lock could not be acquiredSliderExceptionpublic void load(AggregateConf conf) throws FileNotFoundException, IOException, SliderException, LockAcquireFailedException
conf - configuration to fill inIOException - IO problemsLockAcquireFailedException - the lock could not be acquiredFileNotFoundExceptionSliderExceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.