Class: Vertx::SrvRecord
- Inherits:
-
Object
show all
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb
Overview
Represent a Service-Record (SRV) which was resolved for a domain.
Constant Summary
- @@j_api_type =
Object.new
Class Method Summary
(collapse)
Instance Method Summary
(collapse)
Class Method Details
+ (Boolean) accept?(obj)
17
18
19
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 17
def @@j_api_type.accept?(obj)
obj.class == SrvRecord
end
|
+ (Object) j_api_type
26
27
28
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 26
def self.j_api_type
@@j_api_type
end
|
+ (Object) j_class
29
30
31
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 29
def self.j_class
Java::IoVertxCoreDns::SrvRecord.java_class
end
|
+ (Object) unwrap(obj)
23
24
25
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 23
def @@j_api_type.unwrap(obj)
obj.j_del
end
|
+ (Object) wrap(obj)
20
21
22
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 20
def @@j_api_type.wrap(obj)
SrvRecord.new(obj)
end
|
Instance Method Details
- (String) name
Returns the name for the server being queried.
58
59
60
61
62
63
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 58
def name
if !block_given?
return @j_del.java_method(:name, []).call()
end
raise ArgumentError, "Invalid arguments when calling name()"
end
|
- (Fixnum) port
Returns the port the service is running on.
50
51
52
53
54
55
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 50
def port
if !block_given?
return @j_del.java_method(:port, []).call()
end
raise ArgumentError, "Invalid arguments when calling port()"
end
|
- (Fixnum) priority
Returns the priority for this service record.
34
35
36
37
38
39
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 34
def priority
if !block_given?
return @j_del.java_method(:priority, []).call()
end
raise ArgumentError, "Invalid arguments when calling priority()"
end
|
- (String) protocol
Returns the protocol for the service being queried (i.e. "_tcp").
66
67
68
69
70
71
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 66
def protocol
if !block_given?
return @j_del.java_method(:protocol, []).call()
end
raise ArgumentError, "Invalid arguments when calling protocol()"
end
|
- (String) service
Returns the service's name (i.e. "_http").
74
75
76
77
78
79
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 74
def service
if !block_given?
return @j_del.java_method(:service, []).call()
end
raise ArgumentError, "Invalid arguments when calling service()"
end
|
- (String) target
Returns the name of the host for the service.
82
83
84
85
86
87
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 82
def target
if !block_given?
return @j_del.java_method(:target, []).call()
end
raise ArgumentError, "Invalid arguments when calling target()"
end
|
- (Fixnum) weight
Returns the weight of this service record.
42
43
44
45
46
47
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 42
def weight
if !block_given?
return @j_del.java_method(:weight, []).call()
end
raise ArgumentError, "Invalid arguments when calling weight()"
end
|