Last active
October 11, 2016 08:31
-
-
Save daschl/3447e66f8076c0ec75359272c8d0b012 to your computer and use it in GitHub Desktop.
Eclipse MAT Couchbase SDK 2.x OQL Cheat Sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Finds all "Nodes", prints their hostname and their connection state | |
SELECT n.currentState.name.toString() AS state, n.hostname.holder.hostName.toString() AS hostname | |
FROM com.couchbase.client.core.node.CouchbaseNode n | |
-- Find all KV Endpoints, prints their hostname and their connection state and the bucket name | |
SELECT e.currentState.name.toString() AS state, | |
e.channel.requestedRemoteAddress.holder.addr.holder.hostName.toString() AS hostname, | |
e.bucket.toString() AS bucket | |
FROM com.couchbase.client.core.endpoint.kv.KeyValueEndpoint e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment