Class: VertxServiceDiscovery::ServiceDiscoveryBridge
- Inherits:
-
Object
- Object
- VertxServiceDiscovery::ServiceDiscoveryBridge
- Defined in:
- /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-service-discovery/service_discovery_bridge.rb
Overview
Service Discovery bridge 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. Each bridge can decide which services needs to be imported and exported. It can also implement only on
way.
Instance Method Summary (collapse)
-
- (void) start(vertx = nil, publisher = nil, configuration = nil, future = nil)
Starts the bridge.
-
- (void) stop(vertx = nil, publisher = nil, future = nil)
Stops the bridge.
Instance Method Details
- (void) start(vertx = nil, publisher = nil, configuration = nil, future = nil)
This method returns an undefined value.
Starts the bridge.
28 29 30 31 32 33 |
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-service-discovery/service_discovery_bridge.rb', line 28 def start(vertx=nil,publisher=nil,configuration=nil,future=nil) if vertx.class.method_defined?(:j_del) && publisher.class.method_defined?(:j_del) && configuration.class == Hash && future.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::Future.java_class]).call(vertx.j_del,publisher.j_del,::Vertx::Util::Utils.to_json_object(configuration),future.j_del) end raise ArgumentError, "Invalid arguments when calling start(vertx,publisher,configuration,future)" end |
- (void) stop(vertx = nil, publisher = nil, future = nil)
This method returns an undefined value.
Stops the bridge.
39 40 41 42 43 44 |
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-service-discovery/service_discovery_bridge.rb', line 39 def stop(vertx=nil,publisher=nil,future=nil) if vertx.class.method_defined?(:j_del) && publisher.class.method_defined?(:j_del) && future.class.method_defined?(:j_del) && !block_given? return @j_del.java_method(:stop, [Java::IoVertxCore::Vertx.java_class,Java::IoVertxServicediscoverySpi::ServicePublisher.java_class,Java::IoVertxCore::Future.java_class]).call(vertx.j_del,publisher.j_del,future.j_del) end raise ArgumentError, "Invalid arguments when calling stop(vertx,publisher,future)" end |