Bewerken

Delen via


LogConsistencyProvider Class

Definition

A log-consistency provider that relies on grain-specific custom code for reading states from storage, and appending deltas to storage. Grains that wish to use this provider must implement the ICustomStorageInterface<TState,TDelta> interface, to define how state is read and how deltas are written. If the provider attribute "PrimaryCluster" is supplied in the provider configuration, then only the specified cluster accesses storage, and other clusters may not issue updates.

public class LogConsistencyProvider : Orleans.LogConsistency.ILogConsistencyProvider
public class LogConsistencyProvider : Orleans.LogConsistency.ILogViewAdaptorFactory
public class LogConsistencyProvider : Orleans.EventSourcing.ILogViewAdaptorFactory
type LogConsistencyProvider = class
    interface ILogConsistencyProvider
    interface IProvider
    interface ILogViewAdaptorFactory
type LogConsistencyProvider = class
    interface ILogViewAdaptorFactory
Public Class LogConsistencyProvider
Implements ILogConsistencyProvider
Public Class LogConsistencyProvider
Implements ILogViewAdaptorFactory
Inheritance
LogConsistencyProvider
Implements

Constructors

LogConsistencyProvider()
LogConsistencyProvider(CustomStorageLogConsistencyOptions)

Properties

Log

Gets the TraceLogger used by this log-consistency provider.

Name

The name of this provider instance, as given to it in the config.

PrimaryCluster

Specifies a cluster id of the primary cluster from which to access storage exclusively, null if storage should be accessed directly from all clusters.

UsesStorageProvider

Returns true if a storage provider is required for constructing adaptors.

Methods

Close()

Close function for this provider instance.

GetLoggerName()

Gets a unique name for this provider, suited for logging.

Init(String, IProviderRuntime, IProviderConfiguration)

Init function

MakeLogViewAdaptor<TView,TEntry>(ILogViewAdaptorHost<TView,TEntry>, TView, String, IGrainStorage, ILogConsistencyProtocolServices)

Construct a ILogViewAdaptor<TLogView,TLogEntry> to be installed in the given host grain.

MakeLogViewAdaptor<TView,TEntry>(ILogViewAdaptorHost<TView,TEntry>, TView, String, IGrainStorage, ILogConsistencyProtocolServices)

Constructs a ILogViewAdaptor<TLogView,TLogEntry> to be installed in the given host grain.

MakeLogViewAdaptor<TView,TEntry>(ILogViewAdaptorHost<TView,TEntry>, TView, String, IStorageProvider, ILogConsistencyProtocolServices)

Construct a ILogViewAdaptor<TLogView,TLogEntry> to be installed in the given host grain.

Applies to