Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Java Tap Client for Membase
Java
branch: master

This branch is 3 commits ahead, 1 commit behind mikewied:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.settings
lib
src/com/membase/jtap
.classpath
.gitignore
.project
README.markdown
build.xml

README.markdown


                       __  __
                      |__|/  |______  ______
                      |  \   __\__  \ \____ \
                      |  ||  |  / __ \|  |_> >
                  /\__|  ||__| (____  /   __/
                  \______|          \/|__|

                    A Tap Client for Java

Building

ant

A jar should be generated in the build folder

Documentation

ant doc

Check out docs/javadocs/index.html

Using

You need to create a TapStreamClient, an Exporter, and a TapStream. The TapStreamClient is given an exporter which handles data output from the tap stream connection. To start streaming data call the start function in TapStreamClient and pass in a TapStream template.

Example

Creates a custom tap stream that will dump all key in a Membase server and send only the key names. All of the key names will be exported to a file named results.txt

TapStreamClient client = new TapStreamClient("10.1.5.102", 11210, "default", null);
Exporter exporter = new FileExporter("results.txt");
CustomStream tapListener = new CustomStream(exporter, "node1");
tapListener.keysOnly();
tapListener.doDump();
client.start(tapListener);

Contact

The couchbase server forums welcomes you and whatever questions you may have regarding using jtap and all other things couchbase.

See also: the full specification for the TAP protocol.

Something went wrong with that request. Please try again.