C# Class GreenQloud.Repository.RemoteRepositoryController

Inheritance: AbstractController, IRemoteRepositoryController
Datei anzeigen Open project: greenqloud/qloudsync Class Usage Examples

Public Methods

Method Description
CreateObjectInstance ( ListEntry s3item ) : RepositoryItem
Delete ( RepositoryItem item ) : void
Download ( RepositoryItem item, bool recursive = false ) : void
Exists ( RepositoryItem item ) : bool
Exists ( string key ) : bool
GetContentLength ( string key ) : long
GetItems ( string prefix ) : List
GetMetadata ( string key, bool recoveryIfFolderBroken = false ) : GetObjectResponse
GetRootFoldersS3Objects ( ) : IEnumerable
Move ( RepositoryItem item ) : void
RemoteETAG ( RepositoryItem item ) : string
RemoteRepositoryController ( LocalRepository repo ) : System
Upload ( RepositoryItem item ) : void

Protected Methods

Method Description
AddStatistics ( string key, TransferStatistic statistic ) : void
GetInstancesOfItems ( IEnumerable s3items ) : List
UpdateStatistics ( string key, S3ProgressEventArgs args ) : void

Private Methods

Method Description
DeleteEntry ( ListEntry entry ) : void
DeleteFolder ( string key ) : void
DownloadEntry ( IEnumerable entries, RepositoryItem father ) : void
GenericCopy ( string sourceKey, string destinationKey ) : void
GenericCreateFolder ( string key ) : void
GenericDelete ( string key, bool keyAsPrefix = false ) : void
GenericDownload ( string key, string localAbsolutePath ) : void
GenericUpload ( string key, string filepath ) : void
GetS3Objects ( string prefix ) : IEnumerable
Key ( ListEntry s3item ) : string
MoveEntry ( IEnumerable entries, RepositoryItem father ) : void
UploadEntry ( IEnumerable entries, RepositoryItem father ) : void

Method Details

AddStatistics() protected method

protected AddStatistics ( string key, TransferStatistic statistic ) : void
key string
statistic TransferStatistic
return void

CreateObjectInstance() public method

public CreateObjectInstance ( ListEntry s3item ) : RepositoryItem
s3item LitS3.ListEntry
return GreenQloud.Model.RepositoryItem

Delete() public method

public Delete ( RepositoryItem item ) : void
item GreenQloud.Model.RepositoryItem
return void

Download() public method

public Download ( RepositoryItem item, bool recursive = false ) : void
item GreenQloud.Model.RepositoryItem
recursive bool
return void

Exists() public method

public Exists ( RepositoryItem item ) : bool
item GreenQloud.Model.RepositoryItem
return bool

Exists() public method

public Exists ( string key ) : bool
key string
return bool

GetContentLength() public method

public GetContentLength ( string key ) : long
key string
return long

GetInstancesOfItems() protected method

protected GetInstancesOfItems ( IEnumerable s3items ) : List
s3items IEnumerable
return List

GetItems() public method

public GetItems ( string prefix ) : List
prefix string
return List

GetMetadata() public method

public GetMetadata ( string key, bool recoveryIfFolderBroken = false ) : GetObjectResponse
key string
recoveryIfFolderBroken bool
return GetObjectResponse

GetRootFoldersS3Objects() public method

public GetRootFoldersS3Objects ( ) : IEnumerable
return IEnumerable

Move() public method

public Move ( RepositoryItem item ) : void
item GreenQloud.Model.RepositoryItem
return void

RemoteETAG() public method

public RemoteETAG ( RepositoryItem item ) : string
item GreenQloud.Model.RepositoryItem
return string

RemoteRepositoryController() public method

public RemoteRepositoryController ( LocalRepository repo ) : System
repo LocalRepository
return System

UpdateStatistics() protected method

protected UpdateStatistics ( string key, S3ProgressEventArgs args ) : void
key string
args LitS3.S3ProgressEventArgs
return void

Upload() public method

public Upload ( RepositoryItem item ) : void
item GreenQloud.Model.RepositoryItem
return void