public abstract class AbstractExperimentalFeaturesStorage extends Object implements ExperimentalFeaturesStorage
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMENTS |
protected ExperimentalFeatureDefRegistry |
defRegistry |
static String |
EXPERIMENTAL_FILE_NAME |
static String |
EXPERIMENTAL_STORAGE_FOLDER |
protected FileSystem |
fileSystem |
protected IOService |
ioService |
static String |
SEPARATOR |
protected SessionInfo |
sessionInfo |
protected SpacesAPI |
spaces |
| Constructor and Description |
|---|
AbstractExperimentalFeaturesStorage(SessionInfo sessionInfo,
SpacesAPI spaces,
IOService ioService,
ExperimentalFeatureDefRegistry defRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
doStoreFeatures(Collection<ExperimentalFeatureImpl> features,
Runnable callback) |
abstract String |
getStoragePath() |
protected abstract Collection<ExperimentalFeatureDefinition> |
getSupportedDefinitions() |
protected void |
initializeFileSystem() |
protected abstract org.slf4j.Logger |
log() |
protected void |
maybeNotifyFeatureUpdate(ExperimentalFeatureImpl feature) |
protected List<ExperimentalFeatureImpl> |
readFeatures() |
void |
store(ExperimentalFeatureImpl feature) |
void |
storeFeatures(Collection<ExperimentalFeatureImpl> features) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFeaturespublic static final String COMMENTS
public static final String EXPERIMENTAL_FILE_NAME
public static final String SEPARATOR
public static final String EXPERIMENTAL_STORAGE_FOLDER
protected final SessionInfo sessionInfo
protected final SpacesAPI spaces
protected final IOService ioService
protected final ExperimentalFeatureDefRegistry defRegistry
protected FileSystem fileSystem
public AbstractExperimentalFeaturesStorage(SessionInfo sessionInfo, SpacesAPI spaces, IOService ioService, ExperimentalFeatureDefRegistry defRegistry)
public abstract String getStoragePath()
protected abstract Collection<ExperimentalFeatureDefinition> getSupportedDefinitions()
protected abstract org.slf4j.Logger log()
protected List<ExperimentalFeatureImpl> readFeatures()
public void storeFeatures(Collection<ExperimentalFeatureImpl> features)
storeFeatures in interface ExperimentalFeaturesStoragepublic void store(ExperimentalFeatureImpl feature)
store in interface ExperimentalFeaturesStoragepublic void doStoreFeatures(Collection<ExperimentalFeatureImpl> features, Runnable callback)
protected void initializeFileSystem()
protected void maybeNotifyFeatureUpdate(ExperimentalFeatureImpl feature)
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.