public class KiWiConfiguration extends Object
Constructor and Description |
---|
KiWiConfiguration(String name,
String jdbcUrl,
String dbUser,
String dbPassword,
KiWiDialect dialect) |
KiWiConfiguration(String name,
String jdbcUrl,
String dbUser,
String dbPassword,
KiWiDialect dialect,
String defaultContext,
String inferredContext) |
Modifier and Type | Method and Description |
---|---|
int |
getBNodeCacheSize()
The maximum size of the BNode cache used by the KiWiValueFactory (default: 10000)
|
CacheMode |
getCacheMode()
Get the cache mode for this KiWi triple store.
|
CachingBackends |
getCachingBackend()
Fully qualified class name of the cache manager factory to use.
|
String |
getClusterAddress()
The cluster address serves two purposes, depending on the kind of caching used.
|
String |
getClusterName()
Return the name of the cluster.
|
int |
getClusterPort()
Return the multicast port used by the cache cluster this triplestore belongs to.
|
int |
getClusterTimeout() |
int |
getCursorSize()
Size of the database cursor for pre-fetching rows on database supporting this feature.
|
int |
getDatacenterId()
The datacenter ID of this server for generating unique database IDs.
|
String |
getDbPassword() |
String |
getDbUser() |
String |
getDefaultContext() |
KiWiDialect |
getDialect() |
String[] |
getFulltextLanguages()
Return the languages (ISO codes) for which to add specific fulltext search support.
|
String |
getInferredContext() |
String |
getJdbcUrl() |
int |
getLiteralCacheSize()
The maximum size of the literal cache used by the KiWiValueFactory (default: 100000)
|
String |
getName() |
int |
getNamespaceCacheSize()
The maximum size of the namespace cache used for looking up namespaces by prefix and uri
|
int |
getNodeCacheSize()
The maximum size of the node ID cache used by the KiWiValueFactory (default: 1000000)
|
RegistryStrategy |
getRegistryStrategy()
Return the strategy to use for synchronizing between transactions.
|
int |
getTripleBatchSize() |
int |
getTripleCacheSize()
The maximum size of the triple cache used for looking up triples by id
|
int |
getUriCacheSize()
The maximum size of the URI cache used by the KiWiValueFactory (default: 500000)
|
boolean |
isClustered()
If true, support for special cluster features is enabled (e.g.
|
boolean |
isFulltextEnabled()
Return true in case fulltext support is enabled in this configuration.
|
boolean |
isJmxEnabled()
Return true if statistics collection in JMX.
|
boolean |
isQueryLoggingEnabled() |
boolean |
isTripleBatchCommit()
Enable batched commit for triples (if supported by the database dialect).
|
KiWiConfiguration |
setBNodeCacheSize(int bNodeCacheSize)
The maximum size of the BNode cache used by the KiWiValueFactory (default: 10000)
|
KiWiConfiguration |
setCacheMode(CacheMode cacheMode)
Set the cache mode for this KiWi triple store.
|
KiWiConfiguration |
setCachingBackend(CachingBackends cachingBackend)
Fully qualified class name of the cache manager factory to use.
|
KiWiConfiguration |
setClusterAddress(String clusterAddress)
The cluster address serves two purposes, depending on the kind of caching used.
|
KiWiConfiguration |
setClustered(boolean clustered)
If true, support for special cluster features is enabled (e.g.
|
KiWiConfiguration |
setClusterName(String clusterName)
Change the name of the cluster.
|
KiWiConfiguration |
setClusterPort(int clusterPort)
Change the multicast port used by the cache cluster this triplestore belongs to.
|
void |
setClusterTimeout(int clusterTimeout) |
KiWiConfiguration |
setCursorSize(int cursorSize)
Size of the database cursor for pre-fetching rows on database supporting this feature.
|
KiWiConfiguration |
setDatacenterId(int datacenterId)
The datacenter ID of this server for generating unique database IDs.
|
KiWiConfiguration |
setDefaultContext(String defaultContext) |
KiWiConfiguration |
setFulltextEnabled(boolean fulltextEnabled)
Set to true in case fulltext support is enabled in this configuration.
|
KiWiConfiguration |
setFulltextLanguages(List<String> fulltextLanguages)
Set the languages (ISO codes) for which to add specific fulltext search support.
|
KiWiConfiguration |
setFulltextLanguages(String[] fulltextLanguages)
Set the languages (ISO codes) for which to add specific fulltext search support.
|
KiWiConfiguration |
setInferredContext(String inferredContext) |
KiWiConfiguration |
setJmxEnabled(boolean jmxEnabled)
Enable/disable statistics collection in JMX.
|
KiWiConfiguration |
setLiteralCacheSize(int literalCacheSize)
The maximum size of the literal cache used by the KiWiValueFactory (default: 100000)
|
KiWiConfiguration |
setNamespaceCacheSize(int namespaceCacheSize)
The maximum size of the namespace cache used for looking up namespaces by prefix and uri
|
KiWiConfiguration |
setNodeCacheSize(int nodeCacheSize)
The maximum size of the node ID cache used by the KiWiValueFactory (default: 1000000)
|
KiWiConfiguration |
setQueryLoggingEnabled(boolean queryLoggingEnabled) |
KiWiConfiguration |
setRegistryStrategy(RegistryStrategy registryStrategy)
Change the strategy to use for synchronizing between transactions.
|
KiWiConfiguration |
setTripleBatchCommit(boolean tripleBatchCommit)
Enable batched commit for triples (if supported by the database dialect).
|
KiWiConfiguration |
setTripleBatchSize(int tripleBatchSize) |
KiWiConfiguration |
setTripleCacheSize(int tripleCacheSize)
The maximum size of the triple cache used for looking up triples by id
|
KiWiConfiguration |
setUriCacheSize(int uriCacheSize)
The maximum size of the URI cache used by the KiWiValueFactory (default: 500000)
|
public KiWiConfiguration(String name, String jdbcUrl, String dbUser, String dbPassword, KiWiDialect dialect)
public String getDbPassword()
public String getDbUser()
public KiWiDialect getDialect()
public String getJdbcUrl()
public String getName()
public boolean isQueryLoggingEnabled()
public KiWiConfiguration setQueryLoggingEnabled(boolean queryLoggingEnabled)
public String getDefaultContext()
public KiWiConfiguration setDefaultContext(String defaultContext)
public String getInferredContext()
public KiWiConfiguration setInferredContext(String inferredContext)
public boolean isTripleBatchCommit()
public KiWiConfiguration setTripleBatchCommit(boolean tripleBatchCommit)
public int getTripleBatchSize()
public KiWiConfiguration setTripleBatchSize(int tripleBatchSize)
public int getCursorSize()
Statement.setFetchSize(int)
public KiWiConfiguration setCursorSize(int cursorSize)
Statement.setFetchSize(int)
public boolean isFulltextEnabled()
public KiWiConfiguration setFulltextEnabled(boolean fulltextEnabled)
public String[] getFulltextLanguages()
public KiWiConfiguration setFulltextLanguages(String[] fulltextLanguages)
public KiWiConfiguration setFulltextLanguages(List<String> fulltextLanguages)
public CachingBackends getCachingBackend()
public KiWiConfiguration setCachingBackend(CachingBackends cachingBackend)
public int getNodeCacheSize()
public KiWiConfiguration setNodeCacheSize(int nodeCacheSize)
public int getLiteralCacheSize()
public KiWiConfiguration setLiteralCacheSize(int literalCacheSize)
public int getBNodeCacheSize()
public KiWiConfiguration setBNodeCacheSize(int bNodeCacheSize)
public int getUriCacheSize()
public KiWiConfiguration setUriCacheSize(int uriCacheSize)
public int getTripleCacheSize()
public KiWiConfiguration setTripleCacheSize(int tripleCacheSize)
public int getNamespaceCacheSize()
public KiWiConfiguration setNamespaceCacheSize(int namespaceCacheSize)
public int getDatacenterId()
public KiWiConfiguration setDatacenterId(int datacenterId)
public RegistryStrategy getRegistryStrategy()
public KiWiConfiguration setRegistryStrategy(RegistryStrategy registryStrategy)
public boolean isClustered()
public KiWiConfiguration setClustered(boolean clustered)
public CacheMode getCacheMode()
public KiWiConfiguration setCacheMode(CacheMode cacheMode)
cacheMode
- public String getClusterName()
public KiWiConfiguration setClusterName(String clusterName)
public int getClusterPort()
public KiWiConfiguration setClusterPort(int clusterPort)
public String getClusterAddress()
public KiWiConfiguration setClusterAddress(String clusterAddress)
public int getClusterTimeout()
public void setClusterTimeout(int clusterTimeout)
public boolean isJmxEnabled()
public KiWiConfiguration setJmxEnabled(boolean jmxEnabled)
jmxEnabled
- Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.