Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

TAP Client for Pub-Sub

3 replies [Last post]
  • Login or register to post comments
Thu, 05/31/2012 - 12:07
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/13/2012 - 10:22
rags
rags's picture
Offline
Joined: 12/29/2011
Groups: None

I cannot provide the sample code since it's likely the APIs are changing.

However, I would suggest you take a look at

https://github.com/dustin/java-memcached-client/blob/master/src/main/jav...

You can provide any string to tapDump().

Rags

Top
  • Login or register to post comments
Wed, 02/27/2013 - 23:11
ccmail111
Offline
Joined: 02/27/2013
Groups: None

Can someone please point to C++/C pub/sub client library and mechanisms supported by Couchbase ?
I read using TAP interface could be one approach. Any other suggestions/pointers is appreciated.

Top
  • Login or register to post comments
Thu, 02/28/2013 - 01:02
avsej
avsej's picture
Offline
Joined: 06/15/2011
Groups: None

TAP isn't supported by libcouchbase (C client) for now

__________________

Find me on FreeNode IRC in #libcouchbase channel

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