Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Single Server 1.x

TAP client

1 reply [Last post]
  • Login or register to post comments
Wed, 05/30/2012 - 13:04
Bhuvana Krishna...
Offline
Joined: 05/30/2012
Groups: None

hi,
We use couchbase in our application. we have a cluster of controllers writing to the db.
We need to make use of the TAP feature in order to do a DB pub-sub so that all controllers will know of changes made by any one controller.
Jtap seems to be deprecated and it is mentioned that the functionality is present in the couch client.
Can someone point me to a code sample to use a tap client.

Will the below example mentioned in jtap site now work in the couch client? Is there any documentation that says what APIs are available? What if I don't want the keys in a file, but want a java collection to iterate over?

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);

Thanks,
Bhuvana

Top
  • Login or register to post comments
Wed, 06/20/2012 - 08:40
BigBlueHat
Offline
Joined: 01/28/2011
Groups: None

Just cross linking to the answer given in the other forum, so others can find the answer:
http://www.couchbase.com/forums/thread/tap-client-pub-sub

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker