module MogileFS

To read more about MogileFS, go to mogilefs.org/

Client usage information is available in MogileFS::MogileFS.

Constants

ChecksumMismatchError

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

EmptyPathError

Raised when an upload is impossible

Error

Standard error class for most MogileFS-specific errors

InvalidResponseError

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

PipelineError

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

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.

SizeMismatchError

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

Timeout

Timeout error class. Subclassing it from Timeout::Error is the only reason we require the 'timeout' module, otherwise that module is broken and worthless to us.

UnreachableBackendError

Raised when all known backends have failed.

UnreadableSocketError

Raised when a socket remains unreadable for too long.

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.

Public Class Methods

now() click to toggle source
# File lib/mogilefs.rb, line 8
def self.now
  Process.clock_gettime(Process::CLOCK_MONOTONIC)
end