2022.03.21 08:07 PM
Hello Everyone,
I am doing a small project which monitors all in-coming connections to kx-platform, and customized biz logic would be executed through call-back functions.
I overwrote several event callback functions according to https://code.kx.com/platform/stream/messaging/#event-callbacks, load them to q process along with a customized a INSTANCE_CONFIG file.
Taking .dm.cb.connect for example, after hopen is called from a caller process, overwritten function should be called and corresponding logging messages should have been printed out, yet it seems overwritten function did not work. It is the same to other overwritten functions. Please let me know if you have any thoughts , thank you!
best,
leguan
2022.03.22 09:57 AM
Thanks @leguan
Also interested to hear people's ideas here.
2022.03.24 11:15 PM
Hello Everyone, the attached is exported package which includes a single example that shows the basic idea of this post. Please have a try (rename the attachment to pkg_evntCallBck.zip and import this into kxplatform) and let me know if you can make overwritten function works
There are two instances in this example, both of them loads overwritten event call back functions during start up. A test case could be: hopen from one to the other and observe whether event functions are called.
best,
leguan
2022.03.31 05:36 PM - edited 2022.04.01 07:25 AM
(removed post - noticed this is specifically kx platform so my issue is not related)
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.