javonet-ruby-sdk 2.5.1 → 2.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/javonet-ruby-sdk/Binaries/Clr/Javonet.Clr.Utils.dll +0 -0
  4. data/lib/javonet-ruby-sdk/Binaries/Clr/JavonetClrRuntime.dll +0 -0
  5. data/lib/javonet-ruby-sdk/Binaries/Jvm/JavonetJvmRuntime.jar +0 -0
  6. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetActivationService.so +0 -0
  7. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetCppRuntimeNative.so +0 -0
  8. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetGoRuntimeNative.so +0 -0
  9. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetJvmRuntimeNative.so +0 -0
  10. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetNetcoreRuntimeNative.so +0 -0
  11. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetPythonRuntimeNative.so +0 -0
  12. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetRuby278RuntimeNative.so +0 -0
  13. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetRubyRuntimeNative.so +0 -0
  14. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetTcpClient.so +0 -0
  15. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetTcpTlsClient.so +0 -0
  16. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libUtils.so +0 -0
  17. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/version.txt +1 -1
  18. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/NativeUtilsUnitTests.xml +18 -18
  19. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetActivationService.so +0 -0
  20. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetCppRuntimeNative.so +0 -0
  21. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetGoRuntimeNative.so +0 -0
  22. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetJvmRuntimeNative.so +0 -0
  23. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNetcoreRuntimeNative.so +0 -0
  24. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejs1816RuntimeNative.so +0 -0
  25. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejsRuntimeNative.so +0 -0
  26. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetPerlRuntimeNative.so +0 -0
  27. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetPythonRuntimeNative.so +0 -0
  28. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetRuby278RuntimeNative.so +0 -0
  29. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetRubyRuntimeNative.so +0 -0
  30. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetTcpClient.so +0 -0
  31. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetTcpTlsClient.so +0 -0
  32. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libUtils.so +0 -0
  33. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libJavonetActivationService.so +0 -0
  34. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libJavonetTcpTlsClient.so +0 -0
  35. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libUtils.so +0 -0
  36. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/version.txt +1 -1
  37. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetActivationService.dylib +0 -0
  38. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetCppRuntimeNative.dylib +0 -0
  39. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetGoRuntimeNative.dylib +0 -0
  40. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetJvmRuntimeNative.dylib +0 -0
  41. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNetcoreRuntimeNative.dylib +0 -0
  42. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejs1816RuntimeNative.dylib +0 -0
  43. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejsRuntimeNative.dylib +0 -0
  44. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPerlRuntimeNative.dylib +0 -0
  45. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPythonRuntimeNative.dylib +0 -0
  46. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetRuby278RuntimeNative.dylib +0 -0
  47. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetRubyRuntimeNative.dylib +0 -0
  48. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetTcpClient.dylib +0 -0
  49. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetTcpTlsClient.dylib +0 -0
  50. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libUtils.dylib +0 -0
  51. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/version.txt +1 -1
  52. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetActivationService.dll +0 -0
  53. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetCppRuntimeNative.dll +0 -0
  54. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetGoRuntimeNative.dll +0 -0
  55. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetJvmRuntimeNative.dll +0 -0
  56. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetNetcoreRuntimeNative.dll +0 -0
  57. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetPythonRuntimeNative.dll +0 -0
  58. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetRuby278RuntimeNative.dll +0 -0
  59. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetRubyRuntimeNative.dll +0 -0
  60. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpClient.dll +0 -0
  61. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpTlsClient.dll +0 -0
  62. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/Utils.dll +0 -0
  63. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/version.txt +0 -0
  64. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetActivationService.dll +0 -0
  65. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetClrRuntimeNative.dll +0 -0
  66. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetCppRuntimeNative.dll +0 -0
  67. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetGoRuntimeNative.dll +0 -0
  68. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetJvmRuntimeNative.dll +0 -0
  69. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNetcoreRuntimeNative.dll +0 -0
  70. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejs1816RuntimeNative.dll +0 -0
  71. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejsRuntimeNative.dll +0 -0
  72. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPerlRuntimeNative.dll +0 -0
  73. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPythonRuntimeNative.dll +0 -0
  74. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetRuby278RuntimeNative.dll +0 -0
  75. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
  76. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpClient.dll +0 -0
  77. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpTlsClient.dll +0 -0
  78. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/Utils.dll +0 -0
  79. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/version.txt +1 -1
  80. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetActivationService.dll +0 -0
  81. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetClrRuntimeNative.dll +0 -0
  82. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetCppRuntimeNative.dll +0 -0
  83. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetGoRuntimeNative.dll +0 -0
  84. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetJvmRuntimeNative.dll +0 -0
  85. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetNetcoreRuntimeNative.dll +0 -0
  86. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetPythonRuntimeNative.dll +0 -0
  87. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpClient.dll +0 -0
  88. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpTlsClient.dll +0 -0
  89. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/Utils.dll +0 -0
  90. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/version.txt +1 -1
  91. data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Core.dll +0 -0
  92. data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Utils.dll +0 -0
  93. data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/interpreter/Interpreter.js +43 -24
  94. data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/protocol/CommandSerializer.js +13 -45
  95. data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/receiver/Receiver.js +12 -2
  96. data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/transmitter/Transmitter.js +2 -14
  97. data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/transmitter/TransmitterWrapper.js +1 -1
  98. data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/webSocketClient/WebSocketClient.js +133 -0
  99. data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/ConnectionType.js +2 -1
  100. data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/RuntimeLogger.js +27 -0
  101. data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/IConnectionData.js +17 -0
  102. data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/InMemoryConnectionData.js +28 -0
  103. data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/{TcpConnectionData.js → connectionData/TcpConnectionData.js} +26 -6
  104. data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/WsConnectionData.js +33 -0
  105. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/List/Util/XS.pm +1 -1
  106. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/List/Util.pm +1 -1
  107. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/Scalar/List/Utils.pm +43 -0
  108. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/Scalar/Util.pm +1 -1
  109. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/Sub/Util.pm +1 -1
  110. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Class/Load/XS/XS.so +0 -0
  111. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Data/UUID/UUID.so +0 -0
  112. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/FFI/Platypus/Platypus.so +0 -0
  113. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/List/Util/Util.so +0 -0
  114. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
  115. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/PPI/XS/XS.so +0 -0
  116. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Package/Stash/XS/XS.so +0 -0
  117. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Params/Util/Util.so +0 -0
  118. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
  119. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/lib/libplfill.so +0 -0
  120. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +89 -89
  121. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Protocol/CommandSerializer.pm +10 -27
  122. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Protocol/TypeSerializer.pm +20 -0
  123. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Receiver/Receiver.pm +6 -0
  124. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Javonet.pm +2 -0
  125. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Sdk/Core/RuntimeLogger.pm +34 -0
  126. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
  127. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
  128. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Scalar/Util/Numeric/Numeric.xs.dll +0 -0
  129. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
  130. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
  131. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +19 -19
  132. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Protocol/CommandSerializer.pm +10 -27
  133. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Protocol/TypeSerializer.pm +20 -0
  134. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Receiver/Receiver.pm +6 -0
  135. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Javonet.pm +2 -0
  136. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Sdk/Core/RuntimeLogger.pm +34 -0
  137. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/__pycache__/__init__.cpython-312.pyc +0 -0
  138. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/callback/callbackFunc.py +4 -2
  139. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/DelegatesCache.py +39 -0
  140. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__init__.py +0 -0
  141. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/DelegatesCache.cpython-312.pyc +0 -0
  142. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/__init__.cpython-312.pyc +0 -0
  143. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/__pycache__/__init__.cpython-312.pyc +0 -0
  144. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/internal/__pycache__/PythonStringBuilder.cpython-312.pyc +0 -0
  145. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/internal/__pycache__/__init__.cpython-312.pyc +0 -0
  146. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/CreateClassInstanceHandler.py +1 -7
  147. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/GetInstanceMethodAsDelegateHandler.py +29 -0
  148. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/GetStaticMethodAsDelegateHandler.py +31 -0
  149. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/GetTypeHandler.py +4 -3
  150. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/Handler.py +9 -0
  151. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/InvokeDelegateHandler.py +27 -0
  152. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/InvokeStaticMethodHandler.py +0 -2
  153. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/PassDelegateHandler.py +21 -0
  154. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AbstractCommandHandler.cpython-312.pyc +0 -0
  155. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AbstractHandler.cpython-312.pyc +0 -0
  156. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetItemHandler.cpython-312.pyc +0 -0
  157. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetRankHandler.cpython-312.pyc +0 -0
  158. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetSizeHandler.cpython-312.pyc +0 -0
  159. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayHandler.cpython-312.pyc +0 -0
  160. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArraySetItemHandler.cpython-312.pyc +0 -0
  161. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CastingHandler.cpython-312.pyc +0 -0
  162. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CreateClassInstanceHandler.cpython-312.pyc +0 -0
  163. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/DestructReferenceHandler.cpython-312.pyc +0 -0
  164. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/EnableNamespaceHandler.cpython-312.pyc +0 -0
  165. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/EnableTypeHandler.cpython-312.pyc +0 -0
  166. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumItemHandler.cpython-312.pyc +0 -0
  167. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumNameHandler.cpython-312.pyc +0 -0
  168. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumValueHandler.cpython-312.pyc +0 -0
  169. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceFieldHandler.cpython-312.pyc +0 -0
  170. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceMethodAsDelegateHandler.cpython-312.pyc +0 -0
  171. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetStaticFieldHandler.cpython-312.pyc +0 -0
  172. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetStaticMethodAsDelegateHandler.cpython-312.pyc +0 -0
  173. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetTypeHandler.cpython-312.pyc +0 -0
  174. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/Handler.cpython-312.pyc +0 -0
  175. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/HandlerDictionary.cpython-312.pyc +0 -0
  176. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeDelegateHandler.cpython-312.pyc +0 -0
  177. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeInstanceMethodHandler.cpython-312.pyc +0 -0
  178. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeStaticMethodHandler.cpython-312.pyc +0 -0
  179. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/LoadLibraryHandler.cpython-312.pyc +0 -0
  180. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/PassDelegateHandler.cpython-312.pyc +0 -0
  181. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ResolveInstanceHandler.cpython-312.pyc +0 -0
  182. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetInstanceFieldHandler.cpython-312.pyc +0 -0
  183. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetStaticFieldHandler.cpython-312.pyc +0 -0
  184. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ValueHandler.cpython-312.pyc +0 -0
  185. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/__init__.cpython-312.pyc +0 -0
  186. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/Interpreter.py +0 -1
  187. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/Interpreter.cpython-312.pyc +0 -0
  188. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/__init__.cpython-312.pyc +0 -0
  189. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/NamespaceCache.cpython-312.pyc +0 -0
  190. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/__init__.cpython-312.pyc +0 -0
  191. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/CommandDeserializer.py +1 -0
  192. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/CommandSerializer.py +13 -46
  193. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/TypeSerializer.py +21 -1
  194. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandDeserializer.cpython-312.pyc +0 -0
  195. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandSerializer.cpython-312.pyc +0 -0
  196. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeDeserializer.cpython-312.pyc +0 -0
  197. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeSerializer.cpython-312.pyc +0 -0
  198. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/__init__.cpython-312.pyc +0 -0
  199. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/Receiver.py +5 -0
  200. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/Receiver.cpython-312.pyc +0 -0
  201. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/__init__.cpython-312.pyc +0 -0
  202. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/ReferencesCache.cpython-312.pyc +0 -0
  203. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/__init__.cpython-312.pyc +0 -0
  204. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/transmitter/TransmitterWrapper.py +7 -3
  205. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/TypeCache.cpython-312.pyc +0 -0
  206. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/__init__.cpython-312.pyc +0 -0
  207. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/CommandType.py +4 -0
  208. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/RuntimeLogger.py +30 -0
  209. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Command.cpython-312.pyc +0 -0
  210. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/CommandType.cpython-312.pyc +0 -0
  211. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ConnectionType.cpython-312.pyc +0 -0
  212. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ExceptionType.cpython-312.pyc +0 -0
  213. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeLogger.cpython-312.pyc +0 -0
  214. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeName.cpython-312.pyc +0 -0
  215. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/StringEncodingMode.cpython-312.pyc +0 -0
  216. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Type.cpython-312.pyc +0 -0
  217. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/__init__.cpython-312.pyc +0 -0
  218. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/IConnectionData.cpython-312.pyc +0 -0
  219. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/InMemoryConnectionData.cpython-312.pyc +0 -0
  220. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/__init__.cpython-312.pyc +0 -0
  221. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/ExceptionSerializer.cpython-312.pyc +0 -0
  222. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/__init__.cpython-312.pyc +0 -0
  223. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/interpreter/interpreter.rb +6 -10
  224. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/protocol/command_deserializer.rb +2 -2
  225. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/transmitter/transmitter.rb +4 -16
  226. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/interpreter/interpreter.rb +6 -10
  227. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/protocol/command_deserializer.rb +2 -2
  228. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/transmitter/transmitter.rb +4 -16
  229. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/interpreter/interpreter.rb +6 -10
  230. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/protocol/command_deserializer.rb +2 -2
  231. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/transmitter/transmitter.rb +4 -16
  232. data/lib/javonet-ruby-sdk/Binaries/version.txt +1 -1
  233. data/lib/javonet-ruby-sdk/core/interpreter/interpreter.rb +6 -10
  234. data/lib/javonet-ruby-sdk/core/protocol/command_deserializer.rb +2 -2
  235. data/lib/javonet-ruby-sdk/core/transmitter/transmitter.rb +4 -16
  236. data/lib/javonet-ruby-sdk/sdk/invocation_context.rb +6 -0
  237. data/lib/javonet-ruby-sdk/sdk/javonet.rb +3 -3
  238. metadata +25 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f10d0288c84dc4df8428dee8f95d7af6811628d76933139cec2657b5261710ec
4
- data.tar.gz: fe3cad81c19333ee2a0efd9a594b8a5e92acae6efcf585ec397aeb307bacd2f6
3
+ metadata.gz: 2c6b8f1d33fa11a70b33d0065d9b3c08182c7409f8da9af6fc911590dcca74c8
4
+ data.tar.gz: e743e8377d61db1ee4c8e9d2af441e96f4cf01b929c4bda4e8191196eb04891d
5
5
  SHA512:
6
- metadata.gz: c1aa0db8e48782693f02cafb63061fb18002d5da1335b96b694064e2337bf42e48ba45850c0fc7ef6a9e19d98f9e52c43fedd26976510216904f29f17dd905fe
7
- data.tar.gz: 6cdf6fa48832c57cefc951805e9ebfac384d1471c1882537511477024d995e3ff0c001fdb6fb296b71343e5547c88b21b81e6adb560f56461af6288a525f31e1
6
+ metadata.gz: 1244bd9ce35599edbe288abb8d4c8de3e48454fd988fbb597112c0368ed305757cac6d7b93af7b0f0a378d6b2a5ed4608f89e6d8af06e47c06ae2a5955435a69
7
+ data.tar.gz: 9469938c2b75dd528e2e6dd238378fe25e729eff591a2d0ddd5ba79a0d019b9c2ae67b08f57d0dbcaf99661ae0a1124d54e86f095f144992b7d0e7d099b1ba10
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.5.3
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.5.3
@@ -1,21 +1,21 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuites tests="16" failures="0" disabled="0" errors="0" time="3.998" timestamp="2024-10-11T06:08:58.560" name="AllTests">
3
- <testsuite name="Unit" tests="16" failures="0" disabled="0" skipped="0" errors="0" time="3.998" timestamp="2024-10-11T06:08:58.560">
4
- <testcase name="Activation_Activate_correct_credentials" file="/home/vsts/work/1/s/src/native/UnitTests/ActivationTests.cpp" line="8" status="run" result="completed" time="2.291" timestamp="2024-10-11T06:08:58.560" classname="Unit" />
5
- <testcase name="Activation_Activate_javonet_lic_exists" file="/home/vsts/work/1/s/src/native/UnitTests/ActivationTests.cpp" line="15" status="run" result="completed" time="0.033" timestamp="2024-10-11T06:09:00.852" classname="Unit" />
6
- <testcase name="Activation_Activate_incorrect_license_key" file="/home/vsts/work/1/s/src/native/UnitTests/ActivationTests.cpp" line="21" status="run" result="completed" time="0.616" timestamp="2024-10-11T06:09:00.885" classname="Unit" />
7
- <testcase name="ConfigFileReader_ExisitingFile" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="8" status="run" result="completed" time="0." timestamp="2024-10-11T06:09:01.503" classname="Unit" />
8
- <testcase name="SetConfigSource_MissingFile" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="13" status="run" result="completed" time="0.517" timestamp="2024-10-11T06:09:01.503" classname="Unit" />
9
- <testcase name="ConfigFileReader_GetLicenseKey" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="33" status="run" result="completed" time="0." timestamp="2024-10-11T06:09:02.021" classname="Unit" />
10
- <testcase name="ConfigFileReader_GetRuntimeName_Jvm" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="39" status="run" result="completed" time="0." timestamp="2024-10-11T06:09:02.021" classname="Unit" />
11
- <testcase name="ConfigFileReader_GetRuntimeName_Netcore" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="45" status="run" result="completed" time="0." timestamp="2024-10-11T06:09:02.021" classname="Unit" />
12
- <testcase name="ConfigFileReader_GetRuntimeType_MissingType" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="51" status="run" result="completed" time="0.515" timestamp="2024-10-11T06:09:02.022" classname="Unit" />
13
- <testcase name="ConfigFileReader_GetChannelType_Jvm" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="69" status="run" result="completed" time="0." timestamp="2024-10-11T06:09:02.537" classname="Unit" />
14
- <testcase name="ConfigFileReader_GetChannelType_Netcore" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="75" status="run" result="completed" time="0." timestamp="2024-10-11T06:09:02.538" classname="Unit" />
15
- <testcase name="ConfigFileReader_GetChannelHost_Jvm" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="81" status="run" result="completed" time="0." timestamp="2024-10-11T06:09:02.538" classname="Unit" />
16
- <testcase name="ConfigFileReader_GetChannelHost_Netcore" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="88" status="run" result="completed" time="0." timestamp="2024-10-11T06:09:02.539" classname="Unit" />
17
- <testcase name="ConfigFileReader_GetChannelPort_Jvm" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="95" status="run" result="completed" time="0.001" timestamp="2024-10-11T06:09:02.539" classname="Unit" />
18
- <testcase name="ConfigFileReader_GetChannelPort_Netcore" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="102" status="run" result="completed" time="0." timestamp="2024-10-11T06:09:02.540" classname="Unit" />
19
- <testcase name="AppInsightLogger" file="/home/vsts/work/1/s/src/native/UnitTests/LoggingTests.cpp" line="4" status="run" result="completed" time="0.017" timestamp="2024-10-11T06:09:02.541" classname="Unit" />
2
+ <testsuites tests="16" failures="0" disabled="0" errors="0" time="4.574" timestamp="2024-11-04T20:08:09.557" name="AllTests">
3
+ <testsuite name="Unit" tests="16" failures="0" disabled="0" skipped="0" errors="0" time="4.574" timestamp="2024-11-04T20:08:09.557">
4
+ <testcase name="Activation_Activate_correct_credentials" file="/home/vsts/work/1/s/src/native/UnitTests/ActivationTests.cpp" line="8" status="run" result="completed" time="2.808" timestamp="2024-11-04T20:08:09.557" classname="Unit" />
5
+ <testcase name="Activation_Activate_javonet_lic_exists" file="/home/vsts/work/1/s/src/native/UnitTests/ActivationTests.cpp" line="15" status="run" result="completed" time="0.027" timestamp="2024-11-04T20:08:12.365" classname="Unit" />
6
+ <testcase name="Activation_Activate_incorrect_license_key" file="/home/vsts/work/1/s/src/native/UnitTests/ActivationTests.cpp" line="21" status="run" result="completed" time="0.655" timestamp="2024-11-04T20:08:12.392" classname="Unit" />
7
+ <testcase name="ConfigFileReader_ExisitingFile" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="8" status="run" result="completed" time="0." timestamp="2024-11-04T20:08:13.047" classname="Unit" />
8
+ <testcase name="SetConfigSource_MissingFile" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="13" status="run" result="completed" time="0.533" timestamp="2024-11-04T20:08:13.047" classname="Unit" />
9
+ <testcase name="ConfigFileReader_GetLicenseKey" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="33" status="run" result="completed" time="0." timestamp="2024-11-04T20:08:13.581" classname="Unit" />
10
+ <testcase name="ConfigFileReader_GetRuntimeName_Jvm" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="39" status="run" result="completed" time="0." timestamp="2024-11-04T20:08:13.582" classname="Unit" />
11
+ <testcase name="ConfigFileReader_GetRuntimeName_Netcore" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="45" status="run" result="completed" time="0." timestamp="2024-11-04T20:08:13.582" classname="Unit" />
12
+ <testcase name="ConfigFileReader_GetRuntimeType_MissingType" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="51" status="run" result="completed" time="0.527" timestamp="2024-11-04T20:08:13.583" classname="Unit" />
13
+ <testcase name="ConfigFileReader_GetChannelType_Jvm" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="69" status="run" result="completed" time="0." timestamp="2024-11-04T20:08:14.110" classname="Unit" />
14
+ <testcase name="ConfigFileReader_GetChannelType_Netcore" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="75" status="run" result="completed" time="0." timestamp="2024-11-04T20:08:14.110" classname="Unit" />
15
+ <testcase name="ConfigFileReader_GetChannelHost_Jvm" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="81" status="run" result="completed" time="0." timestamp="2024-11-04T20:08:14.111" classname="Unit" />
16
+ <testcase name="ConfigFileReader_GetChannelHost_Netcore" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="88" status="run" result="completed" time="0." timestamp="2024-11-04T20:08:14.111" classname="Unit" />
17
+ <testcase name="ConfigFileReader_GetChannelPort_Jvm" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="95" status="run" result="completed" time="0." timestamp="2024-11-04T20:08:14.112" classname="Unit" />
18
+ <testcase name="ConfigFileReader_GetChannelPort_Netcore" file="/home/vsts/work/1/s/src/native/UnitTests/ConfigFileReaderTests.cpp" line="102" status="run" result="completed" time="0." timestamp="2024-11-04T20:08:14.112" classname="Unit" />
19
+ <testcase name="AppInsightLogger" file="/home/vsts/work/1/s/src/native/UnitTests/LoggingTests.cpp" line="4" status="run" result="completed" time="0.018" timestamp="2024-11-04T20:08:14.113" classname="Unit" />
20
20
  </testsuite>
21
21
  </testsuites>
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.5.3
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.5.3
@@ -1 +1 @@
1
- '2.5.1'
1
+ '2.5.3'
@@ -1 +1 @@
1
- '2.5.1'
1
+ '2.5.3'
@@ -10,36 +10,55 @@ let Receiver
10
10
  class Interpreter {
11
11
  handler = new Handler()
12
12
 
13
- execute(command, connectionType, tcpAddress) {
14
- let commandSerializer = new CommandSerializer()
15
- let byteMessage = commandSerializer.serialize(command,connectionType, tcpAddress)
16
- let responseByteArray
17
-
18
- if (command.runtimeName === Runtime.Nodejs && connectionType === ConnectionType.IN_MEMORY)
19
- {
20
- // lazy receiver loading
21
- if (!Receiver) {
22
- Receiver = require('../receiver/Receiver')
23
- }
24
- responseByteArray = Receiver.sendCommand(byteMessage)
13
+ async executeAsync(command, connectionData) {
14
+ try {
15
+ const messageByteArray = new CommandSerializer().serialize(command, connectionData)
16
+
17
+ if (connectionData.connectionType === ConnectionType.WEB_SOCKET) {
18
+ const { WebSocketClient } = require("../webSocketClient/WebSocketClient");
19
+ const wsClient = new WebSocketClient(connectionData.hostname, null)
25
20
 
21
+ const responseByteArray = await wsClient.send(messageByteArray)
22
+ return new CommandDeserializer(responseByteArray).deserialize()
23
+ }
24
+ else {
25
+ return this.execute(command, connectionData)
26
+ }
27
+ } catch (error) {
28
+ // TODO: handle error exception log?
26
29
  }
27
- else {
28
- // lazy transmitter loading
29
- if (!Transmitter) {
30
- Transmitter = require('../transmitter/Transmitter')
30
+ }
31
+
32
+ execute(command, connectionData) {
33
+ try {
34
+ let messageByteArray = new CommandSerializer().serialize(command, connectionData)
35
+ let responseByteArray
36
+
37
+ if (command.runtimeName === Runtime.Nodejs && connectionData.connectionType === ConnectionType.IN_MEMORY)
38
+ {
39
+ // lazy receiver loading
40
+ if (!Receiver) {
41
+ Receiver = require('../receiver/Receiver')
42
+ }
43
+ responseByteArray = Receiver.sendCommand(messageByteArray)
44
+
45
+ }
46
+ else {
47
+ // lazy transmitter loading
48
+ if (!Transmitter) {
49
+ Transmitter = require('../transmitter/Transmitter')
50
+ }
51
+ responseByteArray = Transmitter.sendCommand(messageByteArray)
31
52
  }
32
- responseByteArray = Transmitter.sendCommand(byteMessage)
53
+ return new CommandDeserializer(responseByteArray).deserialize()
54
+ } catch (error) {
55
+ // TODO: handle error exception log?
33
56
  }
34
- return new CommandDeserializer(responseByteArray).deserialize()
35
57
  }
36
58
 
37
- process(byteArray) {
38
- let commandDeserializer = new CommandDeserializer(byteArray)
39
- let receivedCommand = commandDeserializer.deserialize()
40
- let responseCommand = this.handler.handleCommand(receivedCommand)
41
- let commandSerializer = new CommandSerializer()
42
- return commandSerializer.serialize(responseCommand, ConnectionType.IN_MEMORY)
59
+ process(messageByteArray) {
60
+ let receivedCommand = new CommandDeserializer(messageByteArray).deserialize()
61
+ return this.handler.handleCommand(receivedCommand)
43
62
  }
44
63
  }
45
64
 
@@ -1,62 +1,30 @@
1
1
  const Command = require("../../utils/Command")
2
2
  const TypeEncoder = require('./TypeSerializer')
3
- const ConnectionType = require("../../utils/ConnectionType");
4
3
  const Runtime = require('../../utils/RuntimeName')
5
4
 
6
5
  class CommandSerializer {
7
6
  buffer = new Int8Array(2)
8
7
 
9
- serialize(command, connectionType, tcpConnectionData = null, runtimeVersion = 0) {
10
- let deque = [command]
11
- this.buffer[0] = command.runtimeName
12
- this.buffer[1] = runtimeVersion
13
- this.#insertIntoBuffer(this.#serialize_tcp(connectionType, tcpConnectionData))
14
- this.#insertIntoBuffer(new Int8Array([Runtime.Nodejs, command.commandType]))
15
- return this.#encodeRecursively(deque)
16
- }
17
8
 
18
- #serialize_tcp = function(connectionType, tcpConnectionData) {
19
- let encodedTcp = new Int8Array(7)
20
- encodedTcp[0] = connectionType
21
- if (connectionType === ConnectionType.IN_MEMORY || tcpConnectionData === null) {
22
- encodedTcp[1] = 0
23
- encodedTcp[2] = 0
24
- encodedTcp[3] = 0
25
- encodedTcp[4] = 0
26
- encodedTcp[5] = 0
27
- encodedTcp[6] = 0
28
- }
29
- else if (ConnectionType.TCP === connectionType) {
30
- let address = tcpConnectionData.getAddressBytes()
31
- let port = tcpConnectionData.getPortBytes()
32
- encodedTcp[1] = address[0]
33
- encodedTcp[2] = address[1]
34
- encodedTcp[3] = address[2]
35
- encodedTcp[4] = address[3]
36
- encodedTcp[5] = port[0]
37
- encodedTcp[6] = port[1]
38
- }
39
- return encodedTcp
9
+ serialize(root_command, connectionData, runtimeVersion = 0) {
10
+ this.buffer[0] = root_command.runtimeName
11
+ this.buffer[1] = runtimeVersion
12
+ this.#insertIntoBuffer(connectionData.serializeConnectionData())
13
+ this.#insertIntoBuffer(new Int8Array([Runtime.Nodejs, root_command.commandType]))
14
+ this.#serializeRecursively(root_command)
15
+ return this.buffer
40
16
  }
41
17
 
42
- #encodeRecursively = function(deque) {
43
- if (deque.length === 0) return this.buffer;
44
- let cmd = deque.pop()
45
- deque.push(cmd.dropFirstPayloadArg())
46
- if (cmd.payload.length > 0) {
47
- if (cmd.payload[0] instanceof Command) {
48
- let innerCommand = cmd.payload[0]
49
- this.#insertIntoBuffer(TypeEncoder.serializeCommand(innerCommand))
50
- deque.push(innerCommand)
18
+ #serializeRecursively = function(root_command) {
19
+ for (let cmd of root_command.payload) {
20
+ if (cmd instanceof Command) {
21
+ this.#insertIntoBuffer(TypeEncoder.serializeCommand(cmd))
22
+ this.#serializeRecursively(cmd)
51
23
  } else {
52
- let result = TypeEncoder.encodePrimitive(cmd.payload[0])
24
+ let result = TypeEncoder.encodePrimitive(cmd)
53
25
  this.#insertIntoBuffer(result)
54
26
  }
55
- return this.#encodeRecursively(deque)
56
- } else {
57
- deque.pop()
58
27
  }
59
- return this.#encodeRecursively(deque)
60
28
  }
61
29
 
62
30
  #insertIntoBuffer = function(arg) {
@@ -1,9 +1,19 @@
1
1
  const Interpreter = require('../interpreter/Interpreter')
2
- const interpreter = new Interpreter()
2
+ const CommandSerializer = require("../protocol/CommandSerializer");
3
+ const InMemoryConnectionData = require("../../utils/connectionData/InMemoryConnectionData");
4
+ const RuntimeLogger = require("../../utils/RuntimeLogger");
5
+
6
+
3
7
 
4
8
  class Receiver {
9
+
10
+ static connectionData = new InMemoryConnectionData();
11
+ Receiver() {
12
+ RuntimeLogger.printRuntimeInfo()
13
+ }
14
+
5
15
  static sendCommand(messageByteArray) {
6
- return interpreter.process(messageByteArray)
16
+ return new CommandSerializer().serialize(new Interpreter().process(messageByteArray), this.connectionData)
7
17
  }
8
18
  static heartBeat(messageByteArray) {
9
19
  let response = new Int8Array(2)
@@ -6,20 +6,8 @@ class Transmitter {
6
6
  return wrapper.sendCommand(messageArray)
7
7
  }
8
8
 
9
- static #activate = function(licenseKey = "", proxyHost = "", proxyUserName="", proxyUserPassword="") {
10
- return wrapper.activate(licenseKey, proxyHost, proxyUserName, proxyUserPassword)
11
- }
12
-
13
- static activateWithLicenseFile() {
14
- return this.#activate()
15
- }
16
-
17
- static activateWithCredentials(licenseKey) {
18
- return this.#activate(licenseKey)
19
- }
20
-
21
- static activateWithCredentialsAndProxy(licenseKey, proxyHost, proxyUserName, proxyUserPassword) {
22
- return this.#activate(licenseKey, proxyHost, proxyUserName, proxyUserPassword)
9
+ static activate = function(licenseKey = "") {
10
+ return wrapper.activate(licenseKey, "", "", "")
23
11
  }
24
12
 
25
13
  static setConfigSource(configSource) {
@@ -22,7 +22,7 @@ class TransmitterWrapper {
22
22
  }
23
23
 
24
24
  static setConfigSource(configSource) {
25
- return library.setConfigSource(configSource)
25
+ //return library.setConfigSource(configSource)
26
26
  }
27
27
  }
28
28