Class List Method List File List

# Class: Vertx::FileSystemProps

Inherits:
  Object
  - Object
  - Vertx::FileSystemProps
  show all
Defined in:
  /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/file_system_props.rb

## Overview

Represents properties of the file system.

## 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)

- - (Fixnum) total_space
  The total space on the file system, in bytes.
- - (Fixnum) unallocated_space
  The total un-allocated space on the file system, in bytes.
- - (Fixnum) usable_space
  The total usable space on the file system, in bytes.

## 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/file_system_props.rb', line 17

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

### + (`Object`) j_api_type

    26
    27
    28
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/file_system_props.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/file_system_props.rb', line 29

    def self.j_class
      Java::IoVertxCoreFile::FileSystemProps.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/file_system_props.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/file_system_props.rb', line 20

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

## Instance Method Details

### - (`Fixnum`) total_space

Returns The total space on the file system, in bytes

Returns:

- (`Fixnum`) —
  The total space on the file system, in bytes

Raises:

- (`ArgumentError`)

    33
    34
    35
    36
    37
    38
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/file_system_props.rb', line 33

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

### - (`Fixnum`) unallocated_space

Returns The total un-allocated space on the file system, in bytes

Returns:

- (`Fixnum`) —
  The total un-allocated space on the file system, in bytes

Raises:

- (`ArgumentError`)

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

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

### - (`Fixnum`) usable_space

Returns The total usable space on the file system, in bytes

Returns:

- (`Fixnum`) —
  The total usable space on the file system, in bytes

Raises:

- (`ArgumentError`)

    47
    48
    49
    50
    51
    52
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/file_system_props.rb', line 47

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