Class FailsafeContextAbstract
Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:23 Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:70 Constructorsconstructor new Failsafe Context ( options ) : FailsafeContext Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:25 Accessorsassociated Fabric get associatedFabric( ) : undefined | Fabric Returns undefined | Fabric Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:30 commissioned get commissioned( ) : AsyncObservable < [ ] , void > Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:29 csr Session Id get csrSessionId( ) : undefined | number Returns undefined | number Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:31 fabric Index get fabricIndex( ) : undefined | FabricIndex Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:27 for Update Noc get forUpdateNoc( ) : undefined | boolean Returns undefined | boolean Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:32 has Root Cert get hasRootCert( ) : boolean Returns boolean Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:33 root Cert get rootCert( ) : undefined | Uint8Array Returns undefined | Uint8Array Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:34 Methodsadd Fabric add Fabric ( fabric ) : Promise < FabricIndex > Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:38 build Fabric build Fabric ( nocData ) : Promise < Fabric > Parameters nocData : { adminVendorId : VendorId ; caseAdminSubject : NodeId ; icacValue : undefined | Uint8Array ; ipkValue : Uint8Array ; nocValue : Uint8Array ; } case Admin Subject : NodeId icac Value : undefined | Uint8Array ipk Value : Uint8Array noc Value : Uint8Array Returns Promise < Fabric > Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:55 build Updated Fabric build Updated Fabric ( nocValue , icacValue ) : Promise < Fabric > Parameters nocValue : Uint8Array icacValue : undefined | Uint8Array Returns Promise < Fabric > Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:53 close close ( ) : Promise < void > Returns Promise < void > Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:46 complete Commission complete Commission ( ) : Promise < void > Returns Promise < void > Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:35 create Certificate Signing Request create Certificate Signing Request ( isForUpdateNoc , sessionId ) : Uint8Array Parameters isForUpdateNoc : boolean sessionId : number Returns Uint8Array Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:44 extend extend ( fabric , expiryLengthSeconds ) : Promise < void > Parameters fabric : undefined | Fabric expiryLengthSeconds : number Returns Promise < void > Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:26 get Fail Safe Context get Fail Safe Context ( ) : FailsafeTimer Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:36 get Next Fabric Index get Next Fabric Index ( ) : FabricIndex Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:37 remove Pase Session remove Pase Session ( ) : Promise < void > Returns Promise < void > Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:45 Abstract
restore Breadcrumb restore Breadcrumb ( ) : Promise < void > Returns Promise < void > Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:68 restore Fabric restore Fabric ( fabric ) : Promise < void > Returns Promise < void > Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:66 Abstract
restore Network State restore Network State ( ) : Promise < void > Returns Promise < void > Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:65 Abstract
revoke Fabric revoke Fabric ( fabric ) : Promise < void > Returns Promise < void > Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:67 Protected
rollback rollback ( ) : Promise < void > Returns Promise < void > Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:62 set Root Cert set Root Cert ( rootCert ) : void Returns void Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:48 Abstract
store Endpoint State store Endpoint State ( ) : Promise < void > Returns Promise < void > Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:63 update Fabric update Fabric ( fabric ) : Promise < void > Returns Promise < void > Defined in packages/protocol/dist/esm/common/FailsafeContext.d.ts:39
A "timed operation" is a command or sequence of commands that operate with a failsafe timer that will abort the operation if it does not complete within a specific window.
FailsafeContext maintains the failsafe timer and tracks information required to rollback state if the operation aborts.
Timed operations are exclusive for a node.