C# Class Cedar.ShardRepository

Shard Repository
Inheritance: BaseRepository
ファイルを表示 Open project: Vadi/Cedar Class Usage Examples

Public Methods

Method Description
GetAllShard ( ) : IEnumerable

Get all shards stored in the Cedar database

GetAllShard ( string applicationName ) : IEnumerable

Get all shards for a given application stored in the Cedar database

GetAppSchema ( string applicationName ) : AppSchema

Get the application schema for a given application name

GetShardById ( long shardId ) : Shard

Get shards information for given shard id

Private Methods

Method Description
UpdateShard ( long shardId ) : void

Update the schema setup status

UpdateShardCount ( long shardId ) : void

Updates the total count on a shard

Method Details

GetAllShard() public method

Get all shards stored in the Cedar database
public GetAllShard ( ) : IEnumerable
return IEnumerable

GetAllShard() public method

Get all shards for a given application stored in the Cedar database
public GetAllShard ( string applicationName ) : IEnumerable
applicationName string
return IEnumerable

GetAppSchema() public method

Get the application schema for a given application name
public GetAppSchema ( string applicationName ) : AppSchema
applicationName string
return AppSchema

GetShardById() public method

Get shards information for given shard id
public GetShardById ( long shardId ) : Shard
shardId long
return Shard