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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Clr/Javonet.Clr.Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Clr/JavonetClrRuntime.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Jvm/JavonetJvmRuntime.jar +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetActivationService.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetCppRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetGoRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetJvmRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetNetcoreRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetPythonRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetRuby278RuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetRubyRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetTcpClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetTcpTlsClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libUtils.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/NativeUtilsUnitTests.xml +18 -18
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetActivationService.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetCppRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetGoRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetJvmRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNetcoreRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejs1816RuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejsRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetPerlRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetPythonRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetRuby278RuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetRubyRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetTcpClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetTcpTlsClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libUtils.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libJavonetActivationService.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libJavonetTcpTlsClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libUtils.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetActivationService.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetCppRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetGoRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetJvmRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNetcoreRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejs1816RuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejsRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPerlRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPythonRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetRuby278RuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetRubyRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetTcpClient.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetTcpTlsClient.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libUtils.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetActivationService.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetCppRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetGoRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetJvmRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetNetcoreRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetPythonRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetRuby278RuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetRubyRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpTlsClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/version.txt +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetActivationService.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetClrRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetCppRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetGoRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetJvmRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNetcoreRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejs1816RuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejsRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPerlRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPythonRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetRuby278RuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpTlsClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetActivationService.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetClrRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetCppRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetGoRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetJvmRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetNetcoreRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetPythonRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpTlsClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Core.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/interpreter/Interpreter.js +43 -24
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/protocol/CommandSerializer.js +13 -45
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/receiver/Receiver.js +12 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/transmitter/Transmitter.js +2 -14
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/transmitter/TransmitterWrapper.js +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/webSocketClient/WebSocketClient.js +133 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/ConnectionType.js +2 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/RuntimeLogger.js +27 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/IConnectionData.js +17 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/InMemoryConnectionData.js +28 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/{TcpConnectionData.js → connectionData/TcpConnectionData.js} +26 -6
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/WsConnectionData.js +33 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/List/Util/XS.pm +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/List/Util.pm +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/Scalar/List/Utils.pm +43 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/Scalar/Util.pm +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/Sub/Util.pm +1 -1
- 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
- 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
- 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
- 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
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
- 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
- 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
- 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
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
- 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
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +89 -89
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Protocol/CommandSerializer.pm +10 -27
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Protocol/TypeSerializer.pm +20 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Receiver/Receiver.pm +6 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Javonet.pm +2 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Sdk/Core/RuntimeLogger.pm +34 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
- 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
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +19 -19
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Protocol/CommandSerializer.pm +10 -27
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Protocol/TypeSerializer.pm +20 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Receiver/Receiver.pm +6 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Javonet.pm +2 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Sdk/Core/RuntimeLogger.pm +34 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/callback/callbackFunc.py +4 -2
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/DelegatesCache.py +39 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__init__.py +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/DelegatesCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/internal/__pycache__/PythonStringBuilder.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/internal/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/CreateClassInstanceHandler.py +1 -7
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/GetInstanceMethodAsDelegateHandler.py +29 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/GetStaticMethodAsDelegateHandler.py +31 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/GetTypeHandler.py +4 -3
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/Handler.py +9 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/InvokeDelegateHandler.py +27 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/InvokeStaticMethodHandler.py +0 -2
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/PassDelegateHandler.py +21 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AbstractCommandHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AbstractHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetItemHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetRankHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetSizeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArraySetItemHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CastingHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CreateClassInstanceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/DestructReferenceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/EnableNamespaceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/EnableTypeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumItemHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumNameHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumValueHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceMethodAsDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetStaticFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetStaticMethodAsDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetTypeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/Handler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/HandlerDictionary.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeInstanceMethodHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeStaticMethodHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/LoadLibraryHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/PassDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ResolveInstanceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetInstanceFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetStaticFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ValueHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/Interpreter.py +0 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/Interpreter.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/NamespaceCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/CommandDeserializer.py +1 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/CommandSerializer.py +13 -46
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/TypeSerializer.py +21 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandDeserializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandSerializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeDeserializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeSerializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/Receiver.py +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/Receiver.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/ReferencesCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/transmitter/TransmitterWrapper.py +7 -3
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/TypeCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/CommandType.py +4 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/RuntimeLogger.py +30 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Command.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/CommandType.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ConnectionType.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ExceptionType.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeLogger.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeName.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/StringEncodingMode.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Type.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/IConnectionData.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/InMemoryConnectionData.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/ExceptionSerializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/interpreter/interpreter.rb +6 -10
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/protocol/command_deserializer.rb +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/transmitter/transmitter.rb +4 -16
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/interpreter/interpreter.rb +6 -10
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/protocol/command_deserializer.rb +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/transmitter/transmitter.rb +4 -16
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/interpreter/interpreter.rb +6 -10
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/protocol/command_deserializer.rb +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/transmitter/transmitter.rb +4 -16
- data/lib/javonet-ruby-sdk/Binaries/version.txt +1 -1
- data/lib/javonet-ruby-sdk/core/interpreter/interpreter.rb +6 -10
- data/lib/javonet-ruby-sdk/core/protocol/command_deserializer.rb +2 -2
- data/lib/javonet-ruby-sdk/core/transmitter/transmitter.rb +4 -16
- data/lib/javonet-ruby-sdk/sdk/invocation_context.rb +6 -0
- data/lib/javonet-ruby-sdk/sdk/javonet.rb +3 -3
- metadata +25 -3
@@ -51,6 +51,7 @@ class GetTypeHandler(AbstractCommandHandler):
|
|
51
51
|
return self._get_type_from_nested_payload(command.payload)
|
52
52
|
|
53
53
|
def _get_type_from_nested_payload(self, payload):
|
54
|
-
|
55
|
-
|
56
|
-
|
54
|
+
module_name = ".".join(payload[:-1])
|
55
|
+
class_name = payload[-1]
|
56
|
+
loaded_module = import_module(module_name)
|
57
|
+
return getattr(loaded_module, class_name)
|
@@ -22,6 +22,11 @@ from javonet.core.handler.GetEnumNameHandler import GetEnumNameHandler
|
|
22
22
|
from javonet.core.handler.GetEnumValueHandler import GetEnumValueHandler
|
23
23
|
from javonet.core.handler.EnableNamespaceHandler import EnableNamespaceHandler
|
24
24
|
from javonet.core.handler.EnableTypeHandler import EnableTypeHandler
|
25
|
+
from javonet.core.handler.GetStaticMethodAsDelegateHandler import GetStaticMethodAsDelegateHandler
|
26
|
+
from javonet.core.handler.GetInstanceMethodAsDelegateHandler import GetInstanceMethodAsDelegateHandler
|
27
|
+
from javonet.core.handler.PassDelegateHandler import PassDelegateHandler
|
28
|
+
from javonet.core.handler.InvokeDelegateHandler import InvokeDelegateHandler
|
29
|
+
|
25
30
|
|
26
31
|
from javonet.core.handler.HandlerDictionary import handler_dict
|
27
32
|
from javonet.core.referenceCache.ReferencesCache import ReferencesCache
|
@@ -56,6 +61,10 @@ class Handler(AbstractHandler):
|
|
56
61
|
handler_dict[CommandType.GetEnumValue] = GetEnumValueHandler()
|
57
62
|
handler_dict[CommandType.EnableNamespace] = EnableNamespaceHandler()
|
58
63
|
handler_dict[CommandType.EnableType] = EnableTypeHandler()
|
64
|
+
handler_dict[CommandType.GetStaticMethodAsDelegate] = GetStaticMethodAsDelegateHandler()
|
65
|
+
handler_dict[CommandType.GetInstanceMethodAsDelegate] = GetInstanceMethodAsDelegateHandler()
|
66
|
+
handler_dict[CommandType.PassDelegate] = PassDelegateHandler()
|
67
|
+
handler_dict[CommandType.InvokeDelegate] = InvokeDelegateHandler()
|
59
68
|
|
60
69
|
def handle_command(self, command):
|
61
70
|
try:
|
@@ -0,0 +1,27 @@
|
|
1
|
+
from javonet.core.delegateCache.DelegatesCache import DelegatesCache
|
2
|
+
from javonet.core.handler.AbstractCommandHandler import *
|
3
|
+
|
4
|
+
|
5
|
+
class InvokeDelegateHandler(AbstractCommandHandler):
|
6
|
+
|
7
|
+
def __init__(self):
|
8
|
+
self._required_parameters_count = 1
|
9
|
+
|
10
|
+
def process(self, command):
|
11
|
+
try:
|
12
|
+
if len(command.payload) != self._required_parameters_count:
|
13
|
+
raise Exception("ResolveInstanceHandler parameters mismatch!")
|
14
|
+
|
15
|
+
delegates_cache = DelegatesCache()
|
16
|
+
method = delegates_cache.resolve_delegate(command)
|
17
|
+
if len(command.payload) > 1:
|
18
|
+
method_arguments = command.payload[1:]
|
19
|
+
return method(*method_arguments)
|
20
|
+
else:
|
21
|
+
return method()
|
22
|
+
except Exception as e:
|
23
|
+
exc_type, exc_value = type(e), e
|
24
|
+
new_exc = exc_type(exc_value).with_traceback(e.__traceback__)
|
25
|
+
raise new_exc from None
|
26
|
+
|
27
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
from javonet.core.delegateCache.DelegatesCache import DelegatesCache
|
2
|
+
from javonet.core.handler.AbstractCommandHandler import *
|
3
|
+
|
4
|
+
|
5
|
+
class PassDelegateHandler(AbstractCommandHandler):
|
6
|
+
|
7
|
+
def __init__(self):
|
8
|
+
self._required_parameters_count = 1
|
9
|
+
|
10
|
+
def process(self, command):
|
11
|
+
try:
|
12
|
+
if len(command.payload) != self._required_parameters_count:
|
13
|
+
raise Exception("ResolveInstanceHandler parameters mismatch!")
|
14
|
+
|
15
|
+
# TO BE IMPLEMENTED
|
16
|
+
except Exception as e:
|
17
|
+
exc_type, exc_value = type(e), e
|
18
|
+
new_exc = exc_type(exc_value).with_traceback(e.__traceback__)
|
19
|
+
raise new_exc from None
|
20
|
+
|
21
|
+
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/Handler.cpython-312.pyc
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/__init__.cpython-312.pyc
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,6 +1,3 @@
|
|
1
|
-
from collections import deque
|
2
|
-
from typing import Deque
|
3
|
-
|
4
1
|
from javonet.core.protocol.TypeSerializer import TypeSerializer
|
5
2
|
from javonet.utils.Command import Command
|
6
3
|
from javonet.utils.RuntimeName import RuntimeName
|
@@ -8,54 +5,24 @@ from javonet.utils.connectionData.IConnectionData import IConnectionData
|
|
8
5
|
|
9
6
|
|
10
7
|
class CommandSerializer:
|
11
|
-
|
8
|
+
buffer = []
|
12
9
|
|
13
10
|
def serialize(self, root_command: Command, connection_data: IConnectionData, runtime_version=0):
|
14
|
-
queue: Deque[Command] = deque()
|
15
|
-
queue.append(root_command)
|
16
11
|
self.insert_into_buffer([root_command.runtime_name.value, runtime_version])
|
17
12
|
self.insert_into_buffer(connection_data.serialize_connection_data())
|
18
13
|
self.insert_into_buffer([RuntimeName.python.value, root_command.command_type.value])
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
def
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
elif isinstance(payload_item, int):
|
28
|
-
if payload_item in range(-2 ** 31, 2 ** 31):
|
29
|
-
return TypeSerializer.serialize_int(payload_item)
|
30
|
-
elif payload_item in range(-2 ** 63, 2 ** 63):
|
31
|
-
return TypeSerializer.serialize_longlong(payload_item)
|
14
|
+
self.serialize_recursively(root_command)
|
15
|
+
return self.buffer
|
16
|
+
|
17
|
+
def serialize_recursively(self, command):
|
18
|
+
for item in command.get_payload():
|
19
|
+
if isinstance(item, Command):
|
20
|
+
self.insert_into_buffer(TypeSerializer.serialize_command(item))
|
21
|
+
self.serialize_recursively(item)
|
32
22
|
else:
|
33
|
-
|
34
|
-
elif isinstance(payload_item, float):
|
35
|
-
return TypeSerializer.serialize_double(payload_item)
|
36
|
-
elif isinstance(payload_item, str):
|
37
|
-
return TypeSerializer.serialize_string(payload_item)
|
38
|
-
else:
|
39
|
-
raise Exception("Python: Type serialization not supported for type: " + payload_item)
|
40
|
-
|
41
|
-
def insert_into_buffer(self, arguments):
|
42
|
-
self.byte_buffer = self.byte_buffer + arguments
|
23
|
+
self.insert_into_buffer(TypeSerializer.serialize_primitive(item))
|
43
24
|
|
44
|
-
|
45
|
-
if not queue:
|
46
|
-
return self.byte_buffer
|
47
|
-
command = queue.pop()
|
48
|
-
queue.append(command.drop_first_payload_argument())
|
49
|
-
if len(command.get_payload()) > 0:
|
50
|
-
if isinstance(command.get_payload()[0], Command):
|
51
|
-
inner_command = command.get_payload()[0]
|
52
|
-
self.insert_into_buffer(TypeSerializer.serialize_command(inner_command))
|
53
|
-
queue.append(inner_command)
|
54
|
-
else:
|
55
|
-
result = self.serialize_primitive(command.get_payload()[0])
|
56
|
-
self.insert_into_buffer(result)
|
57
|
-
return self.serialize_recursively(queue)
|
58
|
-
else:
|
59
|
-
queue.pop()
|
25
|
+
return
|
60
26
|
|
61
|
-
|
27
|
+
def insert_into_buffer(self, arguments):
|
28
|
+
self.buffer = self.buffer + arguments
|
@@ -5,7 +5,27 @@ from javonet.utils.StringEncodingMode import StringEncodingMode
|
|
5
5
|
|
6
6
|
|
7
7
|
class TypeSerializer:
|
8
|
-
|
8
|
+
|
9
|
+
@staticmethod
|
10
|
+
def serialize_primitive(payload_item):
|
11
|
+
if payload_item is None:
|
12
|
+
return TypeSerializer.serialize_none()
|
13
|
+
if isinstance(payload_item, bool):
|
14
|
+
return TypeSerializer.serialize_bool(payload_item)
|
15
|
+
elif isinstance(payload_item, int):
|
16
|
+
if payload_item in range(-2 ** 31, 2 ** 31):
|
17
|
+
return TypeSerializer.serialize_int(payload_item)
|
18
|
+
elif payload_item in range(-2 ** 63, 2 ** 63):
|
19
|
+
return TypeSerializer.serialize_longlong(payload_item)
|
20
|
+
else:
|
21
|
+
return TypeSerializer.serialize_ullong(payload_item)
|
22
|
+
elif isinstance(payload_item, float):
|
23
|
+
return TypeSerializer.serialize_double(payload_item)
|
24
|
+
elif isinstance(payload_item, str):
|
25
|
+
return TypeSerializer.serialize_string(payload_item)
|
26
|
+
else:
|
27
|
+
raise Exception("Python: Type serialization not supported for type: " + payload_item)
|
28
|
+
|
9
29
|
@staticmethod
|
10
30
|
def serialize_command(command):
|
11
31
|
length = list(bytearray(struct.pack("<i", len(command.payload))))
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/__init__.cpython-312.pyc
CHANGED
Binary file
|
@@ -1,11 +1,16 @@
|
|
1
|
+
import sys
|
2
|
+
|
1
3
|
from javonet.core.interpreter.Interpreter import Interpreter
|
2
4
|
from javonet.core.protocol.CommandSerializer import CommandSerializer
|
5
|
+
from javonet.utils.RuntimeLogger import RuntimeLogger
|
3
6
|
from javonet.utils.connectionData.InMemoryConnectionData import InMemoryConnectionData
|
4
7
|
|
5
8
|
|
6
9
|
class Receiver:
|
7
10
|
|
8
11
|
def __init__(self):
|
12
|
+
RuntimeLogger.print_runtime_info()
|
13
|
+
sys.stdout.flush()
|
9
14
|
self.connection_data = InMemoryConnectionData()
|
10
15
|
|
11
16
|
def SendCommand(self, message_byte_array, messageByteArrayLen):
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/Receiver.cpython-312.pyc
CHANGED
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/__init__.cpython-312.pyc
CHANGED
Binary file
|
Binary file
|
Binary file
|
@@ -24,6 +24,8 @@ class TransmitterWrapper:
|
|
24
24
|
python_lib_path = file_path + f'/Binaries/Native/Linux/{arch}/libJavonetPythonRuntimeNative.so'
|
25
25
|
elif platform.system() == 'Darwin':
|
26
26
|
python_lib_path = file_path + f'/Binaries/Native/MacOs/{arch}/libJavonetPythonRuntimeNative.dylib'
|
27
|
+
else:
|
28
|
+
raise RuntimeError("Unsupported OS: " + platform.system())
|
27
29
|
|
28
30
|
python_lib = cdll.LoadLibrary(python_lib_path)
|
29
31
|
python_lib.SetCallback(callbackFunction)
|
@@ -69,10 +71,11 @@ class TransmitterWrapper:
|
|
69
71
|
get_native_error.argtypes = []
|
70
72
|
error_message = get_native_error()
|
71
73
|
raise RuntimeError(
|
72
|
-
"Javonet activation result: " + str(activation_result) + ". Native error message: " + str(
|
74
|
+
"Javonet activation result: " + str(activation_result) + ". Native error message: " + str(
|
75
|
+
error_message))
|
73
76
|
else:
|
74
77
|
return activation_result
|
75
|
-
|
78
|
+
|
76
79
|
@staticmethod
|
77
80
|
def set_config_source(sourcePath):
|
78
81
|
set_config_source = TransmitterWrapper.python_lib.SetConfigSource
|
@@ -87,6 +90,7 @@ class TransmitterWrapper:
|
|
87
90
|
get_native_error.argtypes = []
|
88
91
|
error_message = get_native_error()
|
89
92
|
raise RuntimeError(
|
90
|
-
"Javonet set config source result: " + str(set_config_result) + ". Native error message: " + str(
|
93
|
+
"Javonet set config source result: " + str(set_config_result) + ". Native error message: " + str(
|
94
|
+
error_message))
|
91
95
|
else:
|
92
96
|
return set_config_result
|
Binary file
|
Binary file
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import platform
|
2
|
+
import os
|
3
|
+
import sys
|
4
|
+
|
5
|
+
|
6
|
+
class RuntimeLogger:
|
7
|
+
|
8
|
+
not_logged_yet = True
|
9
|
+
@staticmethod
|
10
|
+
def get_runtime_info():
|
11
|
+
try:
|
12
|
+
return (
|
13
|
+
"Python Managed Runtime Info:\n"
|
14
|
+
f"Python Version: {platform.python_version()}\n"
|
15
|
+
f"Python executable path: {sys.executable}\n"
|
16
|
+
f"Python Path: {sys.path}\n"
|
17
|
+
f"Python Implementation: {platform.python_implementation()}\n"
|
18
|
+
f"OS Version: {platform.system()} {platform.version()}\n"
|
19
|
+
f"Process Architecture: {platform.machine()}\n"
|
20
|
+
f"Current Directory: {os.getcwd()}\n"
|
21
|
+
)
|
22
|
+
except Exception as e:
|
23
|
+
return "Python Managed Runtime Info: Error while fetching runtime info"
|
24
|
+
|
25
|
+
@staticmethod
|
26
|
+
def print_runtime_info():
|
27
|
+
if RuntimeLogger.not_logged_yet:
|
28
|
+
print(RuntimeLogger.get_runtime_info())
|
29
|
+
RuntimeLogger.not_logged_yet = False
|
30
|
+
|
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/CommandType.cpython-312.pyc
CHANGED
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ConnectionType.cpython-312.pyc
CHANGED
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ExceptionType.cpython-312.pyc
CHANGED
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeLogger.cpython-312.pyc
ADDED
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeName.cpython-312.pyc
CHANGED
Binary file
|
Binary file
|
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/__init__.cpython-312.pyc
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -3,10 +3,10 @@ require_relative '../protocol/command_deserializer'
|
|
3
3
|
require_relative '../handler/handler'
|
4
4
|
|
5
5
|
class Interpreter
|
6
|
-
|
6
|
+
@@handler = Handler.new
|
7
7
|
|
8
|
-
|
9
|
-
message_byte_array =
|
8
|
+
def execute(command, connection_type, tcp_connection_data)
|
9
|
+
message_byte_array = CommandSerializer.new.serialize(command, connection_type, tcp_connection_data)
|
10
10
|
if command.runtime_name == RuntimeName::RUBY && connection_type == ConnectionType::IN_MEMORY
|
11
11
|
require_relative '../receiver/receiver'
|
12
12
|
response_byte_array = Receiver.new.send_command(message_byte_array, message_byte_array.length)
|
@@ -15,15 +15,11 @@ class Interpreter
|
|
15
15
|
response_byte_array = Transmitter.send_command(message_byte_array, message_byte_array.length)
|
16
16
|
end
|
17
17
|
|
18
|
-
|
19
|
-
command_deserializer.deserialize
|
18
|
+
CommandDeserializer.new(response_byte_array).deserialize
|
20
19
|
end
|
21
20
|
|
22
21
|
def process(byte_array, byte_array_len)
|
23
|
-
|
24
|
-
received_command
|
25
|
-
handler = Handler.new
|
26
|
-
command_serializer = CommandSerializer.new
|
27
|
-
command_serializer.serialize(handler.handle_command(received_command))
|
22
|
+
received_command = CommandDeserializer.new(byte_array).deserialize
|
23
|
+
CommandSerializer.new.serialize(@@handler.handle_command(received_command))
|
28
24
|
end
|
29
25
|
end
|
@@ -5,9 +5,9 @@ require_relative '../../utils/string_encoding_mode'
|
|
5
5
|
|
6
6
|
class CommandDeserializer
|
7
7
|
|
8
|
-
def initialize(buffer
|
8
|
+
def initialize(buffer)
|
9
9
|
@buffer = buffer
|
10
|
-
@byte_array_len =
|
10
|
+
@byte_array_len = buffer.length
|
11
11
|
@command = Command.new(buffer[0], buffer[10], [])
|
12
12
|
@position = 11
|
13
13
|
end
|
@@ -22,20 +22,8 @@ class Transmitter
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
-
def self.
|
26
|
-
|
27
|
-
end
|
28
|
-
|
29
|
-
def self.activate_with_credentials(licenseKey)
|
30
|
-
return activate(licenseKey)
|
31
|
-
end
|
32
|
-
|
33
|
-
def self.activate_with_credentials_and_proxy(licenseKey, proxyHost, proxyUserName, proxyPassword)
|
34
|
-
return activate(licenseKey, proxyHost, proxyUserName, proxyPassword)
|
35
|
-
end
|
36
|
-
|
37
|
-
private_class_method def self.activate(licenseKey = "", proxyHost = "", proxyUserName = "", proxyUserPassword = "")
|
38
|
-
activation_result = TransmitterWrapper.Activate(licenseKey, proxyHost, proxyUserName, proxyUserPassword)
|
25
|
+
def self.activate(license_key)
|
26
|
+
activation_result = TransmitterWrapper.Activate(license_key, "", "", "")
|
39
27
|
if activation_result < 0
|
40
28
|
error_message = get_native_error
|
41
29
|
raise Exception.new "Javonet activation result: " + activation_result.to_s + ". Native error message: " + error_message
|
@@ -48,8 +36,8 @@ class Transmitter
|
|
48
36
|
TransmitterWrapper.GetNativeError
|
49
37
|
end
|
50
38
|
|
51
|
-
def self.set_config_source(
|
52
|
-
set_config_result = TransmitterWrapper.SetConfigSource(
|
39
|
+
def self.set_config_source(config_path)
|
40
|
+
set_config_result = TransmitterWrapper.SetConfigSource(config_path)
|
53
41
|
if set_config_result < 0
|
54
42
|
error_message = get_native_error
|
55
43
|
raise Exception.new "Javonet set config source result: " + set_config_result.to_s + ". Native error message: " + error_message
|
@@ -3,10 +3,10 @@ require_relative '../protocol/command_deserializer'
|
|
3
3
|
require_relative '../handler/handler'
|
4
4
|
|
5
5
|
class Interpreter
|
6
|
-
|
6
|
+
@@handler = Handler.new
|
7
7
|
|
8
|
-
|
9
|
-
message_byte_array =
|
8
|
+
def execute(command, connection_type, tcp_connection_data)
|
9
|
+
message_byte_array = CommandSerializer.new.serialize(command, connection_type, tcp_connection_data)
|
10
10
|
if command.runtime_name == RuntimeName::RUBY && connection_type == ConnectionType::IN_MEMORY
|
11
11
|
require_relative '../receiver/receiver'
|
12
12
|
response_byte_array = Receiver.new.send_command(message_byte_array, message_byte_array.length)
|
@@ -15,15 +15,11 @@ class Interpreter
|
|
15
15
|
response_byte_array = Transmitter.send_command(message_byte_array, message_byte_array.length)
|
16
16
|
end
|
17
17
|
|
18
|
-
|
19
|
-
command_deserializer.deserialize
|
18
|
+
CommandDeserializer.new(response_byte_array).deserialize
|
20
19
|
end
|
21
20
|
|
22
21
|
def process(byte_array, byte_array_len)
|
23
|
-
|
24
|
-
received_command
|
25
|
-
handler = Handler.new
|
26
|
-
command_serializer = CommandSerializer.new
|
27
|
-
command_serializer.serialize(handler.handle_command(received_command))
|
22
|
+
received_command = CommandDeserializer.new(byte_array).deserialize
|
23
|
+
CommandSerializer.new.serialize(@@handler.handle_command(received_command))
|
28
24
|
end
|
29
25
|
end
|
@@ -5,9 +5,9 @@ require_relative '../../utils/string_encoding_mode'
|
|
5
5
|
|
6
6
|
class CommandDeserializer
|
7
7
|
|
8
|
-
def initialize(buffer
|
8
|
+
def initialize(buffer)
|
9
9
|
@buffer = buffer
|
10
|
-
@byte_array_len =
|
10
|
+
@byte_array_len = buffer.length
|
11
11
|
@command = Command.new(buffer[0], buffer[10], [])
|
12
12
|
@position = 11
|
13
13
|
end
|