Skip to Content
Learning Apache Thrift
book

Learning Apache Thrift

by Krzysztof Rakowski
December 2015
Intermediate to advanced
204 pages
4h 19m
English
Packt Publishing
Content preview from Learning Apache Thrift

Testing the installation

To test whether Apache Thrift is installed and works properly, we will generate some code for a service, which does nothing. Don't worry; we will get straight to your first fully-working application in Chapter 3, Running Your First Apache Thrift Service and Client. Now is the time to just check whether everything is in place.

Use the following code in Apache Thrift's IDL and put it in some file, that is, test.thrift:

# this is just a Test service, which contains two methods

service Test {

    # this method probably does nothing
    void donothing(),

    # this method probably multiplies two numbers
    i32 multiply(1:i32 number1, 2:i32 number2),

}

Tip

Downloading the example code

You can download the example code files for all Packt books ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programmer’s Guide to Apache Thrift

Programmer’s Guide to Apache Thrift

William Abernethy
Building Real-time Mobile Solutions with MQTT and IBM MessageSight

Building Real-time Mobile Solutions with MQTT and IBM MessageSight

Bryan Boyd, Joel Gauci, Michael P Robertson, Nguyen Van Duy, Rahul Gupta, Vasfi Gucer, Vladimir Kislicins

Publisher Resources

ISBN: 9781785882746Supplemental Content