Table Of Contents

Previous topic

Account DB and Container DB

Next topic

Misc

This Page

Object

Object Auditor

Object Backend

Object Replicator

class swift.obj.ssync_sender.Sender(daemon, node, job, suffixes)

Bases: object

Sends REPLICATION requests to the object server.

These requests are eventually handled by ssync_receiver and full documentation about the process is there.

connect()

Establishes a connection and starts a REPLICATION request with the object server.

disconnect()

Closes down the connection to the object server once done with the REPLICATION request.

missing_check()

Handles the sender-side of the MISSING_CHECK step of a REPLICATION request.

Full documentation of this can be found at Receiver.missing_check().

readline()

Reads a line from the REPLICATION response body.

httplib has no readline and will block on read(x) until x is read, so we have to do the work ourselves. A bit of this is taken from Python’s httplib itself.

send_delete(url_path, timestamp)

Sends a DELETE subrequest with the given information.

send_put(url_path, df)

Sends a PUT subrequest for the url_path using the source df (DiskFile) and content_length.

updates()

Handles the sender-side of the UPDATES step of a REPLICATION request.

Full documentation of this can be found at Receiver.updates().

Object Server

Object Updater