use of com.ctrip.platform.dal.exceptions.UnsupportedFeatureException in project dal by ctripcorp.
the class ClusterDynamicDataSource method createMultiHostDataSource.
protected DataSource createMultiHostDataSource() {
if (cluster.dbShardingEnabled())
throw new UnsupportedFeatureException("ClusterDataSource does not support sharding cluster, cluster name: " + cluster.getClusterName());
DataSourceIdentity id = getMultiHostDataSourceIdentity(cluster);
dataSourceId = id;
return new ClusterDataSource(id, cluster, provider);
}
Aggregations