C# Class NetHadoop.FSClient

显示文件 Open project: gudao/NetHadoop Class Usage Examples

Public Methods

Method Description
Connect ( Thrift.Transport.TBufferedTransport &tsport ) : ThriftHadoopFileSystem.Client
Create ( ThriftHadoopFileSystem client, string localPath, string path ) : bool
Delete ( string path, bool recursive ) : bool

删除文件或文件夹

FSClient ( ) : System
FSClient ( string host, int port ) : System
GetFileStatus ( string path ) : FileStatus
GetFlolderList ( string path ) : List
MakeDir ( string path ) : bool
MoveFile ( string sourcePath, string dectPath ) : List
MutDownLoad ( BackgroundWorker worker, string localRootPath, List fileList, int fileType ) : void
MutUpload ( BackgroundWorker worker, List localPath, string remoteRootPath, string localRootPath ) : void
Open ( ThriftHadoopFileSystem client, string path, string savePath, long fileLength ) : bool
ReName ( string oldPath, string newPath ) : bool

Method Details

Connect() public method

public Connect ( Thrift.Transport.TBufferedTransport &tsport ) : ThriftHadoopFileSystem.Client
tsport Thrift.Transport.TBufferedTransport
return ThriftHadoopFileSystem.Client

Create() public method

public Create ( ThriftHadoopFileSystem client, string localPath, string path ) : bool
client ThriftHadoopFileSystem
localPath string
path string
return bool

Delete() public method

删除文件或文件夹
public Delete ( string path, bool recursive ) : bool
path string
recursive bool 是否删除子文件夹
return bool

FSClient() public method

public FSClient ( ) : System
return System

FSClient() public method

public FSClient ( string host, int port ) : System
host string
port int
return System

GetFileStatus() public method

public GetFileStatus ( string path ) : FileStatus
path string
return FileStatus

GetFlolderList() public method

public GetFlolderList ( string path ) : List
path string
return List

MakeDir() public method

public MakeDir ( string path ) : bool
path string
return bool

MoveFile() public method

public MoveFile ( string sourcePath, string dectPath ) : List
sourcePath string
dectPath string
return List

MutDownLoad() public method

public MutDownLoad ( BackgroundWorker worker, string localRootPath, List fileList, int fileType ) : void
worker System.ComponentModel.BackgroundWorker
localRootPath string
fileList List
fileType int
return void

MutUpload() public method

public MutUpload ( BackgroundWorker worker, List localPath, string remoteRootPath, string localRootPath ) : void
worker System.ComponentModel.BackgroundWorker
localPath List
remoteRootPath string
localRootPath string
return void

Open() public method

public Open ( ThriftHadoopFileSystem client, string path, string savePath, long fileLength ) : bool
client ThriftHadoopFileSystem
path string
savePath string
fileLength long
return bool

ReName() public method

public ReName ( string oldPath, string newPath ) : bool
oldPath string
newPath string
return bool