Share via


PreferLocalPlacement 類別

定義

偏好的本機放置策略表示,如果叢集中的細微性尚未在叢集中的其他位置,且本機主機與本機主機相容,則應該一律將細微性放在本機主機上。

[System.Serializable]
public class PreferLocalPlacement : Orleans.Runtime.PlacementStrategy
[System.Serializable]
[Orleans.GenerateSerializer]
[Orleans.Immutable]
[Orleans.SuppressReferenceTracking]
public sealed class PreferLocalPlacement : Orleans.Runtime.PlacementStrategy
[<System.Serializable>]
type PreferLocalPlacement = class
    inherit PlacementStrategy
[<System.Serializable>]
[<Orleans.GenerateSerializer>]
[<Orleans.Immutable>]
[<Orleans.SuppressReferenceTracking>]
type PreferLocalPlacement = class
    inherit PlacementStrategy
Public Class PreferLocalPlacement
Inherits PlacementStrategy
Public NotInheritable Class PreferLocalPlacement
Inherits PlacementStrategy
繼承
PreferLocalPlacement
屬性

備註

如果主機與粒紋類型不相容,或粒紋收到不相容的要求,則會將細微性放在隨機相容的伺服器上。

建構函式

PreferLocalPlacement()

偏好的本機放置策略表示,如果叢集中的細微性尚未在叢集中的其他位置,且本機主機與本機主機相容,則應該一律將細微性放在本機主機上。

屬性

IsUsingGrainDirectory

取得值,指出此放置策略是否需要在細微性目錄中註冊啟用。

(繼承來源 PlacementStrategy)

方法

Initialize(GrainProperties)

使用提供的細微性屬性,初始化此類型的實例。

(繼承來源 PlacementStrategy)
PopulateGrainProperties(IServiceProvider, Type, GrainType, Dictionary<String,String>)

填入細微性屬性,以指定慣用的位置策略。

(繼承來源 PlacementStrategy)

適用於