C# Class DataMigration.S3FeedAccessor

S3FeedAccess implements IFeedAccess, and manages file movement for feeds deposited on S3 locations, with methods for moving, copying and deleting feeds, as well as facilitating downloading to the local file system.
Inheritance: IFeedAccessor
ファイルを表示 Open project: scoutmedia/DataMigration

Public Methods

Method Description
Copy ( String fullS3Url, String localFileLocation ) : void

Given an S3 Url, and a local file path, downloads the file to the prescribed location.

Delete ( string fullS3Url ) : void

Delete the file described by the specified fullS3Url.

Exists ( string fullS3Url ) : bool

Given an S3 url, this method ascertains the existence (or lack thereof) of a file in S3.

LastModified ( string fullS3Url ) : DateTime?

Given an S3 Url, this method will return the last modified date or the file, or null if it doesn't exist.

Move ( string oldFile, string newFile ) : void

Moves one S3Url to another S3Url in the same bucket. The latter S3Url just describes a full path to a 'directory' (admittedly, this is a little bit of a fictional abstraction in the case of S3, but this is the abstraction the interface presents to the caller).

S3FeedAccessor ( ) : System

Method Details

Copy() public method

Given an S3 Url, and a local file path, downloads the file to the prescribed location.
public Copy ( String fullS3Url, String localFileLocation ) : void
fullS3Url String Fully described S3 Url.
localFileLocation String Local file location to download to.
return void

Delete() public method

Delete the file described by the specified fullS3Url.
public Delete ( string fullS3Url ) : void
fullS3Url string Full s3 URL.
return void

Exists() public method

Given an S3 url, this method ascertains the existence (or lack thereof) of a file in S3.
public Exists ( string fullS3Url ) : bool
fullS3Url string Full s3 URL.
return bool

LastModified() public method

Given an S3 Url, this method will return the last modified date or the file, or null if it doesn't exist.
public LastModified ( string fullS3Url ) : DateTime?
fullS3Url string Full s3 URL.
return DateTime?

Move() public method

Moves one S3Url to another S3Url in the same bucket. The latter S3Url just describes a full path to a 'directory' (admittedly, this is a little bit of a fictional abstraction in the case of S3, but this is the abstraction the interface presents to the caller).
public Move ( string oldFile, string newFile ) : void
oldFile string Old file.
newFile string New file.
return void

S3FeedAccessor() public method

public S3FeedAccessor ( ) : System
return System