Bases: object
WSGI Controller for the container server.
Handle HTTP DELETE request.
Handle HTTP GET request.
Handle HTTP HEAD request.
Handle HTTP POST request.
Handle HTTP PUT request.
Handle HTTP REPLICATE request (json-encoded RPC calls for replication.)
Update the account server(s) with latest container info.
Parameters: |
|
---|---|
Returns: | if all the account requests return a 404 error code, HTTPNotFound response object, if the account cannot be updated due to a malformed header, an HTTPBadRequest response object, otherwise None. |
Will check the last parameter and if it starts with ‘swift_bytes=’ will strip it off. Returns either the passed in content_type and size or the content_type without the swift_bytes param and its value as the new size. :params content_type: Content Type from db :params size: # bytes from db, an int :returns: tuple: content_type, size
paste.deploy app factory for creating WSGI container server apps
Bases: swift.common.daemon.Daemon
Update container information in account listings.
Report container info to an account server.
Parameters: |
|
---|
Walk the path looking for container DBs and process them.
Parameters: | path – path to walk |
---|
Get the account ring. Load it if it hasn’t been yet.
Get paths to all of the partitions on each drive to be processed.
Returns: | a list of paths |
---|
Process a container, and update the information in the account.
Parameters: | dbfile – container DB to process |
---|
Run the updator continuously.
Run the updater once.
Bases: swift.common.daemon.Daemon
Audit containers.
Audits the given container path
Parameters: | path – the path to a container db |
---|
Run the container audit until stopped.
Run the container audit once.