public class HDFSStoreHelper extends Object
HDFSStoreDescription. Methods are thread-safe.
HDFSStores are lazily created by region creation methods in RegionHelper, so the HDFS store creation methods here need only be used
when RegionHelper is not being used to create regions.| Constructor and Description |
|---|
HDFSStoreHelper() |
| Modifier and Type | Method and Description |
|---|---|
static com.gemstone.gemfire.cache.hdfs.HDFSStore |
createHDFSStore(String hdfsStoreConfig)
Creates the HDFS store using the given HDFS store configuration.
|
static com.gemstone.gemfire.cache.hdfs.HDFSStore |
createHDFSStore(String hdfsStoreName,
com.gemstone.gemfire.cache.hdfs.HDFSStoreFactory factory)
Creates the HDFS store with the given name.
|
static com.gemstone.gemfire.cache.hdfs.HDFSStore |
getHDFSStore(String hdfsStoreName) |
static HDFSStoreDescription |
getHDFSStoreDescription(String hdfsStoreConfig)
Returns the
HDFSStoreDescription with the given configuration name
from HDFSStorePrms.names. |
static com.gemstone.gemfire.cache.hdfs.HDFSStoreFactory |
getHDFSStoreFactory(String hdfsStoreConfig)
Returns a HDFS store factory for the given HDFS store configuration from
HDFSStorePrms.names, configured using the corresponding HDFSStoreDescription. |
static String |
hdfsStoreToString(com.gemstone.gemfire.cache.hdfs.HDFSStore hdfsStore)
Returns the given HDFS store as a string.
|
public static com.gemstone.gemfire.cache.hdfs.HDFSStore createHDFSStore(String hdfsStoreConfig)
HDFSStoreDescription corresponding
to the HDFS store configuration from HDFSStorePrms.names. The
name of the HDFS store is the same as its configuration name.
Lazily creates the disk store specified by #diskStoreName, using DiskStoreHelper.createDiskStore(String),
if necessary. If the disk store has already been created, no checks are
done to ensure that it is consistent with the configuration provided in
DiskStorePrms.names.
HydraRuntimeException - if an attempt is made to reconfigure an
existing HDFS store.public static com.gemstone.gemfire.cache.hdfs.HDFSStore createHDFSStore(String hdfsStoreName, com.gemstone.gemfire.cache.hdfs.HDFSStoreFactory factory)
Lazily creates the disk store specified by #diskStoreName, using DiskStoreHelper.createDiskStore(String),
if necessary. If the disk store has already been created, no checks are
done to ensure that it is consistent with the configuration provided in
DiskStorePrms.names.
HydraRuntimeException - if an attempt is made to reconfigure an
existing HDFS store.public static com.gemstone.gemfire.cache.hdfs.HDFSStore getHDFSStore(String hdfsStoreName)
public static String hdfsStoreToString(com.gemstone.gemfire.cache.hdfs.HDFSStore hdfsStore)
public static com.gemstone.gemfire.cache.hdfs.HDFSStoreFactory getHDFSStoreFactory(String hdfsStoreConfig)
HDFSStorePrms.names, configured using the corresponding HDFSStoreDescription.public static HDFSStoreDescription getHDFSStoreDescription(String hdfsStoreConfig)
HDFSStoreDescription with the given configuration name
from HDFSStorePrms.names.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.