public class InstanceIO extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
InstanceIO() |
| Modifier and Type | Method and Description |
|---|---|
static AggregateConf |
loadInstanceDefinitionUnresolved(CoreFileSystem sliderFileSystem,
org.apache.hadoop.fs.Path clusterDirectory)
Load in an instance definition -but do not resolve it
|
static void |
saveInstanceDefinition(CoreFileSystem coreFS,
org.apache.hadoop.fs.Path dir,
AggregateConf instanceDefinition)
Update a persisted instance definition
|
public static AggregateConf loadInstanceDefinitionUnresolved(CoreFileSystem sliderFileSystem, org.apache.hadoop.fs.Path clusterDirectory) throws IOException, SliderException
sliderFileSystem - filesystemclusterDirectory - CDIOExceptionSliderExceptionBadClusterStateException - if a lock could not be acquiredpublic static void saveInstanceDefinition(CoreFileSystem coreFS, org.apache.hadoop.fs.Path dir, AggregateConf instanceDefinition) throws SliderException, IOException, LockAcquireFailedException
coreFS - filesystemdir - directory to load frominstanceDefinition - instance definition to save doSliderExceptionIOExceptionLockAcquireFailedExceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.