| // Licensed to the Apache Software Foundation (ASF) under one |
| // or more contributor license agreements. See the NOTICE file |
| // distributed with this work for additional information |
| // regarding copyright ownership. The ASF licenses this file |
| // to you under the Apache License, Version 2.0 (the |
| // "License"); you may not use this file except in compliance |
| // with the License. You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, |
| // software distributed under the License is distributed on an |
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| // KIND, either express or implied. See the License for the |
| // specific language governing permissions and limitations |
| // under the License. |
| |
| namespace cpp doris |
| namespace java org.apache.doris.thrift |
| |
| include "AgentService.thrift" |
| include "Status.thrift" |
| include "Types.thrift" |
| |
| const i64 IS_SET_DEFAULT_ROWSET_TO_BETA_BIT = 0x01; |
| |
| struct TMasterInfo { |
| 1: required Types.TNetworkAddress network_address |
| 2: required Types.TClusterId cluster_id |
| 3: required Types.TEpoch epoch |
| 4: optional string token |
| 5: optional string backend_ip |
| 6: optional Types.TPort http_port |
| 7: optional i64 heartbeat_flags |
| 8: optional i64 backend_id |
| } |
| |
| struct TBackendInfo { |
| 1: required Types.TPort be_port |
| 2: required Types.TPort http_port |
| 3: optional Types.TPort be_rpc_port |
| 4: optional Types.TPort brpc_port |
| 5: optional string version |
| 6: optional i64 be_start_time |
| 7: optional string be_node_role |
| } |
| |
| struct THeartbeatResult { |
| 1: required Status.TStatus status |
| 2: required TBackendInfo backend_info |
| } |
| |
| service HeartbeatService { |
| THeartbeatResult heartbeat(1:TMasterInfo master_info); |
| } |