interface - Transfer
This topic discusses the functions to execute a transfer with the PLANTA link API and how to read the results.
Classes
CounterDimmer
The CounterDimmer class displays a dimmer during the transfer and records the results
All transfer methods return the
CounterDimmerinstance so you can check what happened
Properties
Property | Getter | Setter | Description |
|---|---|---|---|
CounterDimmer.critical |
|
|
|
CounterDimmer.duration |
|
| Duration of the transfer in seconds |
CounterDimmer.errors |
|
| Number of records that couldn't be received by the target module |
CounterDimmer.received_records |
|
| Total number of records received by the target module |
CounterDimmer.sent_records |
|
| Total number of records sent by the source module |
CounterDimmer.was_successful |
|
|
|
Functions
All transfer functions need an instance that is derived from ppms.interface.Config to execute the interface
If you do not have a reason to explicitly use the base
ppms.interface.Configclass you should use theppms.interface.StaticConfigclass as it outperforms the former heavily
Function | Parameters | Return Value | Description |
|---|---|---|---|
direct_transfer | invoker_module: A |
| Transfer the data from the source module to the target module. Use this if you have no pool module. |
transfer_both_steps | invoker_module: A |
| Perform |
transfer_step_one | invoker_module: A |
| Transfer the data from the source module to the pool module. |
transfer_step_two | invoker_module: A |
| Transfer the data from the pool module to the target module. Make sure to call |