Terafoundation: `Cluster Context Cluster Context`
cluster-context.ClusterContext
A Cluster Context (with worker processes), useful for scaling
Type parameters
Name | Type |
---|---|
S | Record <string , any > |
A | Record <string , any > |
D | extends string = string |
Hierarchy
CoreContext
<S
,A
,D
>↳
ClusterContext
Table of contents
Constructors
Properties
Constructors
constructor
• new ClusterContext<S
, A
, D
>(config
): ClusterContext
<S
, A
, D
>
Type parameters
Name | Type |
---|---|
S | Record <string , any > |
A | Record <string , any > |
D | extends string = string |
Parameters
Name | Type |
---|---|
config | FoundationConfig <S , A , D > |
Returns
ClusterContext
<S
, A
, D
>
Overrides
Defined in
terafoundation/src/cluster-context.ts:21
Properties
apis
• Readonly
apis: ContextAPIs
& A
Inherited from
Defined in
terafoundation/src/core-context.ts:15
arch
• Readonly
arch: Architecture
= process.arch
Inherited from
Defined in
terafoundation/src/core-context.ts:19
assignment
• assignment: D
Inherited from
Defined in
terafoundation/src/core-context.ts:21
cluster
• Readonly
cluster: Cluster
Inherited from
Defined in
terafoundation/src/core-context.ts:13
cluster_name
• Optional
cluster_name: string
Inherited from
Defined in
terafoundation/src/core-context.ts:22
foundation
• Readonly
foundation: LegacyFoundationApis
Inherited from
Defined in
terafoundation/src/core-context.ts:16
logger
• Readonly
logger: Logger
Inherited from
Defined in
terafoundation/src/core-context.ts:17
name
• Readonly
name: string
Inherited from
Defined in
terafoundation/src/core-context.ts:18
platform
• Readonly
platform: Platform
= process.platform
Inherited from
Defined in
terafoundation/src/core-context.ts:20
sysconfig
• Readonly
sysconfig: FoundationSysConfig
<S
>