Module: MogileFS

Defined in:
lib/mogilefs.rb

Overview

To read more about MogileFS, see github.com/mogilefs/MogileFS-Server/wiki

Client usage information is available in MogileFS::MogileFS.

Defined Under Namespace

Modules: NewFile Classes: Admin, Backend, Client, MogileFS, ReadOnlyError

Constant Summary collapse

Error =

Standard error class for most MogileFS-specific errors

Class.new(StandardError)
UnreadableSocketError =

Raised when a socket remains unreadable for too long.

Class.new(Error)
SizeMismatchError =

Raised when a response is truncated while reading due to network/server # errors)

Class.new(Error)
ChecksumMismatchError =

Raised when checksum verification fails (only while reading deprecated “bigfiles” from the deprecated mogtool(1).

Class.new(RuntimeError)
EmptyPathError =

Raised when an upload is impossible

Class.new(Error)
UnsupportedPathError =

Raised when we are given an unsupported protocol to upload to. Currently, the MogileFS (2.XX) server only supports HTTP and this library is only capable of HTTP.

Class.new(Error)
RequestTruncatedError =

Raised when a request (HTTP or tracker) was truncated due to a network or server error. It may be possible to retry idempotent requests from this.

Class.new(Error)
InvalidResponseError =

Raised when a response from a server (HTTP or tracker) is not in a format that we expected (or truncated..

Class.new(Error)
UnreachableBackendError =

Raised when all known backends have failed.

Class.new(Error)
PipelineError =

There was an error as a result of the use of the (experimental) pipelining code to the tracker backend

Class.new(Error)

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.ioObject

somebody could use IO::Splice from the “io_splice” RubyGem, too don’t consider this a stable API, though…



69
70
71
# File 'lib/mogilefs.rb', line 69

def io
  @io
end

Class Method Details

.nowObject



11
12
13
# File 'lib/mogilefs.rb', line 11

def self.now
  Process.clock_gettime(Process::CLOCK_MONOTONIC)
end