共用方式為


IManagementGrain 介面

定義

尋址接收器的系統管理功能介面,公開為接收遠端要求/命令的粒紋。

public interface IManagementGrain : Orleans.IGrainWithIntegerKey, Orleans.IVersionManager
type IManagementGrain = interface
    interface IGrainWithIntegerKey
    interface IGrain
    interface IAddressable
    interface IVersionManager
Public Interface IManagementGrain
Implements IGrainWithIntegerKey, IVersionManager
實作

方法

FindLaggingSilos()

請連絡所有叢集中的所有尋址接收器,並傳回沒有最新多叢集設定的尋址接收器。 如果無法連線到某些叢集和/或尋址接收器,則會擲回例外狀況。

ForceActivationCollection(SiloAddress[], TimeSpan)

在指定的尋址接收器中執行新奧爾良啟用收集器。

ForceActivationCollection(TimeSpan)

強制啟用集合。

ForceGarbageCollection(SiloAddress[])

在指定的尋址接收器中執行 .NET 垃圾收集行程。

ForceRuntimeStatisticsCollection(SiloAddress[])

在指定的尋址接收器中執行尋址接收器統計數據收集器。

GetActivationAddress(IAddressable)

傳回 SiloAddress 指定之 Grain 啟動的位置(如果有的話)。

GetActiveGrains(GrainType)

傳回指定之粒紋類型的所有啟用。

GetActiveGrainTypes(SiloAddress[])

傳回系統中所有使用中粒紋類型的陣列

GetDetailedGrainStatistics(String[], SiloAddress[])

傳回最近詳細的粒紋統計數據資訊,並合併到指定型別的尋址接收器之間。

GetDetailedHosts(Boolean)

取得此叢集中目前已知的尋址接收器主機和成員資格資訊清單。

GetGrainActivationCount(GrainReference)

取得特定粒紋類型的粒紋啟用計數。

GetGrainCallFrequencies(SiloAddress[])

取得來自指定主機的估計粒紋呼叫頻率統計數據。

GetHosts(Boolean)

取得目前在此叢集中已知之尋址接收器主機和狀態的清單。

GetMultiClusterConfiguration()

取得目前的多叢集組態。

GetMultiClusterGateways()

取得目前多叢集網關的清單。

GetRuntimeStatistics(SiloAddress[])

傳回指定尋址接收器的最新尋址接收器運行時間統計數據資訊。

GetSimpleGrainStatistics()

傳回最新的穀物統計數據資訊,並合併到所有尋址接收器。

GetSimpleGrainStatistics(SiloAddress[])

傳回最新的穀物統計數據資訊,並合併到跨尋址接收器。

GetTotalActivationCount()

傳回所有尋址接收器的所有目前粒紋啟用總數。

InjectMultiClusterConfiguration(IEnumerable<String>, String, Boolean)

藉由插入多叢集組態來設定作用中的多叢集。

ResetGrainCallFrequencies(SiloAddress[])

僅適用於測試。 重設指定主機上的粒紋呼叫頻率計數。

SendControlCommandToProvider(String, String, Int32, Object)

在叢集中所有尋址接收器上的指定提供者上執行控件命令。 命令會傳送至每個尋址接收器上所有已知提供者,以符合 providerTypeFullName AND providerName 參數。

SendControlCommandToProvider<T>(String, Int32, Object)

在叢集中所有尋址接收器上的指定提供者上執行控件命令。 命令會傳送至每個尋址接收器上所有已知提供者,以符合 providerTypeFullName AND providerName 參數。

SetAppLogLevel(SiloAddress[], Int32)

設定應用程式粒紋的目前記錄層級。

SetCompatibilityStrategy(CompatibilityStrategy)

設定相容性策略。

(繼承來源 IVersionManager)
SetCompatibilityStrategy(GrainInterfaceType, CompatibilityStrategy)

設定特定介面的相容性策略。

(繼承來源 IVersionManager)
SetCompatibilityStrategy(Int32, CompatibilityStrategy)

設定特定介面的相容性策略

(繼承來源 IVersionManager)
SetLogLevel(SiloAddress[], String, Int32)

依名稱設定特定記錄器目前的記錄層級(前置詞相符)。

SetSelectorStrategy(GrainInterfaceType, VersionSelectorStrategy)

設定特定介面的選取器策略。

(繼承來源 IVersionManager)
SetSelectorStrategy(Int32, VersionSelectorStrategy)

設定特定介面的選取器策略

(繼承來源 IVersionManager)
SetSelectorStrategy(VersionSelectorStrategy)

設定選取器策略。

(繼承來源 IVersionManager)
SetSystemLogLevel(SiloAddress[], Int32)

設定系統運行時間元件的目前記錄層級。

UpdateConfiguration(SiloAddress[], Dictionary<String,String>, Dictionary<String,String>)

動態更新組態資訊。 如果您指定屬性或無法變更的專案,則只能更新組態資訊的子集 - 將會擲回錯誤(且不會進行任何組態變更)。 組態格式是 XML,與 OrleansConfiguration.xml 檔案的格式相同。 允許的元素與屬性如下:

<OrleansConfiguration>
    <Globals>
        <Messaging ResponseTimeout="?"/>
        <Caching CacheSize="?"/>
        <Activation CollectionInterval="?" CollectionAmount="?" CollectionTotalMemoryLimit="?" CollectionActivationLimit="?"/>
        <Liveness ProbeTimeout="?" TableRefreshTimeout="?" NumMissedProbesLimit="?"/>
    </Globals>
    <Defaults>
        <LoadShedding Enabled="?" LoadLimit="?"/>
        <Tracing DefaultTraceLevel="?" PropagateActivityId="?">
            <TraceLevelOverride LogPrefix="?" TraceLevel="?"/>
        </Tracing>
    </Defaults>
</OrleansConfiguration>
UpdateStreamProviders(SiloAddress[], IDictionary<String,ProviderCategoryConfiguration>)

以動態方式更新數據流提供者。 列出的尋址接收器中的串流提供者將會根據其載入的數據流提供者與 streamProviderConfigurations 中的提供者列表之間的差異進行更新:如果組態物件中的提供者已存在於尋址接收器中,則會保留如下:如果組態物件中的提供者不存在於尋址接收器中,則會載入並啟動;如果存在於尋址接收器中但不在組態物件中的提供者,則會從尋址接收器中停止並移除。

擴充方法

AsReference(IAddressable, Type)

傳回所提供粒紋的具型別參考。

AsReference<TGrainInterface>(IAddressable)

傳回所提供粒紋的具型別參考。

BindGrainReference(IAddressable, IGrainFactory)

將粒紋參考系結至提供的 IGrainFactory

Cast(IAddressable, Type)

傳回所提供粒紋的具型別參考。

Cast<TGrainInterface>(IAddressable)

傳回所提供粒紋的具型別參考。

GetGrainId(IAddressable)

傳回對應至所提供粒紋的粒紋標識碼。

GetGrainIdentity(IGrain)

尋址接收器的系統管理功能介面,公開為接收遠端要求/命令的粒紋。

GetPrimaryKey(IGrain)

尋址接收器的系統管理功能介面,公開為接收遠端要求/命令的粒紋。

GetPrimaryKey(IGrain, String)

尋址接收器的系統管理功能介面,公開為接收遠端要求/命令的粒紋。

GetPrimaryKey(IAddressable)

傳回粒紋主鍵的 Guid 表示。

GetPrimaryKey(IAddressable, String)

傳回粒紋主鍵的 Guid 表示。

GetPrimaryKeyLong(IGrain)

尋址接收器的系統管理功能介面,公開為接收遠端要求/命令的粒紋。

GetPrimaryKeyLong(IGrain, String)

尋址接收器的系統管理功能介面,公開為接收遠端要求/命令的粒紋。

GetPrimaryKeyLong(IAddressable)

傳回粒紋主鍵的 long 表示。

GetPrimaryKeyLong(IAddressable, String)

傳回粒紋主鍵的 long 表示。

GetPrimaryKeyString(IAddressable)

傳回粒紋的主鍵 string

IsPrimaryKeyBasedOnLong(IAddressable)

傳回主鍵的一部分是否屬於 類型 long

適用於