C# Класс 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.
Наследование: IFeedAccessor
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

Copy() публичный Метод

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.
Результат void

Delete() публичный Метод

Delete the file described by the specified fullS3Url.
public Delete ( string fullS3Url ) : void
fullS3Url string Full s3 URL.
Результат void

Exists() публичный Метод

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.
Результат bool

LastModified() публичный Метод

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.
Результат DateTime?

Move() публичный Метод

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.
Результат void

S3FeedAccessor() публичный Метод

public S3FeedAccessor ( ) : System
Результат System