C# Class NetHadoop.FSClient

Afficher le fichier Open project: gudao/NetHadoop Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public Connect ( Thrift.Transport.TBufferedTransport &tsport ) : ThriftHadoopFileSystem.Client
tsport Thrift.Transport.TBufferedTransport
Résultat ThriftHadoopFileSystem.Client

Create() public méthode

public Create ( ThriftHadoopFileSystem client, string localPath, string path ) : bool
client ThriftHadoopFileSystem
localPath string
path string
Résultat bool

Delete() public méthode

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

FSClient() public méthode

public FSClient ( ) : System
Résultat System

FSClient() public méthode

public FSClient ( string host, int port ) : System
host string
port int
Résultat System

GetFileStatus() public méthode

public GetFileStatus ( string path ) : FileStatus
path string
Résultat FileStatus

GetFlolderList() public méthode

public GetFlolderList ( string path ) : List
path string
Résultat List

MakeDir() public méthode

public MakeDir ( string path ) : bool
path string
Résultat bool

MoveFile() public méthode

public MoveFile ( string sourcePath, string dectPath ) : List
sourcePath string
dectPath string
Résultat List

MutDownLoad() public méthode

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

MutUpload() public méthode

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

Open() public méthode

public Open ( ThriftHadoopFileSystem client, string path, string savePath, long fileLength ) : bool
client ThriftHadoopFileSystem
path string
savePath string
fileLength long
Résultat bool

ReName() public méthode

public ReName ( string oldPath, string newPath ) : bool
oldPath string
newPath string
Résultat bool