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
파일 보기 프로젝트 열기: scoutmedia/DataMigration

공개 메소드들

메소드 설명
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