Class: Vertx::SrvRecord

Inherits:
Object
  • 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)

Returns:

  • (Boolean)


18
19
20
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 18

def @@j_api_type.accept?(obj)
  obj.class == SrvRecord
end

+ (Object) j_api_type



27
28
29
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 27

def self.j_api_type
  @@j_api_type
end

+ (Object) j_class



30
31
32
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 30

def self.j_class
  Java::IoVertxCoreDns::SrvRecord.java_class
end

+ (Object) unwrap(obj)



24
25
26
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 24

def @@j_api_type.unwrap(obj)
  obj.j_del
end

+ (Object) wrap(obj)



21
22
23
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 21

def @@j_api_type.wrap(obj)
  SrvRecord.new(obj)
end

Instance Method Details

- (String) name

Returns the name for the server being queried.

Returns:

  • (String)


75
76
77
78
79
80
81
82
83
84
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 75

def name
  if !block_given?
    return @j_del.java_method(:name, []).call()
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling name()"
  end
end

- (Fixnum) port

Returns the port the service is running on.

Returns:

  • (Fixnum)


49
50
51
52
53
54
55
56
57
58
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 49

def port
  if !block_given?
    return @j_del.java_method(:port, []).call()
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling port()"
  end
end

- (Fixnum) priority

Returns the priority for this service record.

Returns:

  • (Fixnum)


101
102
103
104
105
106
107
108
109
110
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 101

def priority
  if !block_given?
    return @j_del.java_method(:priority, []).call()
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling priority()"
  end
end

- (String) protocol

Returns the protocol for the service being queried (i.e. "_tcp").

Returns:

  • (String)


36
37
38
39
40
41
42
43
44
45
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 36

def protocol
  if !block_given?
    return @j_del.java_method(:protocol, []).call()
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling protocol()"
  end
end

- (String) service

Returns the service's name (i.e. "_http").

Returns:

  • (String)


62
63
64
65
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 62

def service
  if !block_given?
    return @j_del.java_method(:service, []).call()
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling service()"
  end
end

- (String) target

Returns the name of the host for the service.

Returns:

  • (String)


114
115
116
117
118
119
120
121
122
123
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 114

def target
  if !block_given?
    return @j_del.java_method(:target, []).call()
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling target()"
  end
end

- (Fixnum) weight

Returns the weight of this service record.

Returns:

  • (Fixnum)


88
89
90
91
92
93
94
95
96
97
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/srv_record.rb', line 88

def weight
  if !block_given?
    return @j_del.java_method(:weight, []).call()
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling weight()"
  end
end