mirror of
https://github.com/corda/corda.git
synced 2025-05-08 19:48:11 +00:00
ENT-11037 Expose and use additional Ledger Recovery statistics (#7553)
This commit is contained in:
parent
7f867a0a49
commit
60bcc99154
@ -46,6 +46,8 @@ class ResolveTransactionsFlow private constructor(
|
|||||||
: this(transaction, transaction.dependencies, otherSide, statesToRecord, deferredAck)
|
: this(transaction, transaction.dependencies, otherSide, statesToRecord, deferredAck)
|
||||||
|
|
||||||
private var fetchNetParamsFromCounterpart = false
|
private var fetchNetParamsFromCounterpart = false
|
||||||
|
// statistics set in DbResolver (Enterprise only) after exiting recordDependencies()
|
||||||
|
var statistics: ResolveTransactionsFlowStats = ResolveTransactionsFlowStats()
|
||||||
|
|
||||||
@Suppress("MagicNumber")
|
@Suppress("MagicNumber")
|
||||||
@Suspendable
|
@Suspendable
|
||||||
@ -120,3 +122,10 @@ class ResolveTransactionsFlow private constructor(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
data class ResolveTransactionsFlowStats(
|
||||||
|
val resolvableTransactionHashesCount: Long = 0,
|
||||||
|
val downloadedDependencyCount: Long = 0,
|
||||||
|
val recordedTransactionCount: Long = 0,
|
||||||
|
val skippedRecordingTransactionCount: Long = 0
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user