org.hibernate.shards.cfg
Interface ShardConfiguration
- All Known Implementing Classes:
- ConfigurationToShardConfigurationAdapter
public interface ShardConfiguration
Describes the configuration properties that can vary across the SessionFactory
instances contained within your ShardedSessionFactory
.
- Author:
- maxr@google.com (Max Ross)
getShardUrl
String getShardUrl()
- Returns:
- the url of the shard.
- See Also:
Environment.URL
getShardUser
String getShardUser()
- Returns:
- the user that will be sent to the shard for authentication
- See Also:
Environment.USER
getShardPassword
String getShardPassword()
- Returns:
- the password that will be sent to the shard for authentication
- See Also:
Environment.PASS
getShardSessionFactoryName
String getShardSessionFactoryName()
- Returns:
- the name that the
SessionFactory
created from
this config will have
getShardId
Integer getShardId()
- Returns:
- unique id of the shard
getShardDatasource
String getShardDatasource()
- Returns:
- the datasource for the shard
- See Also:
Environment.DATASOURCE
getShardCacheRegionPrefix
String getShardCacheRegionPrefix()
- Returns:
- the cache region prefix for the shard
- See Also:
Environment.CACHE_REGION_PREFIX