Class: Hypertube::Sdk::RuntimeFactory

Inherits:
Internal::AbstractRuntimeFactory show all
Defined in:
lib/hypertube-ruby-sdk/sdk/runtime_factory.rb

Instance Method Summary collapse

Constructor Details

#initialize(connection_type, connection_data) ⇒ RuntimeFactory

Returns a new instance of RuntimeFactory.



13
14
15
16
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 13

def initialize(connection_type, connection_data)
  @connection_type = connection_type
  @connection_data = connection_data
end

Instance Method Details

#clrHypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with CLR runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


21
22
23
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 21

def clr
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::CLR, @connection_type, @connection_data)
end

#jvmHypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with JVM runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


28
29
30
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 28

def jvm
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::JVM, @connection_type, @connection_data)
end

#netcoreHypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with .NET runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


35
36
37
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 35

def netcore
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::NETCORE, @connection_type, @connection_data)
end

#nodejsHypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with Node.js runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


56
57
58
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 56

def nodejs
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::NODEJS, @connection_type, @connection_data)
end

#perlHypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with Perl runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


42
43
44
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 42

def perl
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::PERL, @connection_type, @connection_data)
end

#phpHypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with Php runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


70
71
72
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 70

def php
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::PHP, @connection_type, @connection_data)
end

#pythonHypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with Python runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


63
64
65
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 63

def python
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::PYTHON, @connection_type, @connection_data)
end

#python27Hypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with Python2.7 runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


77
78
79
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 77

def python27
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::PYTHON27, @connection_type, @connection_data)
end

#rubyHypertube::Sdk::RuntimeContext

Creates a Hypertube::Sdk::RuntimeContext instance to interact with Ruby runtime.

Returns:

See Also:

  • to this {https://www.hypertube.dev/guides/v2/ruby/foundations/runtime-context article on Hypertube Guides}


49
50
51
# File 'lib/hypertube-ruby-sdk/sdk/runtime_factory.rb', line 49

def ruby
  Hypertube::Sdk::RuntimeContext.get_instance(Hypertube::Utils::RuntimeNameHt::RUBY, @connection_type, @connection_data)
end