Class List Method List File List

# Class: Vertx::SrvRecord

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

- + (Boolean) accept?(obj)
- + (Object) j_api_type
- + (Object) j_class
- + (Object) unwrap(obj)
- + (Object) wrap(obj)

## Instance Method Summary (collapse)

- - (String) name
  Returns the name for the server being queried.
- - (Fixnum) port
  Returns the port the service is running on.
- - (Fixnum) priority
  Returns the priority for this service record.
- - (String) protocol
  Returns the protocol for the service being queried (i.e. "_tcp").
- - (String) service
  Returns the service's name (i.e. "_http").
- - (String) target
  Returns the name of the host for the service.
- - (Fixnum) weight
  Returns the weight of this service record.

## Class Method Details

### + (`Boolean`) accept?(obj)

Returns:

- (`Boolean`)

    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.

Returns:

- (`String`)

Raises:

- (`ArgumentError`)

    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.

Returns:

- (`Fixnum`)

Raises:

- (`ArgumentError`)

    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.

Returns:

- (`Fixnum`)

Raises:

- (`ArgumentError`)

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

Returns:

- (`String`)

Raises:

- (`ArgumentError`)

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

Returns:

- (`String`)

Raises:

- (`ArgumentError`)

    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.

Returns:

- (`String`)

Raises:

- (`ArgumentError`)

    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.

Returns:

- (`Fixnum`)

Raises:

- (`ArgumentError`)

    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