Table of Contents

IShardAllocator.AllocateShard Method

Returns the id of the shard that should host the given tenant.

Syntax

Unit: Aurelius.Tenancy.Provisioning

function IShardAllocator.AllocateShard(const Tenant: TTenantInfo; const Shards: TArray<TShardInfo>): string; virtual; abstract;

Parameters

<-> Parameter Type Description
const Tenant TTenantInfo The tenant being provisioned.
const Shards TArray<TShardInfo> All shards currently registered in the catalog, whatever their status.

Returns

The id of the chosen shard, or an empty string if no shard is available.

See also