Skip to main content

terafoundation / cluster-context / ClusterContext

Class: ClusterContext<S, A, D>

Defined in: cluster-context.ts:16

A Cluster Context (with worker processes), useful for scaling

Extends​

Type Parameters​

Type ParameterDefault type
SRecord<string, any>
ARecord<string, any>
D extends stringstring

Constructors​

Constructor​

new ClusterContext<S, A, D>(config, sysconfig): ClusterContext<S, A, D>

Defined in: cluster-context.ts:21

Parameters​

ParameterType
configConfig<S, A, D>
sysconfigSysConfig<S>

Returns​

ClusterContext<S, A, D>

Overrides​

CoreContext.constructor

Properties​

PropertyModifierTypeDefault valueInherited fromDefined in
apisreadonlyContextAPIs & AundefinedCoreContext.apiscore-context.ts:15
archreadonlyArchitectureprocess.archCoreContext.archcore-context.ts:18
assignmentpublicDundefinedCoreContext.assignmentcore-context.ts:20
clusterreadonlyClusterundefinedCoreContext.clustercore-context.ts:13
cluster_name?publicstringundefinedCoreContext.cluster_namecore-context.ts:21
loggerreadonlyLoggerundefinedCoreContext.loggercore-context.ts:16
namereadonlystringundefinedCoreContext.namecore-context.ts:17
platformreadonlyPlatformprocess.platformCoreContext.platformcore-context.ts:19
sysconfigreadonlySysConfig<S>undefinedCoreContext.sysconfigcore-context.ts:14

Methods​

createContext()​

static createContext<S, A, D>(config): Promise<ClusterContext<S, A, D>>

Defined in: cluster-context.ts:90

Type Parameters​

Type ParameterDefault type
SRecord<string, any>
ARecord<string, any>
D extends stringstring

Parameters​

ParameterType
configConfig<S, A, D>

Returns​

Promise<ClusterContext<S, A, D>>