Skip to content

Commit

Permalink
Added system info request
Browse files Browse the repository at this point in the history
  • Loading branch information
reinhapa committed Nov 14, 2024
1 parent 1442ad3 commit 5bb0334
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 4 deletions.
33 changes: 30 additions & 3 deletions src/main/proto/org/xmldb/api/grpc/messages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,38 @@ syntax = "proto3";

package org.xmldb.api.grpc;

// represents an empty response
message EmptyRequest {}

message VersionResponse {
int32 major = 1;
int32 minor = 2;
// represents the java runtime information
message JavaVersion {
string date = 1;
string version = 2;
string vendor = 3;
string vendorVersion = 4;
}

// represents the database system information
message SystemInfo {
string systemVersion = 1;
optional JavaVersion javaVersion = 2;
}



//
// below not not yet used
//

message LoginRequest {
}

message LoginResult {
}

message UUID {
uint64 most_significant_uuid_bits = 1;
uint64 least_significant_uuid_bits = 2;
}

message CountRequest {
Expand Down
9 changes: 8 additions & 1 deletion src/main/proto/org/xmldb/api/grpc/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ import "org/xmldb/api/grpc/messages.proto";
package org.xmldb.api.grpc;

service XmlDbService {
rpc VersionCall(EmptyRequest) returns (VersionResponse);
// query the system info
rpc getSystemInfo(EmptyRequest) returns (SystemInfo);


//
// below not not yet used
//

rpc CollectionCountCall(CountRequest) returns (CountValue);
rpc DocumentCountCall(EmptyRequest) returns (CountValue);
rpc CollectionIdsCall(IdRequest) returns (stream IdValue);
Expand Down

0 comments on commit 5bb0334

Please sign in to comment.