Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Java Tap Client for Membase

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .settings
Octocat-spinner-32 lib
Octocat-spinner-32 src
Octocat-spinner-32 .classpath
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .project
Octocat-spinner-32 README
Octocat-spinner-32 build.xml
README
******************************************************************************************
    THIS PROJECT HAS BEEN MERGED INTO THE SPYMEMCACHED AND COUCHBASE CLIENT PROJECTS
******************************************************************************************

I merged the code into Spymemcached and Couchbase Client in May 2011 and have not worked
on this project since. As a result jtap contains bugs and may not work correctly against
memcached, Membase, and Couchbase. The functionality in Spymemcached and Couchbase Client
is very similar to the functionality in this project and should allow for an easy
transition.

******************************************************************************************



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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                   A Tap Client for Java
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Building:

	ant build

	A jar should be generated in the build folder

Documentation:

	ant docs

	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:
	
	For help with the java tap client post questions to the couchbase forum:
	http://techzone.couchbase.com/forums/couchbase/couchbase-server


	The full specification for the TAP protocol can be found here:
	http://techzone.couchbase.com/wiki/display/membase/TAP+Protocol
Something went wrong with that request. Please try again.