Class: RuntimeFactory
- Inherits:
-
AbstractRuntimeFactory
- Object
- AbstractRuntimeFactory
- RuntimeFactory
- Defined in:
- lib/javonet-ruby-sdk/sdk/internal/runtime_factory.rb
Instance Method Summary collapse
- #clr ⇒ Object
- #go ⇒ Object
-
#initialize(connection_type, tcp_address = nil) ⇒ RuntimeFactory
constructor
A new instance of RuntimeFactory.
- #jvm ⇒ Object
- #netcore ⇒ Object
- #nodejs ⇒ Object
- #perl ⇒ Object
- #python ⇒ Object
- #ruby ⇒ Object
Constructor Details
#initialize(connection_type, tcp_address = nil) ⇒ RuntimeFactory
Returns a new instance of RuntimeFactory.
7 8 9 10 11 12 13 14 15 |
# File 'lib/javonet-ruby-sdk/sdk/internal/runtime_factory.rb', line 7 def initialize(connection_type, tcp_address = nil) @connection_type = connection_type if @connection_type == ConnectionType::TCP if tcp_address.nil? raise("Error tcp ip adress is not given!") end end @tcp_address = tcp_address end |
Instance Method Details
#clr ⇒ Object
17 18 19 |
# File 'lib/javonet-ruby-sdk/sdk/internal/runtime_factory.rb', line 17 def clr RuntimeContext.get_instance(RuntimeName::CLR, @connection_type, @tcp_address ) end |
#go ⇒ Object
21 22 23 |
# File 'lib/javonet-ruby-sdk/sdk/internal/runtime_factory.rb', line 21 def go RuntimeContext.get_instance(RuntimeName::GO, @connection_type, @tcp_address ) end |
#jvm ⇒ Object
25 26 27 |
# File 'lib/javonet-ruby-sdk/sdk/internal/runtime_factory.rb', line 25 def jvm RuntimeContext.get_instance(RuntimeName::JVM, @connection_type, @tcp_address ) end |
#netcore ⇒ Object
29 30 31 |
# File 'lib/javonet-ruby-sdk/sdk/internal/runtime_factory.rb', line 29 def netcore RuntimeContext.get_instance(RuntimeName::NETCORE, @connection_type, @tcp_address ) end |
#nodejs ⇒ Object
41 42 43 |
# File 'lib/javonet-ruby-sdk/sdk/internal/runtime_factory.rb', line 41 def nodejs RuntimeContext.get_instance(RuntimeName::NODEJS, @connection_type, @tcp_address ) end |
#perl ⇒ Object
33 34 35 |
# File 'lib/javonet-ruby-sdk/sdk/internal/runtime_factory.rb', line 33 def perl RuntimeContext.get_instance(RuntimeName::PERL, @connection_type, @tcp_address ) end |
#python ⇒ Object
45 46 47 |
# File 'lib/javonet-ruby-sdk/sdk/internal/runtime_factory.rb', line 45 def python RuntimeContext.get_instance(RuntimeName::PYTHON, @connection_type, @tcp_address ) end |
#ruby ⇒ Object
37 38 39 |
# File 'lib/javonet-ruby-sdk/sdk/internal/runtime_factory.rb', line 37 def ruby RuntimeContext.get_instance(RuntimeName::RUBY, @connection_type, @tcp_address ) end |