Skip to main content

StateManagementService

Index

Constructors

constructor

Methods

getModelState

  • getModelState(stateFileName: string, __namedParameters?: { freeze?: boolean }): Promise<{ data: ModelSerializedOutput; userData: object }>
  • Parameters

    • stateFileName: string
    • __namedParameters: { freeze?: boolean } = {}

    Returns Promise<{ data: ModelSerializedOutput; userData: object }>

getResourceState

  • getResourceState(stateFileName: string, __namedParameters?: { freeze?: boolean }): Promise<{ data: ResourceSerializedOutput; userData: object }>
  • Parameters

    • stateFileName: string
    • __namedParameters: { freeze?: boolean } = {}

    Returns Promise<{ data: ResourceSerializedOutput; userData: object }>

getState

  • getState(stateFileName: string, defaultValue?: any): Promise<Buffer>
  • Parameters

    • stateFileName: string
    • optionaldefaultValue: any

    Returns Promise<Buffer>

saveModelState

saveResourceState

saveState

  • saveState(stateFileName: string, data: Buffer): Promise<void>
  • Parameters

    • stateFileName: string
    • data: Buffer

    Returns Promise<void>