public interface IClusterConfig
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CLUSTER_ROUTER_CLASS
the class of default cluster router implement.
|
static String |
DEFAULT_PRIMARY_CACHE_CLASS
the class of default primary cache implement.
|
static String |
DEFAULT_SECOND_CACHE_CLASS
the class of default second cache implement.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<DBClusterInfo> |
getDBClusterInfos()
获取DB集群信息
|
EnumDbConnectionPoolCatalog |
getDbConnectionPoolCatalog()
获取数据库连接方式.
|
HashAlgoEnum |
getHashAlgo()
获取配置的hash算法.
|
int |
getIdGeneratorBatch()
获取ID生成器默认批量生成值.
|
String |
getPrimaryCacheAddress()
address of primary cache.
|
Class<IPrimaryCache> |
getPrimaryCacheClass()
get class of primary cache.
|
int |
getPrimaryCacheExpire()
expire time of primary cache.
|
String |
getSecondCacheAddress()
address of second cache.
|
Class<ISecondCache> |
getSecondCacheClass()
get class of second cache.
|
int |
getSecondCacheExpire()
expire time of second cache.
|
String |
getZookeeperUrl()
获取xml中配置的zookeeper连接
|
boolean |
isCacheEnabled()
ture is enabled, false is not.
|
static final String DEFAULT_PRIMARY_CACHE_CLASS
static final String DEFAULT_SECOND_CACHE_CLASS
static final String DEFAULT_CLUSTER_ROUTER_CLASS
boolean isCacheEnabled()
String getSecondCacheAddress()
int getSecondCacheExpire()
Class<ISecondCache> getSecondCacheClass()
String getPrimaryCacheAddress()
int getPrimaryCacheExpire()
Class<IPrimaryCache> getPrimaryCacheClass()
EnumDbConnectionPoolCatalog getDbConnectionPoolCatalog()
int getIdGeneratorBatch()
HashAlgoEnum getHashAlgo()
Collection<DBClusterInfo> getDBClusterInfos()
String getZookeeperUrl()
Copyright © 2015. All rights reserved.