corda / net.corda.core.flows / LedgerRecoveryFlow

LedgerRecoveryFlow

@StartableByRPC class LedgerRecoveryFlow : FlowLogic<LedgerRecoveryResult>

Ledger Recovery Flow (available in Enterprise only).

Types

ExtraConstructorArgs

data class ExtraConstructorArgs

Constructors

<init>

LedgerRecoveryFlow(recoveryPeer: Party)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean)
LedgerRecoveryFlow(recoveryPeer: Party, timeWindow: RecoveryTimeWindow)
LedgerRecoveryFlow(recoveryPeer: Party, timeWindow: RecoveryTimeWindow, dryRun: Boolean)
LedgerRecoveryFlow(recoveryPeer: Party, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean)
LedgerRecoveryFlow(recoveryPeer: Party, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean, alsoFinalize: Boolean)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>, timeWindow: RecoveryTimeWindow)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>, timeWindow: RecoveryTimeWindow, dryRun: Boolean)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean, alsoFinalize: Boolean)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean, timeWindow: RecoveryTimeWindow)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean, timeWindow: RecoveryTimeWindow, dryRun: Boolean)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean, recoveryBatchSize: Int, alsoFinalize: Boolean)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean, recoveryBatchSize: Int)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>, timeWindow: RecoveryTimeWindow, useAllNetworkNodes: Boolean, dryRun: Boolean, useTimeWindowNarrowing: Boolean, verboseLogging: Boolean, recoveryBatchSize: Int)

Ledger Recovery Flow (available in Enterprise only).

LedgerRecoveryFlow(parameters: LedgerRecoveryParameters, progressTracker: ProgressTracker = ProgressTracker())

Properties

progressTracker

Override this to provide a ProgressTracker. If one is provided and stepped, the framework will do something helpful with the progress reports e.g record to the audit service. If this flow is invoked as a subflow of another, then the tracker will be made a child of the current step in the parent. If it's null, this flow doesn't track progress.

val progressTracker: ProgressTracker

Functions

call

This is where you fill out your business logic.

fun call(): LedgerRecoveryResult

getExtraConstructorArgs

fun getExtraConstructorArgs(): ExtraConstructorArgs

Extension Functions

receiveAll

Suspends until a message has been received for each session in the specified sessions.

fun FlowLogic<*>.receiveAll(session: Pair<FlowSession, Class<out Any>>, vararg sessions: Pair<FlowSession, Class<out Any>>): Map<FlowSession, UntrustworthyData<Any>>
fun <R : Any> FlowLogic<*>.receiveAll(receiveType: Class<R>, session: FlowSession, vararg sessions: FlowSession): List<UntrustworthyData<R>>
fun <R : Any> FlowLogic<*>.receiveAll(session: FlowSession, vararg sessions: FlowSession): List<UntrustworthyData<R>>