public abstract class AbstractScopedExperimentalFeaturesStorage extends Object implements ScopedExperimentalFeaturesStorage
Modifier and Type | Field and Description |
---|---|
protected ExperimentalFeatureDefRegistry |
defRegistry |
protected FileSystem |
fileSystem |
protected IOService |
ioService |
protected SessionInfo |
sessionInfo |
Constructor and Description |
---|
AbstractScopedExperimentalFeaturesStorage(SessionInfo sessionInfo,
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() |
void |
init(FileSystem fileSystem) |
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, wait
getScope
getFeatures
protected final SessionInfo sessionInfo
protected final ExperimentalFeatureDefRegistry defRegistry
protected final IOService ioService
protected FileSystem fileSystem
public AbstractScopedExperimentalFeaturesStorage(SessionInfo sessionInfo, IOService ioService, ExperimentalFeatureDefRegistry defRegistry)
public void init(FileSystem fileSystem)
init
in interface ScopedExperimentalFeaturesStorage
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)
public void store(ExperimentalFeatureImpl feature)
store
in interface ExperimentalFeaturesStorage
public void doStoreFeatures(Collection<ExperimentalFeatureImpl> features, Runnable callback)
protected void maybeNotifyFeatureUpdate(ExperimentalFeatureImpl feature)
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.