你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ShardMapManagerFactory Class
- java.
lang. Object - com.
microsoft. azure. elasticdb. shard. mapmanager. ShardMapManagerFactory
- com.
public class ShardMapManagerFactory
Factory for ShardMapManagers facilitates the creation and management of shard map manager persistent state. Use this class as the entry point to the library's object hierarchy.
Method Summary
Method Details
createSqlShardMapManager
public static ShardMapManager createSqlShardMapManager(String connectionString)
Creates a ShardMapManager and its corresponding storage structures in the specified SQL Server database, with KeepExisting and RetryBehavior.DefaultRetryBehavior.
Parameters:
Returns:
createSqlShardMapManager
public static ShardMapManager createSqlShardMapManager(String connectionString, RetryBehavior retryBehavior)
Creates a ShardMapManager and its corresponding storage structures in the specified SQL Server database, with KeepExisting.
Parameters:
Returns:
createSqlShardMapManager
public static ShardMapManager createSqlShardMapManager(String connectionString, ShardMapManagerCreateMode createMode)
Creates a ShardMapManager and its corresponding storage structures in the specified SQL Server database, with RetryBehavior.DefaultRetryBehavior.
Parameters:
Returns:
createSqlShardMapManager
public static ShardMapManager createSqlShardMapManager(String connectionString, ShardMapManagerCreateMode createMode, RetryBehavior retryBehavior)
Creates a ShardMapManager and its corresponding storage structures in the specified SQL Server database.
Parameters:
Returns:
createSqlShardMapManager
public static ShardMapManager createSqlShardMapManager(String connectionString, ShardMapManagerCreateMode createMode, RetryBehavior retryBehavior, EventHandler
Creates a ShardMapManager and its corresponding storage structures in the specified SQL Server database.
Parameters:
Returns:
createSqlShardMapManager
public static ShardMapManager createSqlShardMapManager(String connectionString, ShardMapManagerCreateMode createMode, Version targetVersion)
Creates a ShardMapManager and its corresponding storage structures in the specified SQL Server database, with getDefaultRetryPolicy().
Parameters:
getSqlShardMapManager
public static ShardMapManager getSqlShardMapManager(String connectionString, ShardMapManagerLoadPolicy loadPolicy)
Gets ShardMapManager from persisted state in a SQL Server database, with RetryBehavior.DefaultRetryBehavior.
Parameters:
Returns:
getSqlShardMapManager
public static ShardMapManager getSqlShardMapManager(String connectionString, ShardMapManagerLoadPolicy loadPolicy, RetryBehavior retryBehavior)
Gets ShardMapManager from persisted state in a SQL Server database.
Parameters:
Returns:
getSqlShardMapManager
public static ShardMapManager getSqlShardMapManager(String connectionString, ShardMapManagerLoadPolicy loadPolicy, RetryBehavior retryBehavior, EventHandler
Gets ShardMapManager from persisted state in a SQL Server database.
Parameters:
Returns:
tryGetSqlShardMapManager
public static boolean tryGetSqlShardMapManager(String connectionString, ShardMapManagerLoadPolicy loadPolicy, ReferenceObjectHelper
Gets ShardMapManager from persisted state in a SQL Server database.
Parameters:
null
in case shard map manager does not exist.
Returns:
true
if a shard map manager object was created, false
otherwise.
tryGetSqlShardMapManager
public static boolean tryGetSqlShardMapManager(String connectionString, ShardMapManagerLoadPolicy loadPolicy, RetryBehavior retryBehavior, EventHandler
Gets ShardMapManager from persisted state in a SQL Server database.
Parameters:
null
in case shard map manager does not exist.
Returns:
true
if a shard map manager object was created, false
otherwise.
tryGetSqlShardMapManager
public static boolean tryGetSqlShardMapManager(String connectionString, ShardMapManagerLoadPolicy loadPolicy, RetryBehavior retryBehavior, ReferenceObjectHelper
Gets ShardMapManager from persisted state in a SQL Server database.
Parameters:
null
in case shard map manager does not exist.
Returns:
true
if a shard map manager object was created, false
otherwise.