public abstract class LDCacheSailProvider extends Object implements org.apache.marmotta.platform.core.api.triplestore.NotifyingSailProvider
Modifier and Type | Field and Description |
---|---|
protected org.apache.marmotta.platform.core.api.config.ConfigurationService |
configurationService |
protected javax.enterprise.inject.Instance<LDCacheIgnoreFilter> |
ignoreFilters |
static String |
LDCACHE_ENABLED |
protected ClientConfiguration |
ldclientConfig |
Constructor and Description |
---|
LDCacheSailProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addVolatileEndpoint(Endpoint endpoint)
Add a volatile (in-memory) endpoint to the LDClient configuration.
|
abstract void |
clearSail()
Clear the currently configured Linked Data Sail.
|
void |
configurationChanged(org.apache.marmotta.platform.core.events.ConfigurationChangedEvent e) |
abstract LDCache |
getLDCache()
Return the caching backend used by the caching system (e.g.
|
abstract LDClientService |
getLDClient()
Return the Linked Data Client used by the caching system (e.g.
|
Set<Endpoint> |
getVolatileEndpoints()
Return all configured volatile endpoints.
|
void |
initialize() |
boolean |
isCached(org.openrdf.model.URI resource)
Return true in case the URI resource passed as argument is cached.
|
boolean |
isEnabled()
Return true if this sail provider is enabled in the configuration.
|
void |
removeVolatileEndpoint(Endpoint endpoint)
Remove a volatile (in-memory) endpoint from the LDClient configuration.
|
void |
updateConfig() |
void |
updateEndpoints() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final String LDCACHE_ENABLED
@Inject protected org.apache.marmotta.platform.core.api.config.ConfigurationService configurationService
@Inject protected javax.enterprise.inject.Instance<LDCacheIgnoreFilter> ignoreFilters
protected ClientConfiguration ldclientConfig
public boolean isCached(org.openrdf.model.URI resource) throws org.openrdf.repository.RepositoryException
resource
- org.openrdf.repository.RepositoryException
public abstract void clearSail()
public boolean isEnabled()
isEnabled
in interface org.apache.marmotta.platform.core.api.triplestore.SailProvider
public void configurationChanged(@Observes org.apache.marmotta.platform.core.events.ConfigurationChangedEvent e)
@PostConstruct public void initialize()
public void updateEndpoints()
public void updateConfig()
public abstract LDClientService getLDClient()
public abstract LDCache getLDCache()
public void addVolatileEndpoint(Endpoint endpoint)
endpoint
- public void removeVolatileEndpoint(Endpoint endpoint)
endpoint
- Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.