Class: Vertx::SrvRecord

Inherits:
Object
  • Object
show all
Defined in:
/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/srv_record.rb

Overview

Represent a Service-Record (SRV) which was resolved for a domain.

Instance Method Summary (collapse)

Instance Method Details

- (String) name

Returns the name for the server being queried.

Returns:

  • (String)

Raises:

  • (ArgumentError)


42
43
44
45
46
47
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/srv_record.rb', line 42

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.

Returns:

  • (Fixnum)

Raises:

  • (ArgumentError)


34
35
36
37
38
39
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/srv_record.rb', line 34

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.

Returns:

  • (Fixnum)

Raises:

  • (ArgumentError)


18
19
20
21
22
23
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/srv_record.rb', line 18

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").

Returns:

  • (String)

Raises:

  • (ArgumentError)


50
51
52
53
54
55
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/srv_record.rb', line 50

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").

Returns:

  • (String)

Raises:

  • (ArgumentError)


58
59
60
61
62
63
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/srv_record.rb', line 58

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.

Returns:

  • (String)

Raises:

  • (ArgumentError)


66
67
68
69
70
71
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/srv_record.rb', line 66

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.

Returns:

  • (Fixnum)

Raises:

  • (ArgumentError)


26
27
28
29
30
31
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/src/main/resources/vertx/srv_record.rb', line 26

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