diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-10-30 19:27:25 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-10-30 19:27:25 -0700 |
| commit | 24858507cca1429bb499c2bdb13236f9ef98d599 (patch) | |
| tree | 8d7479c2427627ae85adea220aee052165ab7bef /other/java/client | |
| parent | f5824f369c2bb29d6a50c0da55cc2b77c2f18630 (diff) | |
| download | seaweedfs-24858507cca1429bb499c2bdb13236f9ef98d599.tar.xz seaweedfs-24858507cca1429bb499c2bdb13236f9ef98d599.zip | |
rename API to avoid confusion
Diffstat (limited to 'other/java/client')
| -rw-r--r-- | other/java/client/src/main/java/seaweedfs/client/RemoteUtil.java | 4 | ||||
| -rw-r--r-- | other/java/client/src/main/proto/filer.proto | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/other/java/client/src/main/java/seaweedfs/client/RemoteUtil.java b/other/java/client/src/main/java/seaweedfs/client/RemoteUtil.java index 39c17644b..a84d5aa2b 100644 --- a/other/java/client/src/main/java/seaweedfs/client/RemoteUtil.java +++ b/other/java/client/src/main/java/seaweedfs/client/RemoteUtil.java @@ -14,8 +14,8 @@ public class RemoteUtil { String dir = SeaweedOutputStream.getParentDirectory(fullpath); String name = SeaweedOutputStream.getFileName(fullpath); - final FilerProto.DownloadToLocalResponse downloadToLocalResponse = filerClient.getBlockingStub() - .downloadToLocal(FilerProto.DownloadToLocalRequest.newBuilder() + final FilerProto.CacheRemoteObjectToLocalClusterResponse downloadToLocalResponse = filerClient.getBlockingStub() + .downloadToLocal(FilerProto.CacheRemoteObjectToLocalClusterRequest.newBuilder() .setDirectory(dir).setName(name).build()); return downloadToLocalResponse.getEntry(); diff --git a/other/java/client/src/main/proto/filer.proto b/other/java/client/src/main/proto/filer.proto index 24b651fe9..921ffc674 100644 --- a/other/java/client/src/main/proto/filer.proto +++ b/other/java/client/src/main/proto/filer.proto @@ -69,7 +69,7 @@ service SeaweedFiler { rpc KvPut (KvPutRequest) returns (KvPutResponse) { } - rpc DownloadToLocal (DownloadToLocalRequest) returns (DownloadToLocalResponse) { + rpc CacheRemoteObjectToLocalCluster (CacheRemoteObjectToLocalClusterRequest) returns (CacheRemoteObjectToLocalClusterResponse) { } } @@ -403,10 +403,10 @@ message FilerConf { ///////////////////////// // Remote Storage related ///////////////////////// -message DownloadToLocalRequest { +message CacheRemoteObjectToLocalClusterRequest { string directory = 1; string name = 2; } -message DownloadToLocalResponse { +message CacheRemoteObjectToLocalClusterResponse { Entry entry = 1; } |
