public class WeedfsClient extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private String |
assign |
private String |
masterHost |
private int |
masterPort |
| 构造器和说明 |
|---|
WeedfsClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
RequestResult |
cache(File file)
Description:
Cache local file to WeedFS Server |
RequestResult |
cache(String path)
Description:
Cache local file to WeedFS Server |
RequestResult |
delete(String fid)
Description:
Delete file from WeedFS Server |
RequestResult |
get(String fid)
Description:
Get file from WeedFS Server |
String |
getAssign() |
InputStream |
getInputStream(String fid)
Description:
Get file from WeedFS Server, retunr input stream |
String |
getMasterHost() |
int |
getMasterPort() |
void |
setAssign(String assign) |
void |
setMasterHost(String masterHost) |
void |
setMasterPort(int masterPort) |
private String masterHost
private int masterPort
private String assign
public RequestResult cache(File file)
file - public RequestResult cache(String path)
path - public RequestResult get(String fid)
fid - path - public InputStream getInputStream(String fid)
fid - public RequestResult delete(String fid)
fid - public String getMasterHost()
public void setMasterHost(String masterHost)
public int getMasterPort()
public void setMasterPort(int masterPort)
public String getAssign()
public void setAssign(String assign)
Copyright © 2016. All rights reserved.