This is an automated email from the ASF dual-hosted git repository. qiaojialin pushed a commit to branch cluster_new in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
commit 2491a35d2438c657fce16533269730ab1918287b Author: qiaojialin <[email protected]> AuthorDate: Fri Oct 18 17:19:47 2019 +0800 hello cluster --- cluster/pom.xml | 32 +++++++++++++++++++++++++++ pom.xml | 1 + service-rpc/src/main/thrift/cluster.thrift | 35 ++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+) diff --git a/cluster/pom.xml b/cluster/pom.xml new file mode 100644 index 0000000..5da1515 --- /dev/null +++ b/cluster/pom.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <parent> + <artifactId>iotdb-parent</artifactId> + <groupId>org.apache.iotdb</groupId> + <version>0.9.0-SNAPSHOT</version> + </parent> + <modelVersion>4.0.0</modelVersion> + + <artifactId>cluster</artifactId> + + <name>cluster</name> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <maven.compiler.source>1.7</maven.compiler.source> + <maven.compiler.target>1.7</maven.compiler.target> + </properties> + + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.11</version> + <scope>test</scope> + </dependency> + </dependencies> + +</project> diff --git a/pom.xml b/pom.xml index 390a69b..be80179 100644 --- a/pom.xml +++ b/pom.xml @@ -57,6 +57,7 @@ <module>hadoop</module> <module>spark-iotdb-connector</module> <module>distribution</module> + <module>cluster</module> </modules> <!-- Properties Management --> <properties> diff --git a/service-rpc/src/main/thrift/cluster.thrift b/service-rpc/src/main/thrift/cluster.thrift new file mode 100644 index 0000000..6991a49 --- /dev/null +++ b/service-rpc/src/main/thrift/cluster.thrift @@ -0,0 +1,35 @@ +/* + * 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 java org.apache.iotdb.cluster.rpc.thrift + + +typedef i32 int +typedef i16 short +typedef i64 long + +struct HeartBeat { + 1: required long term + 2: required long appliedID +} + + +service TSIService { + HeartBeat sendHeartBeat(1:long term); + +}
