Terafoundation: `Process Context Process Context`
process-context.ProcessContext
A Single Process Context, this should be used when running
in a single process instance/container. This context doesn't
support some of the multiple worker/assignment variations
that ClusterContext
does, like master
or worker
.
Todo
add process event handler listeners in initialize method
Todo
add shutdown handler logic with shutdown method
Type parameters
Name | Type |
---|---|
S | Record <string , any > |
A | Record <string , any > |
D | extends string = string |
Hierarchy
CoreContext
<S
,A
,D
>↳
ProcessContext
Table of contents
Constructors
Properties
Constructors
constructor
• new ProcessContext<S
, A
, D
>(config
, overrideArgs?
): ProcessContext
<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 > |
overrideArgs? | ParsedArgs <S > |
Returns
ProcessContext
<S
, A
, D
>
Overrides
Defined in
terafoundation/src/process-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
>