-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJ2KResultsHub.proto
53 lines (43 loc) · 1.28 KB
/
J2KResultsHub.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
syntax = "proto3";
package J2KResultsHub;
option go_package = "./";
service ResultsHub {
// NOTE: for those rpcs, if the call fails, the pod should retry,
// the call will eventually success when ResultsHub recovers
rpc ClaimCellFinished (VarResults) returns (Empty) {}
rpc FetchVarResult (FetchVarResultRequest) returns (VarResult) {}
// for synchronization between the cells, currently used for files RWs
rpc WaitForCell (WaitCellRequest) returns (Empty) {}
// The Ping-Pong service for cluster testing, remove in future
rpc SayHello (HelloRequest) returns (HelloReply) {}
}
message VarResults {
uint32 cellNumber = 1;
repeated VarResult varResuls = 2;
}
// The result of a single variable of a specific cell
message VarResult {
string varName = 1;
string varType = 2;
bytes varBytes = 3;
bool available = 4; // for ResultsHub internal use
bool isJson = 5;
string jsonString = 6;
}
message FetchVarResultRequest {
string varName = 1;
uint32 varAncestorCell = 2;
}
message WaitCellRequest {
uint32 waitFor = 1;
}
message Empty {}
// The request message containing the sender's ID and a message.
message HelloRequest {
string senderId = 1;
string message = 2;
}
// The response message containing the reply.
message HelloReply {
string message = 1;
}