TVU behavior
This section describes the steps that the Transaction Validator Utility (TVU) goes through when validating transactions present in a specified database.
- Upon startup, the utility connects to the specified database.
- If it is not able to connect to the database, it exits with an error message.
- It executes distinct actions based on the specified CLI option. See TVU CLI parameters.
- It loads a transaction processing class:
- If the
-c
or--class-load
option is provided, then the user-defined transaction processing class is loaded. For more information, see User-defined transaction processing. - If the
-c
or--class-load
option is not provided, then the utility uses the default transaction processing class which includes transaction verification and deserialization.
- If the
- It starts reading transactions from the database.
- It submits transactions to an executor which processes them in separate threads using the loaded process class.
- It registers progress as per given CLI parameters.
- It registers any processing-related errors.
- It waits for all transaction processing to complete.
- It disconnects cleanly from the database, shuts down the executor when all transactions are verified and writes progress and errors to underlying resources.
- It exits upon completion or can be stopped. See the Stopping TVU section.
User-defined transaction processing
You can provide a user-defined class to process transactions at runtime using the -c
or --class-load
CLI option. If you do not provide the -c
CLI option, then the utility defaults to load the process which performs transaction verification and deserialization.
To learn how to create your own pluggable class, follow the steps in the Creating TVU classes section.
Was this page helpful?
Thanks for your feedback!
Chat with us
Chat with us on our #docs channel on slack. You can also join a lot of other slack channels there and have access to 1-on-1 communication with members of the R3 team and the online community.
Propose documentation improvements directly
Help us to improve the docs by contributing directly. It's simple - just fork this repository and raise a PR of your own - R3's Technical Writers will review it and apply the relevant suggestions.
We're sorry this page wasn't helpful. Let us know how we can make it better!
Chat with us
Chat with us on our #docs channel on slack. You can also join a lot of other slack channels there and have access to 1-on-1 communication with members of the R3 team and the online community.
Create an issue
Create a new GitHub issue in this repository - submit technical feedback, draw attention to a potential documentation bug, or share ideas for improvement and general feedback.
Propose documentation improvements directly
Help us to improve the docs by contributing directly. It's simple - just fork this repository and raise a PR of your own - R3's Technical Writers will review it and apply the relevant suggestions.