Package s3 :: Package sync_adapter :: Module mcb :: Class S3SyncAdapter
[frames] | no frames]

Class S3SyncAdapter

source code

              object --+    
                       |    
s3sync.S3SyncBaseAdapter --+
                           |
                          S3SyncAdapter

Mariner CommandBridge Synchronization Adapter


Status: experimental

Instance Methods
 
register(self)
Register at the repository (does nothing in CommandBridge)
source code
 
login(self)
Login to the repository (does nothing in CommandBridge)
source code
 
pull(self, task, onconflict=None)
Pull updates from this repository
source code
 
push(self, task)
Push data for a task
source code

Inherited from s3sync.S3SyncBaseAdapter: __init__, receive, send

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

register(self)

source code 

Register at the repository (does nothing in CommandBridge)

Returns:
True if successful, otherwise False
Overrides: s3sync.S3SyncBaseAdapter.register

login(self)

source code 

Login to the repository (does nothing in CommandBridge)

Returns:
None if successful, otherwise error message
Overrides: s3sync.S3SyncBaseAdapter.login

pull(self, task, onconflict=None)

source code 

Pull updates from this repository

Parameters:
  • task - the task Row
  • onconflict - synchronization conflict resolver
Returns:
tuple (error, mtime), with error=None if successful, else error=message, and mtime=modification timestamp of the youngest record received
Overrides: s3sync.S3SyncBaseAdapter.pull

push(self, task)

source code 

Push data for a task

Parameters:
  • task - the task Row
Returns:
tuple (error, mtime), with error=None if successful, else error=message, and mtime=modification timestamp of the youngest record sent
Overrides: s3sync.S3SyncBaseAdapter.push