MockFluidDataStoreContext Class
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
| Constructor | Alerts | Description |
|---|---|---|
| (constructor)(id, existing, baseLogger, interactive) | Beta |
Constructs a new instance of the MockFluidDataStoreContext class |
Properties
Methods
| Method | Alerts | Return Type | Description |
|---|---|---|---|
| addedGCOutboundRoute(fromPath, toPath, messageTimestampMs) | Beta |
void | |
| deleteChildSummarizerNode(id) | Beta |
void | |
| getAbsoluteUrl(relativeUrl) | Beta |
Promise<string | undefined> | |
| getAudience() | Beta |
IAudience | |
| getBaseGCDetails() | Beta |
Promise<IGarbageCollectionDetailsBase> | |
| getCreateChildSummarizerNodeFn(id, createParam) | Beta |
CreateChildSummarizerNodeFn | |
| getQuorum() | Beta |
IQuorumClients | |
| makeLocallyVisible() | Beta |
void | |
| off(event, listener) | Beta |
this | |
| on(event, listener) | Beta |
this | |
| once(event, listener) | Beta |
this | |
| setChannelDirty(address) | Beta |
void | |
| submitMessage() | Beta |
void | |
| submitSignal() | Beta |
void | |
| uploadBlob(blob) | Beta |
Promise<IFluidHandleInternal<ArrayBufferLike>> |
Constructor Details
(constructor)
Constructs a new instance of the MockFluidDataStoreContext class
For more information about our API support guarantees, see here.
Signature
constructor(id?: string, existing?: boolean, baseLogger?: ITelemetryLoggerExt, interactive?: boolean);
Parameters
| Parameter | Modifiers | Type | Description |
|---|---|---|---|
| id | optional | string | |
| existing | optional | boolean | |
| baseLogger | optional | ITelemetryLoggerExt | |
| interactive | optional | boolean |
Property Details
attachState
Indicates the attachment state of the data store to a host service.
For more information about our API support guarantees, see here.
Signature
attachState: AttachState;
Type: AttachState
baseLogger
For more information about our API support guarantees, see here.
Signature
readonly baseLogger: ITelemetryLoggerExt;
Type: ITelemetryLoggerExt
baseSnapshot
For more information about our API support guarantees, see here.
Signature
baseSnapshot: ISnapshotTree | undefined;
Type: ISnapshotTree | undefined
clientDetails
For more information about our API support guarantees, see here.
Signature
clientDetails: IClientDetails;
Type: IClientDetails
clientId
For more information about our API support guarantees, see here.
Signature
clientId: string | undefined;
Type: string | undefined
connected
For more information about our API support guarantees, see here.
Signature
connected: boolean;
Type: boolean
containerRuntime
For more information about our API support guarantees, see here.
Signature
containerRuntime: IContainerRuntimeBase;
Type: IContainerRuntimeBase
createProps
0.16 Issue #1635, #3631
For more information about our API support guarantees, see here.
Signature
createProps?: any;
Type: any
deltaManager
For more information about our API support guarantees, see here.
Signature
deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
Type: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>
existing
For more information about our API support guarantees, see here.
Signature
readonly existing: boolean;
Type: boolean
gcThrowOnTombstoneUsage
For more information about our API support guarantees, see here.
Signature
readonly gcThrowOnTombstoneUsage = false;
gcTombstoneEnforcementAllowed
For more information about our API support guarantees, see here.
Signature
readonly gcTombstoneEnforcementAllowed = false;
id
For more information about our API support guarantees, see here.
Signature
readonly id: string;
Type: string
idCompressor
For more information about our API support guarantees, see here.
Signature
idCompressor: IIdCompressorCore & IIdCompressor;
Type: IIdCompressorCore & IIdCompressor
IFluidDataStoreRegistry
For more information about our API support guarantees, see here.
Signature
IFluidDataStoreRegistry: IFluidDataStoreRegistry;
Type: IFluidDataStoreRegistry
IFluidHandleContext
For more information about our API support guarantees, see here.
Signature
IFluidHandleContext: IFluidHandleContext;
Type: IFluidHandleContext
ILayerCompatDetails
For more information about our API support guarantees, see here.
Signature
ILayerCompatDetails?: unknown;
Type: unknown
Remarks
This is for internal use only.
isLocalDataStore
For more information about our API support guarantees, see here.
Signature
isLocalDataStore: boolean;
Type: boolean
minVersionForCollab
For more information about our API support guarantees, see here.
Signature
minVersionForCollab: MinimumVersionForCollab;
Type: MinimumVersionForCollab
options
For more information about our API support guarantees, see here.
Signature
options: Record<string | number, any>;
Type: Record<string | number, any>
packagePath
For more information about our API support guarantees, see here.
Signature
packagePath: readonly string[];
Type: readonly string[]
readonly
For more information about our API support guarantees, see here.
Signature
readonly: boolean;
Type: boolean
scope
For more information about our API support guarantees, see here.
Signature
scope: FluidObject;
Type: FluidObject
storage
For more information about our API support guarantees, see here.
Signature
storage: IRuntimeStorageService;
Type: IRuntimeStorageService
Method Details
addedGCOutboundRoute
For more information about our API support guarantees, see here.
Signature
addedGCOutboundRoute(fromPath: string, toPath: string, messageTimestampMs?: number): void;
Parameters
| Parameter | Modifiers | Type | Description |
|---|---|---|---|
| fromPath | string | ||
| toPath | string | ||
| messageTimestampMs | optional | number |
deleteChildSummarizerNode
For more information about our API support guarantees, see here.
Signature
deleteChildSummarizerNode(id: string): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| id | string |
getAbsoluteUrl
For more information about our API support guarantees, see here.
Signature
getAbsoluteUrl(relativeUrl: string): Promise<string | undefined>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| relativeUrl | string |
Returns
Return type: Promise<string | undefined>
getAudience
For more information about our API support guarantees, see here.
Signature
getAudience(): IAudience;
Returns
Return type: IAudience
getBaseGCDetails
For more information about our API support guarantees, see here.
Signature
getBaseGCDetails(): Promise<IGarbageCollectionDetailsBase>;
Returns
Return type: Promise<IGarbageCollectionDetailsBase>
getCreateChildSummarizerNodeFn
For more information about our API support guarantees, see here.
Signature
getCreateChildSummarizerNodeFn(id: string, createParam: CreateChildSummarizerNodeParam): CreateChildSummarizerNodeFn;
Parameters
| Parameter | Type | Description |
|---|---|---|
| id | string | |
| createParam | CreateChildSummarizerNodeParam |
Returns
Return type: CreateChildSummarizerNodeFn
getQuorum
For more information about our API support guarantees, see here.
Signature
getQuorum(): IQuorumClients;
Returns
Return type: IQuorumClients
makeLocallyVisible
For more information about our API support guarantees, see here.
Signature
makeLocallyVisible(): void;
off
For more information about our API support guarantees, see here.
Signature
off(event: string | symbol, listener: (...args: any[]) => void): this;
Parameters
| Parameter | Type | Description |
|---|---|---|
| event | string | symbol | |
| listener | (...args: any[]) => void |
Returns
Return type: this
on
For more information about our API support guarantees, see here.
Signature
on(event: string | symbol, listener: (...args: any[]) => void): this;
Parameters
| Parameter | Type | Description |
|---|---|---|
| event | string | symbol | |
| listener | (...args: any[]) => void |
Returns
Return type: this
once
For more information about our API support guarantees, see here.
Signature
once(event: string | symbol, listener: (...args: any[]) => void): this;
Parameters
| Parameter | Type | Description |
|---|---|---|
| event | string | symbol | |
| listener | (...args: any[]) => void |
Returns
Return type: this
setChannelDirty
For more information about our API support guarantees, see here.
Signature
setChannelDirty(address: string): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| address | string |
submitMessage
For more information about our API support guarantees, see here.
Signature
submitMessage(): void;
submitSignal
For more information about our API support guarantees, see here.
Signature
submitSignal(): void;
uploadBlob
For more information about our API support guarantees, see here.
Signature
uploadBlob(blob: ArrayBufferLike): Promise<IFluidHandleInternal<ArrayBufferLike>>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| blob | ArrayBufferLike |
Returns
Return type: Promise<IFluidHandleInternal<ArrayBufferLike>>