org.tinygroup.dbrouter.config
类 Router
java.lang.Object
org.tinygroup.dbrouter.config.Router
public class Router
- extends Object
集群
一个集群可包含多个分区
- 作者:
- luoguo
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Router
public Router()
Router
public Router(String id,
String userName,
String password)
getUserName
public String getUserName()
setUserName
public void setUserName(String userName)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
getId
public String getId()
setId
public void setId(String id)
getDataSources
public List<DataSourceConfig> getDataSources()
setDataSource
public void setDataSource(List<DataSourceConfig> dataSources)
getPartitions
public List<Partition> getPartitions()
setPartitions
public void setPartitions(List<Partition> partitions)
getDataSourceConfig
public DataSourceConfig getDataSourceConfig(String datasourceId)
getKeyGenerator
public RouterKeyGenerator getKeyGenerator()
setKeyGenerator
public void setKeyGenerator(RouterKeyGenerator keyGenerator)
setDataSources
public void setDataSources(List<DataSourceConfig> dataSources)
getTimeOut
public int getTimeOut()
setTimeOut
public void setTimeOut(int timeOut)
getThreadSize
public int getThreadSize()
setThreadSize
public void setThreadSize(int threadSize)
isJtaEnabled
public boolean isJtaEnabled()
setJtaEnabled
public void setJtaEnabled(boolean jtaEnabled)
getSchema
public String getSchema()
setSchema
public void setSchema(String schema)
getCatalog
public String getCatalog()
setCatalog
public void setCatalog(String catalog)
Copyright © 2006–2015 TinyGroup. All rights reserved.