Repository: accumulo Updated Branches: refs/heads/master d5d18dda3 -> 86e6fb44b
http://git-wip-us.apache.org/repos/asf/accumulo/blob/86e6fb44/test/src/main/scripts/generate-thrift.sh ---------------------------------------------------------------------- diff --git a/test/src/main/scripts/generate-thrift.sh b/test/src/main/scripts/generate-thrift.sh new file mode 100755 index 0000000..061ad4f --- /dev/null +++ b/test/src/main/scripts/generate-thrift.sh @@ -0,0 +1,24 @@ +#! /usr/bin/env bash + +# 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. + +# This script will regenerate the thrift code for accumulo-trace. +INCLUDED_MODULES=(-) +BASE_OUTPUT_PACKAGE='org.apache.accumulo' +PACKAGES_TO_GENERATE=(test.rpc) + +. ../core/src/main/scripts/generate-thrift.sh + http://git-wip-us.apache.org/repos/asf/accumulo/blob/86e6fb44/test/src/main/thrift/test.thrift ---------------------------------------------------------------------- diff --git a/test/src/main/thrift/test.thrift b/test/src/main/thrift/test.thrift new file mode 100644 index 0000000..7e4d955 --- /dev/null +++ b/test/src/main/thrift/test.thrift @@ -0,0 +1,30 @@ +/* +* 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.accumulo.test.rpc.thrift + +service SimpleThriftService +{ + string echoPass(1:string value) + oneway void onewayPass(1:string value) + + string echoFail(1:string value) + oneway void onewayFail(1:string value) + + string echoRuntimeFail(1:string value) + oneway void onewayRuntimeFail(1:string value) +}