org.apache.cassandra.config
Class DatabaseDescriptor
java.lang.Object
org.apache.cassandra.config.DatabaseDescriptor
public class DatabaseDescriptor
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseDescriptor
public DatabaseDescriptor()
loadSchemas
public static void loadSchemas()
throws java.io.IOException
- load keyspace (table) definitions, but do not initialize the table instances.
- Throws:
java.io.IOException
getAuthenticator
public static IAuthenticator getAuthenticator()
getAuthority
public static IAuthority getAuthority()
getAuthorityContainer
public static IAuthorityContainer getAuthorityContainer()
getThriftMaxMessageLength
public static int getThriftMaxMessageLength()
getThriftFramedTransportSize
public static int getThriftFramedTransportSize()
createAllDirectories
public static void createAllDirectories()
throws java.io.IOException
- Creates all storage-related directories.
- Throws:
java.io.IOException
- when a disk problem is encountered.
getPartitioner
public static IPartitioner getPartitioner()
setPartitioner
public static void setPartitioner(IPartitioner newPartitioner)
getEndpointSnitch
public static IEndpointSnitch getEndpointSnitch()
setEndpointSnitch
public static void setEndpointSnitch(IEndpointSnitch eps)
getRequestScheduler
public static IRequestScheduler getRequestScheduler()
getRequestSchedulerOptions
public static RequestSchedulerOptions getRequestSchedulerOptions()
getRequestSchedulerId
public static Config.RequestSchedulerId getRequestSchedulerId()
getJobTrackerAddress
public static java.lang.String getJobTrackerAddress()
getColumnIndexSize
public static int getColumnIndexSize()
getInitialToken
public static java.lang.String getInitialToken()
getReplaceToken
public static java.lang.String getReplaceToken()
getClusterName
public static java.lang.String getClusterName()
getMaxStreamingRetries
public static int getMaxStreamingRetries()
getJobJarLocation
public static java.lang.String getJobJarLocation()
getStoragePort
public static int getStoragePort()
getSSLStoragePort
public static int getSSLStoragePort()
getRpcPort
public static int getRpcPort()
getRpcTimeout
public static long getRpcTimeout()
setRpcTimeout
public static void setRpcTimeout(java.lang.Long timeOutInMillis)
getPhiConvictThreshold
public static int getPhiConvictThreshold()
getConcurrentReaders
public static int getConcurrentReaders()
getConcurrentWriters
public static int getConcurrentWriters()
getConcurrentReplicators
public static int getConcurrentReplicators()
getFlushWriters
public static int getFlushWriters()
getInMemoryCompactionLimit
public static int getInMemoryCompactionLimit()
setInMemoryCompactionLimit
public static void setInMemoryCompactionLimit(int sizeInMB)
getConcurrentCompactors
public static int getConcurrentCompactors()
isMultithreadedCompaction
public static boolean isMultithreadedCompaction()
getCompactionThroughputMbPerSec
public static int getCompactionThroughputMbPerSec()
setCompactionThroughputMbPerSec
public static void setCompactionThroughputMbPerSec(int value)
getStreamThroughputOutboundMegabitsPerSec
public static int getStreamThroughputOutboundMegabitsPerSec()
setStreamThroughputOutboundMegabitsPerSec
public static void setStreamThroughputOutboundMegabitsPerSec(int value)
getAllDataFileLocations
public static java.lang.String[] getAllDataFileLocations()
getCommitLogLocation
public static java.lang.String getCommitLogLocation()
getCommitLogSegmentSize
public static int getCommitLogSegmentSize()
- size of commitlog segments to allocate
getSavedCachesLocation
public static java.lang.String getSavedCachesLocation()
getSeeds
public static java.util.Set<java.net.InetAddress> getSeeds()
getListenAddress
public static java.net.InetAddress getListenAddress()
getBroadcastAddress
public static java.net.InetAddress getBroadcastAddress()
setBroadcastAddress
public static void setBroadcastAddress(java.net.InetAddress broadcastAdd)
getRpcAddress
public static java.net.InetAddress getRpcAddress()
getRpcServerType
public static java.lang.String getRpcServerType()
getRpcKeepAlive
public static boolean getRpcKeepAlive()
getRpcMinThreads
public static java.lang.Integer getRpcMinThreads()
getRpcMaxThreads
public static java.lang.Integer getRpcMaxThreads()
getRpcSendBufferSize
public static java.lang.Integer getRpcSendBufferSize()
getRpcRecvBufferSize
public static java.lang.Integer getRpcRecvBufferSize()
getCommitLogSyncBatchWindow
public static double getCommitLogSyncBatchWindow()
getCommitLogSyncPeriod
public static int getCommitLogSyncPeriod()
getCommitLogSync
public static Config.CommitLogSync getCommitLogSync()
getDiskAccessMode
public static Config.DiskAccessMode getDiskAccessMode()
getIndexAccessMode
public static Config.DiskAccessMode getIndexAccessMode()
isSnapshotBeforeCompaction
public static boolean isSnapshotBeforeCompaction()
isAutoSnapshot
public static boolean isAutoSnapshot()
isAutoBootstrap
public static boolean isAutoBootstrap()
hintedHandoffEnabled
public static boolean hintedHandoffEnabled()
getMaxHintWindow
public static int getMaxHintWindow()
getIndexInterval
public static java.lang.Integer getIndexInterval()
getSerializedCachePath
public static java.io.File getSerializedCachePath(java.lang.String ksName,
java.lang.String cfName,
CacheService.CacheType cacheType)
getDynamicUpdateInterval
public static int getDynamicUpdateInterval()
setDynamicUpdateInterval
public static void setDynamicUpdateInterval(java.lang.Integer dynamicUpdateInterval)
getDynamicResetInterval
public static int getDynamicResetInterval()
setDynamicResetInterval
public static void setDynamicResetInterval(java.lang.Integer dynamicResetInterval)
getDynamicBadnessThreshold
public static double getDynamicBadnessThreshold()
setDynamicBadnessThreshold
public static void setDynamicBadnessThreshold(java.lang.Double dynamicBadnessThreshold)
getEncryptionOptions
public static EncryptionOptions getEncryptionOptions()
getFlushLargestMemtablesAt
public static double getFlushLargestMemtablesAt()
getReduceCacheSizesAt
public static double getReduceCacheSizesAt()
getReduceCacheCapacityTo
public static double getReduceCacheCapacityTo()
getHintedHandoffThrottleDelay
public static int getHintedHandoffThrottleDelay()
getPreheatKeyCache
public static boolean getPreheatKeyCache()
validateMemtableThroughput
public static void validateMemtableThroughput(int sizeInMB)
throws ConfigurationException
- Throws:
ConfigurationException
validateMemtableOperations
public static void validateMemtableOperations(double operationsInMillions)
throws ConfigurationException
- Throws:
ConfigurationException
isIncrementalBackupsEnabled
public static boolean isIncrementalBackupsEnabled()
setIncrementalBackupsEnabled
public static void setIncrementalBackupsEnabled(boolean value)
getFlushQueueSize
public static int getFlushQueueSize()
getTotalMemtableSpaceInMB
public static int getTotalMemtableSpaceInMB()
getTotalCommitlogSpaceInMB
public static long getTotalCommitlogSpaceInMB()
getTrickleFsync
public static boolean getTrickleFsync()
getTrickleFsyncIntervalInKb
public static int getTrickleFsyncIntervalInKb()
getKeyCacheSizeInMB
public static long getKeyCacheSizeInMB()
getKeyCacheSavePeriod
public static int getKeyCacheSavePeriod()
getKeyCacheKeysToSave
public static int getKeyCacheKeysToSave()
getRowCacheSizeInMB
public static long getRowCacheSizeInMB()
getRowCacheSavePeriod
public static int getRowCacheSavePeriod()
getRowCacheKeysToSave
public static int getRowCacheKeysToSave()
getRowCacheProvider
public static IRowCacheProvider getRowCacheProvider()
getStreamingSocketTimeout
public static int getStreamingSocketTimeout()
populateIOCacheOnFlush
public static boolean populateIOCacheOnFlush()
Copyright © 2012 The Apache Software Foundation