Skip to main content

MockFluidDataStoreContext Class

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/test-runtime-utils/legacy.

For more information about our API support guarantees, see here.

Signature

export declare class MockFluidDataStoreContext implements IFluidDataStoreContext

Implements: IFluidDataStoreContext

Constructors

ConstructorAlertsDescription
(constructor)(id, existing, baseLogger, interactive)BetaConstructs a new instance of the MockFluidDataStoreContext class

Properties

PropertyAlertsModifiersTypeDescription
attachStateBetaAttachStateIndicates the attachment state of the data store to a host service.
baseLoggerBetareadonlyITelemetryLoggerExt
baseSnapshotBetaISnapshotTree | undefined
clientDetailsBetaIClientDetails
clientIdBetastring | undefined
connectedBetaboolean
containerRuntimeBetaIContainerRuntimeBase
createPropsDeprecated, Betaoptionalany
deltaManagerBetaIDeltaManager<ISequencedDocumentMessage, IDocumentMessage>
existingBetareadonlyboolean
gcThrowOnTombstoneUsageBetareadonly
gcTombstoneEnforcementAllowedBetareadonly
idBetareadonlystring
idCompressorBetaIIdCompressorCore & IIdCompressor
IFluidDataStoreRegistryBetaIFluidDataStoreRegistry
IFluidHandleContextBetaIFluidHandleContext
ILayerCompatDetailsBetaoptionalunknown
isLocalDataStoreBetaboolean
minVersionForCollabBetaMinimumVersionForCollab
optionsBetaRecord<string | number, any>
packagePathBetareadonly string[]
readonlyBetaboolean
scopeBetaFluidObject
storageBetaIRuntimeStorageService

Methods

MethodAlertsReturn TypeDescription
addedGCOutboundRoute(fromPath, toPath, messageTimestampMs)Betavoid
deleteChildSummarizerNode(id)Betavoid
getAbsoluteUrl(relativeUrl)BetaPromise<string | undefined>
getAudience()BetaIAudience
getBaseGCDetails()BetaPromise<IGarbageCollectionDetailsBase>
getCreateChildSummarizerNodeFn(id, createParam)BetaCreateChildSummarizerNodeFn
getQuorum()BetaIQuorumClients
makeLocallyVisible()Betavoid
off(event, listener)Betathis
on(event, listener)Betathis
once(event, listener)Betathis
setChannelDirty(address)Betavoid
submitMessage()Betavoid
submitSignal()Betavoid
uploadBlob(blob)BetaPromise<IFluidHandleInternal<ArrayBufferLike>>

Constructor Details

(constructor)

Constructs a new instance of the MockFluidDataStoreContext class

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

constructor(id?: string, existing?: boolean, baseLogger?: ITelemetryLoggerExt, interactive?: boolean);

Parameters

ParameterModifiersTypeDescription
idoptionalstring
existingoptionalboolean
baseLoggeroptionalITelemetryLoggerExt
interactiveoptionalboolean

Property Details

attachState

Indicates the attachment state of the data store to a host service.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

attachState: AttachState;

Type: AttachState

baseLogger

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

readonly baseLogger: ITelemetryLoggerExt;

Type: ITelemetryLoggerExt

baseSnapshot

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

baseSnapshot: ISnapshotTree | undefined;

Type: ISnapshotTree | undefined

clientDetails

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

clientDetails: IClientDetails;

Type: IClientDetails

clientId

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

clientId: string | undefined;

Type: string | undefined

connected

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

connected: boolean;

Type: boolean

containerRuntime

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

containerRuntime: IContainerRuntimeBase;

Type: IContainerRuntimeBase

createProps

This API is deprecated and will be removed in a future release.

0.16 Issue #1635, #3631

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

createProps?: any;

Type: any

deltaManager

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;

Type: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>

existing

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

readonly existing: boolean;

Type: boolean

gcThrowOnTombstoneUsage

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

readonly gcThrowOnTombstoneUsage = false;

gcTombstoneEnforcementAllowed

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

readonly gcTombstoneEnforcementAllowed = false;

id

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

readonly id: string;

Type: string

idCompressor

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

idCompressor: IIdCompressorCore & IIdCompressor;

Type: IIdCompressorCore & IIdCompressor

IFluidDataStoreRegistry

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

IFluidDataStoreRegistry: IFluidDataStoreRegistry;

Type: IFluidDataStoreRegistry

IFluidHandleContext

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

IFluidHandleContext: IFluidHandleContext;

Type: IFluidHandleContext

ILayerCompatDetails

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

ILayerCompatDetails?: unknown;

Type: unknown

Remarks

This is for internal use only.

isLocalDataStore

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

isLocalDataStore: boolean;

Type: boolean

minVersionForCollab

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

minVersionForCollab: MinimumVersionForCollab;

Type: MinimumVersionForCollab

options

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

options: Record<string | number, any>;

Type: Record<string | number, any>

packagePath

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

packagePath: readonly string[];

Type: readonly string[]

readonly

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

readonly: boolean;

Type: boolean

scope

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

scope: FluidObject;

Type: FluidObject

storage

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

storage: IRuntimeStorageService;

Type: IRuntimeStorageService

Method Details

addedGCOutboundRoute

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

addedGCOutboundRoute(fromPath: string, toPath: string, messageTimestampMs?: number): void;

Parameters

ParameterModifiersTypeDescription
fromPathstring
toPathstring
messageTimestampMsoptionalnumber

deleteChildSummarizerNode

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

deleteChildSummarizerNode(id: string): void;

Parameters

ParameterTypeDescription
idstring

getAbsoluteUrl

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

getAbsoluteUrl(relativeUrl: string): Promise<string | undefined>;

Parameters

ParameterTypeDescription
relativeUrlstring

Returns

Return type: Promise<string | undefined>

getAudience

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

getAudience(): IAudience;

Returns

Return type: IAudience

getBaseGCDetails

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

getBaseGCDetails(): Promise<IGarbageCollectionDetailsBase>;

Returns

Return type: Promise<IGarbageCollectionDetailsBase>

getCreateChildSummarizerNodeFn

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

getCreateChildSummarizerNodeFn(id: string, createParam: CreateChildSummarizerNodeParam): CreateChildSummarizerNodeFn;

Parameters

ParameterTypeDescription
idstring
createParamCreateChildSummarizerNodeParam

Returns

Return type: CreateChildSummarizerNodeFn

getQuorum

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

getQuorum(): IQuorumClients;

Returns

Return type: IQuorumClients

makeLocallyVisible

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

makeLocallyVisible(): void;

off

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

off(event: string | symbol, listener: (...args: any[]) => void): this;

Parameters

ParameterTypeDescription
eventstring | symbol
listener(...args: any[]) => void

Returns

Return type: this

on

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

on(event: string | symbol, listener: (...args: any[]) => void): this;

Parameters

ParameterTypeDescription
eventstring | symbol
listener(...args: any[]) => void

Returns

Return type: this

once

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

once(event: string | symbol, listener: (...args: any[]) => void): this;

Parameters

ParameterTypeDescription
eventstring | symbol
listener(...args: any[]) => void

Returns

Return type: this

setChannelDirty

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

setChannelDirty(address: string): void;

Parameters

ParameterTypeDescription
addressstring

submitMessage

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

submitMessage(): void;

submitSignal

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

submitSignal(): void;

uploadBlob

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

uploadBlob(blob: ArrayBufferLike): Promise<IFluidHandleInternal<ArrayBufferLike>>;

Parameters

ParameterTypeDescription
blobArrayBufferLike

Returns

Return type: Promise<IFluidHandleInternal<ArrayBufferLike>>