Class: VertxServiceDiscovery::ServiceImporter
- Inherits:
-
Object
- Object
- VertxServiceDiscovery::ServiceImporter
show all
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-service-discovery/service_importer.rb
Overview
The service importer allows integrate other discovery technologies with the Vert.x service discovery. It maps
entries from another technology to a and maps to a publication in this other
technology. The importer is one side of a service discovery bridge.
Constant Summary
- @@j_api_type =
Object.new
Class Method Summary
(collapse)
Instance Method Summary
(collapse)
Class Method Details
+ (Boolean) accept?(obj)
23
24
25
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-service-discovery/service_importer.rb', line 23
def @@j_api_type.accept?(obj)
obj.class == ServiceImporter
end
|
+ (Object) j_api_type
32
33
34
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-service-discovery/service_importer.rb', line 32
def self.j_api_type
@@j_api_type
end
|
+ (Object) j_class
35
36
37
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-service-discovery/service_importer.rb', line 35
def self.j_class
Java::IoVertxServicediscoverySpi::ServiceImporter.java_class
end
|
+ (Object) unwrap(obj)
29
30
31
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-service-discovery/service_importer.rb', line 29
def @@j_api_type.unwrap(obj)
obj.j_del
end
|
+ (Object) wrap(obj)
26
27
28
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-service-discovery/service_importer.rb', line 26
def @@j_api_type.wrap(obj)
ServiceImporter.new(obj)
end
|
Instance Method Details
- (void) close(closeHandler) { ... }
This method returns an undefined value.
Closes the importer
59
60
61
62
63
64
65
66
67
68
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-service-discovery/service_importer.rb', line 59
def close
if true
return @j_del.java_method(:close, [Java::IoVertxCore::Handler.java_class]).call((Proc.new { |event| yield(nil) unless !block_given? }))
end
if defined?(super)
super
else
raise ArgumentError, "Invalid arguments when calling close()"
end
end
|
- (void) start(vertx, publisher, configuration, future)
This method returns an undefined value.
Starts the importer.
45
46
47
48
49
50
51
52
53
54
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-service-discovery/service_importer.rb', line 45
def start(*args)
if args[0].class.method_defined?(:j_del) && args[1].class.method_defined?(:j_del) && args[2].class == Hash && args[3].class.method_defined?(:j_del) && !block_given?
return @j_del.java_method(:start, [Java::IoVertxCore::Vertx.java_class,Java::IoVertxServicediscoverySpi::ServicePublisher.java_class,Java::IoVertxCoreJson::JsonObject.java_class,Java::IoVertxCore::Promise.java_class]).call(args[0].j_del,args[1].j_del,::Vertx::Util::Utils.to_json_object(args[2]),args[3].j_del)
end
if defined?(super)
super
else
raise ArgumentError, "Invalid arguments when calling start(#{args[0]},#{args[1]},#{args[2]},#{args[3]})"
end
end
|