Skip to content

FR-47152: add the capability to log import entry status

Documentation: http://wiki.openbravo.com/wiki/Retail:Web_POS_User_Guide#Logging_Import_Entry_Manager_status

A sample log would look like:

Import Entry Manager
* Active threads: 4/11
* Processor queue size: 0/1000
* Processors:
 Order - OrderImportEntryProcessor
  3B187EC130A549A7A9388F8060EF156D
   processing: E61BC6226DDB826D55FBAEC7CEC1769E - 273675ms
   queu: (0) - []
   ids: (1) - [E61BC6226DDB826D55FBAEC7CEC1769E]
  D270A5AC50874F8BA67A88EE977F8E3B
   processing: 7BF147A602C9639F276F1670E0ABC1D1 - 316183ms
   queu: (2) - [29512D786BF8D8AD80474FAC2FFC6CAC, 02B8D80B6084030FB808B4E9B2FC0F31]
   ids: (3) - [02B8D80B6084030FB808B4E9B2FC0F31, 7BF147A602C9639F276F1670E0ABC1D1, 29512D786BF8D8AD80474FAC2FFC6CAC]
 OBMOBC_TerminalLog - TerminalLogImportEntryProcessor
  D270A5AC50874F8BA67A88EE977F8E3B
   processing: F33563697C31F69D0641A86D75EB3006 - 336455ms
   queu: (36) - [B968689F6A25A0D1D979BF8667DD18B4, 385BFA8BFF792DB6F33040F64F4B3447, 9E41403C2F7EE312AE8363C181E78958, D6302FE96E5621F34373F0119B7303FD, 37DEBB9A5F42018CCA35F390EEFAA523, 25DC0A41014E7BB627785032E4D3EFA0, AFEE56FAD05E1B5409FFB0DD3C2BF727, 66E671FB178D554D733B76B764935AA7, 12A949470F987E3D62BD15752F078F47, BC96FB9B3EDB2863BD09F2B76D8A4E44, 7432ABF3E772BFCAC96102185BD77519, E40DFBAE0C8037671D5F5530828DC7C2, 13A7065DEC6B8059047F9D425F92BC3F, 883561779ADAFD72F4140CE9CDB0D091, B20CE08CE4D53D5AEBF16210604CC6A9, 456C10D28E7FF06E5904EF59A1648771, F639F7360B47AAB5F327F4D8B287AA18, 88A3CE9A55BBC2A9AB38ACB3635ABCF5, 44BE354445C5CC3384C785785D8E50DA, 2679F003B3CF5C4C813D0E1C4E4E8197, 0736E04023B0F1343BB9B26F82EB0EA7, C4134771F187631E0A3BB930F5B5B588, 3AB37D76E02160DE04D9F826D9B73CA5, 9E4EDDCC58CEE10009DF8B6951C839B1, E0993B7A3F5CB2C3095AFCD68F739FCA, 9DA450783C270E75F6A435EED543B35D, B3A562331CA72FD837847EFCF38FBD88, D52C0E70D66E6A385FA8A7867713D8A9, 19CE3480C25C3F9F10B834680074907C, 36B2064FA7E53626120EFF59A42D1CAF, 1AB568497508EDCA601EB4D0CACB2108, 461323D230F155966D6253567FC18B77, 933C0E07A8AC44B546CB9F9EFEC13DB4, 3343CAE0796F517E5ACE4B4905785C23, 74F80301DDD2108C0F36A9AC75328E82, ED90A8C3BC754CF940A467216A7D0605]
   ids: (37) - [74F80301DDD2108C0F36A9AC75328E82, E0993B7A3F5CB2C3095AFCD68F739FCA, 44BE354445C5CC3384C785785D8E50DA, B20CE08CE4D53D5AEBF16210604CC6A9, 3343CAE0796F517E5ACE4B4905785C23, F33563697C31F69D0641A86D75EB3006, 933C0E07A8AC44B546CB9F9EFEC13DB4, 456C10D28E7FF06E5904EF59A1648771, C4134771F187631E0A3BB930F5B5B588, F639F7360B47AAB5F327F4D8B287AA18, BC96FB9B3EDB2863BD09F2B76D8A4E44, 9DA450783C270E75F6A435EED543B35D, 385BFA8BFF792DB6F33040F64F4B3447, D6302FE96E5621F34373F0119B7303FD, 66E671FB178D554D733B76B764935AA7, B968689F6A25A0D1D979BF8667DD18B4, 9E41403C2F7EE312AE8363C181E78958, E40DFBAE0C8037671D5F5530828DC7C2, 13A7065DEC6B8059047F9D425F92BC3F, 883561779ADAFD72F4140CE9CDB0D091, 37DEBB9A5F42018CCA35F390EEFAA523, 36B2064FA7E53626120EFF59A42D1CAF, 2679F003B3CF5C4C813D0E1C4E4E8197, D52C0E70D66E6A385FA8A7867713D8A9, 461323D230F155966D6253567FC18B77, 3AB37D76E02160DE04D9F826D9B73CA5, 19CE3480C25C3F9F10B834680074907C, 25DC0A41014E7BB627785032E4D3EFA0, B3A562331CA72FD837847EFCF38FBD88, 1AB568497508EDCA601EB4D0CACB2108, 12A949470F987E3D62BD15752F078F47, 88A3CE9A55BBC2A9AB38ACB3635ABCF5, 7432ABF3E772BFCAC96102185BD77519, ED90A8C3BC754CF940A467216A7D0605, 9E4EDDCC58CEE10009DF8B6951C839B1, AFEE56FAD05E1B5409FFB0DD3C2BF727, 0736E04023B0F1343BB9B26F82EB0EA7]
 OBPOS_App_Cashup - CashUpImportEntryProcessor
  No runnables
Cluster Service - IMPORT_ENTRY - alopor[8E7CD63BA16345849B4FE7D72ED1B097]
* cluster: true
* node enabled: true
* handling in this node: true

Where:

  • Import Entry Manager: logs information about the import entry manager
    • Active threads: 4/11: there is a total of 11 threads available to process entries, currently 4 of them are actively working. Note one of them is always kept for the ImportEntryManager.
    • Processor queue size: 0/1000: there no queued processors. If new entries arrive to be processed in a processor with a key that is not active and all the available threads are consumed, they will be queued up to 1000.
    • Processors: information about the different processors
      • Order - OrderImportEntryProcessor: Information about all the Order import entry type processors, which are implemented by OrderImportEntryProcessor class. For each processors its current runnables are listed
        • 3B187EC130A549A7A9388F8060EF156D: key used for this processor, the key generator is specific for each import entry processor, in the case of the OrderImportEntryProcessor (and some others) it is the organization of the entry to process. All the entries for the same key are guaranteed to be processed sequentially.
        • processing: E61BC6226DDB826D55FBAEC7CEC1769E - 273675ms: This runnable is processing the import entry with ID E61BC6226DDB826D55FBAEC7CEC1769E, processing it started 273675ms ago.
        • queu(0) - []: the queu of other entries to be processed by this runnable once current one completes
        • ids: (unsorted) it should always keep the same information as queue + processing ID
      • OBPOS_App_Cashup - CashUpImportEntryProcessor
        • No runnables: Currently there is no registered runnables to execute cashup entries. Once the queue of entries to process by a runnable is emptied, it gets unregistered.
  • Cluster Service - IMPORT_ENTRY - alopor[8E7CD63BA16345849B4FE7D72ED1B097]: Information about the cluster service, for the IMPORT_ENTRY. This node is named alopor and its internal ID is 8E7CD63BA16345849B4FE7D72ED1B097.
    • cluster: true: we are in a cluster, controlled by cluster property in Openbravo.properties.
    • node enabled: true: current node is enabled. In a cluster it is possible to make only some nodes to execute import entries process
    • handling in this node: true: This is the node that is currently handling import entries. In case another node was handling them, information about that node would be logged.
Edited by Asier Lostalé

Merge request reports