aboutsummaryrefslogtreecommitdiff
path: root/other/java
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-05-08 02:47:22 -0700
committerChris Lu <chris.lu@gmail.com>2020-05-08 02:47:22 -0700
commitdfccc3c2637693dce141c27a321ba5d3aea1ace9 (patch)
tree9d7bce6ec9f93c563c1086f4b7460279d6527d37 /other/java
parenta8bc8eb351743ffa5032f1c65b8997b4636d67f2 (diff)
downloadseaweedfs-dfccc3c2637693dce141c27a321ba5d3aea1ace9.tar.xz
seaweedfs-dfccc3c2637693dce141c27a321ba5d3aea1ace9.zip
able to read chan and write chan
Diffstat (limited to 'other/java')
-rw-r--r--other/java/client/src/main/proto/filer.proto19
1 files changed, 19 insertions, 0 deletions
diff --git a/other/java/client/src/main/proto/filer.proto b/other/java/client/src/main/proto/filer.proto
index 3b3b78bbb..1fc8ef63d 100644
--- a/other/java/client/src/main/proto/filer.proto
+++ b/other/java/client/src/main/proto/filer.proto
@@ -50,6 +50,10 @@ service SeaweedFiler {
rpc KeepConnected (stream KeepConnectedRequest) returns (stream KeepConnectedResponse) {
}
+
+ rpc LocateBroker (LocateBrokerRequest) returns (LocateBrokerResponse) {
+ }
+
}
//////////////////////////////////////////////////
@@ -267,6 +271,21 @@ message LogEntry {
message KeepConnectedRequest {
string name = 1;
uint32 grpc_port = 2;
+ repeated string resources = 3;
}
message KeepConnectedResponse {
}
+
+message LocateBrokerRequest {
+ string resource = 1;
+}
+message LocateBrokerResponse {
+ bool found = 1;
+ // if found, send the exact address
+ // if not found, send the full list of existing brokers
+ message Resource {
+ string grpc_addresses = 1;
+ int32 resource_count = 2;
+ }
+ repeated Resource resources = 2;
+}