{"_id":"jolokia-client","_rev":"33-c58098173005b744bbbf5d046884e60c","name":"jolokia-client","description":"execute queries agains the jolokia JMX bridge","dist-tags":{"latest":"0.0.9"},"versions":{"0.0.1":{"name":"jolokia-client","description":"execute queries agains the jolokia JMX bridge","url":"http://github.com/jolia/jolokia-client","version":"0.0.1","author":{"name":"Joachim Kainz","email":"info@jolira.com"},"contributors":[{"name":"Joachim Kainz","email":"info@jolira.com"}],"bugs":{"email":"dev@jolia.com","url":"http://github.com/jolira/jolokia-client/issues"},"keywords":["node.js","jmx","jolokia"],"repository":{"type":"git","url":"git://github.com/jolira/jolokia-client.git"},"main":"index","bin":{"jmx4node":"./bin/jmx4node"},"engines":{"node":">= 0.4.1"},"dependencies":{"cli":">= 0.3.6"},"_id":"jolokia-client@0.0.1","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.5.0-pre","directories":{"lib":"./lib","bin":"./bin"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"1466f027b9bf3f96d8b881d06aee6cef3953cc42","tarball":"https://registry.npmjs.org/jolokia-client/-/jolokia-client-0.0.1.tgz","integrity":"sha512-QhUqYPakVUaaPcfNO2kTxXBaMPQVX5H7mIxsJ4qwNrYRDg5YtsE/6yz2eD12EVnTekSzwadX59mcnZp2OABO8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIH1EdgrbG2b4TSY6msP8jdlpEsUkTvqromMF8UVLTPAIhAN2RlUFlUzEjBU/Yc5PN29Uv+1wphxfymMdeSjLzS7qs"}]}},"0.0.2":{"name":"jolokia-client","description":"execute queries agains the jolokia JMX bridge","url":"http://github.com/jolia/jolokia-client","version":"0.0.2","author":{"name":"Joachim Kainz","email":"info@jolira.com"},"contributors":[{"name":"Joachim Kainz","email":"info@jolira.com"}],"bugs":{"email":"dev@jolia.com","url":"http://github.com/jolira/jolokia-client/issues"},"keywords":["node.js","jmx","jolokia"],"repository":{"type":"git","url":"git://github.com/jolira/jolokia-client.git"},"main":"index","bin":{"jmx4node":"./bin/jmx4node"},"engines":{"node":">= 0.4.1"},"dependencies":{"underscore":">= 1.1.6"},"_id":"jolokia-client@0.0.2","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.5.0-pre","dist":{"shasum":"56f4e5008b6e68159860cfb0d18ad05df29508db","tarball":"https://registry.npmjs.org/jolokia-client/-/jolokia-client-0.0.2.tgz","integrity":"sha512-7iAtK+wGfAc4bYqiuDPkLtj2JLFXkvLhl2gCtYu4UFg7jEzw8C+AMQQhm7Zbbi10G3ksF6DVm3EXy+2cL4Sr8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBvFvtuPyhlsZ2da1lYt1ek47MZOEqhCyQ8YQgt0bsLiAiEAsgg5dgnKg9aVvmhQOmAj1OMii/r1pt0sD3QIGW7Zws8="}]},"directories":{}},"0.0.3":{"name":"jolokia-client","description":"execute queries agains the jolokia JMX bridge","url":"http://github.com/jolia/jolokia-client","version":"0.0.3","author":{"name":"Joachim Kainz","email":"info@jolira.com"},"contributors":[{"name":"Joachim Kainz","email":"info@jolira.com"}],"bugs":{"email":"dev@jolira.com","url":"http://github.com/jolira/jolokia-client/issues"},"keywords":["node.js","jmx","jolokia"],"repository":{"type":"git","url":"git://github.com/jolira/jolokia-client.git"},"main":"index","bin":{"jmx4node":"./bin/jmx4node"},"engines":{"node":">= 0.4.1"},"dependencies":{"underscore":">= 1.1.6"},"_id":"jolokia-client@0.0.3","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.5.0-pre","dist":{"shasum":"7bdbf492bbbb67d091933f19cba59fcb3b2b2c74","tarball":"https://registry.npmjs.org/jolokia-client/-/jolokia-client-0.0.3.tgz","integrity":"sha512-ch9Ko2Xub9SSQB/XFOPUZx1cm3rGdfAtyAD4iHKhPZq0taHPlXbYQ4/+croO5E87ZXwcf3jOzp/OqRolMY+LZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBXWXkWsnU1M1nttWm6J3r+6iEgXxSjI/ZwpDR++zo3aAiAzsCtMsgyHgNwMcE0Hln/Y1NVqm57B95th8byq8mlX3g=="}]},"directories":{}},"0.0.4":{"name":"jolokia-client","description":"execute queries agains the jolokia JMX bridge","url":"http://github.com/jolia/jolokia-client","version":"0.0.4","author":{"name":"Joachim Kainz","email":"info@jolira.com"},"contributors":[{"name":"Joachim Kainz","email":"info@jolira.com"}],"bugs":{"email":"dev@jolira.com","url":"http://github.com/jolira/jolokia-client/issues"},"keywords":["node.js","jmx","jolokia"],"repository":{"type":"git","url":"git://github.com/jolira/jolokia-client.git"},"main":"index","bin":{"jmx4node":"./bin/jmx4node"},"engines":{"node":">= 0.4.1"},"dependencies":{"underscore":">= 1.1.6"," optimist":">=0.2.5"},"_npmJsonOpts":{"file":"/home/jfk/.npm/jolokia-client/0.0.4/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"jolokia-client@0.0.4","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.22","_nodeVersion":"v0.4.11-pre","_defaultsLoaded":true,"dist":{"shasum":"3b13c0f2d066832ea63e6c9f6a4792cc46eaf200","tarball":"https://registry.npmjs.org/jolokia-client/-/jolokia-client-0.0.4.tgz","integrity":"sha512-4RB7O7kahtlFtoYFIRmIp849p/EGYGLddRoPeRgUjkoqJjUqm/aHfYl+GYBHuC9YMHKgsfKPS6h0OADRHHWWkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFlmKEqH3dTbSk6S6DCZ/NLGgzxhec99oexlRWPA69iAIhAMKnvENyM8D9H0fYHurngn/xVjSAOW35LQqORamZ4gb6"}]},"scripts":{},"maintainers":[{"name":"jfk","email":"jfk@jolira.com"}],"directories":{}},"0.0.5":{"name":"jolokia-client","description":"execute queries agains the jolokia JMX bridge","url":"http://github.com/jolia/jolokia-client","version":"0.0.5","author":{"name":"Joachim Kainz","email":"info@jolira.com"},"contributors":[{"name":"Joachim Kainz","email":"info@jolira.com"}],"bugs":{"email":"dev@jolira.com","url":"http://github.com/jolira/jolokia-client/issues"},"keywords":["node.js","jmx","jolokia"],"repository":{"type":"git","url":"git://github.com/jolira/jolokia-client.git"},"main":"index","bin":{"jmx4node":"./bin/jmx4node"},"engines":{"node":">= 0.4.1"},"dependencies":{"underscore":">= 1.1.6"," optimist":">=0.2.5"},"_npmJsonOpts":{"file":"/home/jfk/.npm/jolokia-client/0.0.5/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"jolokia-client@0.0.5","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.23","_nodeVersion":"v0.4.11-pre","_defaultsLoaded":true,"dist":{"shasum":"8cffd7855b4db5ff75236719caea7a9af77de3b1","tarball":"https://registry.npmjs.org/jolokia-client/-/jolokia-client-0.0.5.tgz","integrity":"sha512-Hk2cvKV8uZ1XCERgf3fZOsTAHjfCh8ESPJuHtaZ4dlUAPi482cbgPLF+c+kfnifrOImX1JzbubPXNsbJH0zUew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1pimOqxjcqTe8eVWLbuohpdx+oL/lEL+uPw3NClJDTgIgKSld03c/IL3ZOT5mBzMqw4f/4QQGqIvTA+p5FF2Fj34="}]},"scripts":{},"maintainers":[{"name":"jfk","email":"jfk@jolira.com"}],"directories":{}},"0.0.6":{"name":"jolokia-client","description":"execute queries agains the jolokia JMX bridge","url":"http://github.com/jolia/jolokia-client","version":"0.0.6","author":{"name":"Joachim Kainz","email":"info@jolira.com"},"contributors":[{"name":"Joachim Kainz","email":"info@jolira.com"}],"bugs":{"email":"dev@jolira.com","url":"http://github.com/jolira/jolokia-client/issues"},"keywords":["node.js","jmx","jolokia"],"repository":{"type":"git","url":"git://github.com/jolira/jolokia-client.git"},"main":"index","bin":{"jmx4node":"./bin/jmx4node"},"engines":{"node":">= 0.4.1"},"dependencies":{"underscore":">= 1.1.6"," optimist":">=0.2.5"},"_npmJsonOpts":{"file":"/home/jfk/.npm/jolokia-client/0.0.6/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"jolokia-client@0.0.6","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.26","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"ce1697d56f3db8702df31108712efaa90405925c","tarball":"https://registry.npmjs.org/jolokia-client/-/jolokia-client-0.0.6.tgz","integrity":"sha512-zSfPXcLCNjGGaS4ieSIR6RZWPoQUiF1krYUptjoUKw0W88UZc1g7hU+u0sSg4ahPT/uYBIsAUaRyPoqDTTnY2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGiB8zjoST2okOV3YKFG7P670fKSpbG3LTqwZxfTKSRtAiAISi/PhSSrzmXRG/PbH2mdgS+ZdYfjQEIbptq92dLHgg=="}]},"scripts":{},"maintainers":[{"name":"jfk","email":"jfk@jolira.com"}]},"0.0.7":{"name":"jolokia-client","description":"execute queries agains the jolokia JMX bridge","url":"http://github.com/jolia/jolokia-client","version":"0.0.7","author":{"name":"Joachim Kainz","email":"info@jolira.com"},"contributors":[{"name":"Joachim Kainz","email":"info@jolira.com"}],"bugs":{"email":"dev@jolira.com","url":"http://github.com/jolira/jolokia-client/issues"},"keywords":["node.js","jmx","jolokia"],"repository":{"type":"git","url":"git://github.com/jolira/jolokia-client.git"},"main":"index","bin":{"jmx4node":"./bin/jmx4node"},"engines":{"node":">= 0.4.1"},"dependencies":{"underscore":">= 1.1.6"," optimist":">=0.2.5"},"_npmJsonOpts":{"file":"/home/jfk/.npm/jolokia-client/0.0.7/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"jolokia-client@0.0.7","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.26","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"a07e5f9240968e96dbd60bb46c55f41b5eba90a3","tarball":"https://registry.npmjs.org/jolokia-client/-/jolokia-client-0.0.7.tgz","integrity":"sha512-QMox9JWAjmxvtN3EkFqcQUG+273DoCfIap3lssktVQ+Cz1BM/R2iB5mU4Z7y8u/SX40Y/+kWONGZYhYgduZ0ig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLNV5jI/quL29Gb3F2ACUb1oYBWGE77df7ziifwVSkRAIhAIBluXrdLmumWejeP1QxNbE24v1ozXrkjh6mP1KymFqj"}]},"scripts":{},"maintainers":[{"name":"jfk","email":"jfk@jolira.com"}]},"0.0.8":{"name":"jolokia-client","description":"execute queries agains the jolokia JMX bridge","url":"http://github.com/jolia/jolokia-client","version":"0.0.8","author":{"name":"Joachim Kainz","email":"info@jolira.com"},"contributors":[{"name":"Joachim Kainz","email":"info@jolira.com"}],"bugs":{"email":"dev@jolira.com","url":"http://github.com/jolira/jolokia-client/issues"},"keywords":["node.js","jmx","jolokia"],"repository":{"type":"git","url":"git://github.com/jolira/jolokia-client.git"},"main":"index","bin":{"jmx4node":"./bin/jmx4node"},"engines":{"node":">= 0.4.1"},"dependencies":{"underscore":">= 1.1.6"," optimist":">=0.2.5"},"_npmUser":{"name":"jfk","email":"jfk@jolira.com"},"_id":"jolokia-client@0.0.8","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.6.1","_defaultsLoaded":true,"dist":{"shasum":"0ead5fb1cb5c2789149de55402ee29b1a0f6f694","tarball":"https://registry.npmjs.org/jolokia-client/-/jolokia-client-0.0.8.tgz","integrity":"sha512-ISKdE4j/Fa6gAESZu60hKwoAIWzVsRa2nJS+k45JB8wRPQSJZvNKJqsMTrB6/zUNppD6yjV2GA5fdGTVWdU76w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHQaoNO86JqW3jcOXpgm5A4qJIEfFkxc6nurOL2PDwgQIhAPpVHwcz30YugXLLgQGqPZnUkFH2SMAF4cWbdL5r5MfM"}]},"maintainers":[{"name":"jfk","email":"jfk@jolira.com"}]},"0.0.9":{"name":"jolokia-client","description":"execute queries agains the jolokia JMX bridge","url":"http://github.com/jolia/jolokia-client","version":"0.0.9","author":{"name":"Joachim Kainz","email":"info@jolira.com"},"contributors":[{"name":"Joachim Kainz","email":"info@jolira.com"}],"bugs":{"email":"dev@jolira.com","url":"http://github.com/jolira/jolokia-client/issues"},"keywords":["node.js","jmx","jolokia"],"repository":{"url":"git://github.com/jolira/jolokia-client.git","type":"git"},"main":"index","bin":{"jmx4node":"./bin/jmx4node"},"engines":{"node":">= 0.4.1"},"dependencies":{"underscore":">= 1.1.6"," optimist":">=0.2.5"},"_npmUser":{"name":"jfk","email":"jfk@jolira.com"},"_id":"jolokia-client@0.0.9","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-beta-4","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"82852a8b0df2b2615fa7b18a3c6cbd7065cda1ba","tarball":"https://registry.npmjs.org/jolokia-client/-/jolokia-client-0.0.9.tgz","integrity":"sha512-Z+0k8K0MWw0NL2sMCEQ04p2vC8RfB2unBqpaVuSJ4MvSDSnoI0obfmnxq3qs9Q6+UiBy9bbySZ1eryiv+mybnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF2LWU8nnZHzbf8jMEFSo712ekxp7ChQqUmHDLqC4V77AiEAn0ELJv1QF8gdbYFXvJ6jGpvhmOlqRf9JSrV7KElhDpw="}]},"maintainers":[{"name":"jfk","email":"jfk@jolira.com"}]}},"maintainers":[{"name":"jfk","email":"jfk@jolira.com"}],"time":{"modified":"2022-06-19T04:45:33.835Z","created":"2011-06-28T19:13:57.582Z","0.0.1":"2011-06-28T19:13:58.201Z","0.0.2":"2011-07-06T00:34:43.799Z","0.0.3":"2011-07-06T06:21:28.333Z","0.0.4":"2011-08-08T01:26:31.061Z","0.0.5":"2011-08-08T23:51:40.126Z","0.0.6":"2011-08-24T06:47:22.607Z","0.0.7":"2011-08-24T22:43:19.908Z","0.0.8":"2011-11-15T05:41:19.200Z","0.0.9":"2012-01-06T06:33:31.717Z"},"author":{"name":"Joachim Kainz","email":"info@jolira.com"},"repository":{"url":"git://github.com/jolira/jolokia-client.git","type":"git"},"readme":"Overview\n========\n\nA node.js client for retrieving information from the JXM bridge provided by Roland\nHuss at http://www.jolokia.org/.\n\nUsage\n-----\n\nCurrently, only a subset of commands is supported. Please Please file a case\nat https://github.com/jolira/jolokia-client/issues if you want a particular command\nto be added.\n\n### Create a new client\n\n```\nvar jolokia = require(\"jolokia-client\");\nvar util = require('util'); // used by the examples below\n\nvar client = new jolokia(\"http://my.server.com/jolokia\");\n```\n\n### List the available mbeans\n\n#### client.list(mbeans, callback)\n\n``mbeans`` is a string that identifies one particular mbean or domain name (such\nas ``\"JMImplementation\"`` or ``\"JMImplementation:type=MBeanServerDelegate\"``) or an\narray or such names (such as ``[\"JMImplementation\", \"Catalina\"]``). The parameter\nmay also omitted to retrieve information about all mbeans available\non the server.\n\nThe ``callback`` method takes one parameter. It is called when data was received\nfrom the server. The data is return as a JavaScript object.\n\n```\n// lists all available attributes and operations\nclient.list(function(response){\n  console.log(util.inspect(response, true, 10));\n});\n// lists available attributes and operations for all JMImplementation mbeans\nclient.list(\"JMImplementation\", function(response){\n  console.log(util.inspect(response, true, 10));\n});\n// lists available attributes and operations for the JMImplementation:type=MBeanServerDelegate mbean\nclient.list(\"JMImplementation:type=MBeanServerDelegate\", function(response){\n  console.log(util.inspect(response, true, 10));\n});\n// lists available attributes and operations for all JMImplementation and Catalina mbeans\nclient.list([\"JMImplementation\", \"Catalina\"], function(response){\n  console.log(util.inspect(response, true, 10));\n});\n```\n\n### Read mbean attribute values\n\n#### client.read(mbean, attribute, callback)\n\n``mbean`` is a string that identifies one particular (qualified) mbean (such\n``\"JMImplementation:type=MBeanServerDelegate\"``)\n\n``atrribute`` is a string that identifies one particular attribute (such as\n``\"ImplementationVersion\"``). This parameter may be omitted to return all attributes\nof an mbean.\n\nThe ``callback`` method takes one parameter. It is called when data was received\nfrom the server. The data is return as a JavaScript object.\n\n```\n// read all attributes of \"JMImplementation:type=MBeanServerDelegate\"\nclient.read(\"JMImplementation:type=MBeanServerDelegate\", function(response){\n  console.log(util.inspect(response, true, 10));\n});\n// read the \"ImplementationVersion\" attribute of \"JMImplementation:type=MBeanServerDelegate\"\nclient.read(\"JMImplementation:type=MBeanServerDelegate\", \"ImplementationVersion\", function(response){\n  console.log(util.inspect(response, true, 10));\n});\n```\n\nIt is also possible to read multiple metric at the same time:\n\n```\n// read all attributes of \"JMImplementation:type=MBeanServerDelegate\"\nclient.read([\"JMImplementation:type=MBeanServerDelegate\", \"java.lang:type=Memory\"], function(response){\n  console.log(util.inspect(response, true, 10));\n});\n// read the \"ImplementationVersion\" attribute of \"JMImplementation:type=MBeanServerDelegate\"\nclient.read([{mbean: \"JMImplementation:type=MBeanServerDelegate\", attribute=\"ImplementationVersion\"}], function(response){\n  console.log(util.inspect(response, true, 10));\n});\n```\n\njmx4node\n--------\n\nThere is also a jxm2node command line utility included to access JMX information.\n\n### Usage: ``jxm2node <url> <command> [params]``\n\nThe utility must be invoked with a valid <url>, such as ``http://my.server.com/jolokia``.\nAlso, a command must be provided. Valid commands are documented below.\n\n#### ``list [<mbean>]``\n\nDescribe all mbeans for the given server. If no parameter is passed, all available  mbeans\nof the server are part of the output.\n\nExamples are:\n\n```\njmx4node http://my.server.com/jolokia list\njmx4node http://my.server.com/jolokia list JMImplementation\njmx4node http://my.server.com/jolokia list JMImplementation:type=MBeanServerDelegate\n```\n\n#### ``read <mbean> [<attribute>]``\n\nRead the attributes of  all mbeans for the given server. If no <attribute> parameter is passed, all \navailable attributes of the mbean are part of the output.\n\nExamples are:\n\n```\njmx4node http://my.server.com/jolokia read JMImplementation:type=MBeanServerDelegate\njmx4node http://my.server.com/jolokia read JMImplementation ImplementationVersion:\n```\n\n#### ``dump [<mbean>]``\n\nRead all the values of an <mbean>, if a bean is provide, or all the values on the server otherwise\n\nExamples are:\n\n```\njmx4node http://my.server.com/jolokia dump\njmx4node http://my.server.com/jolokia dump JMImplementation\njmx4node http://my.server.com/jolokia dump JMImplementation:type=MBeanServerDelegate\n```\n","readmeFilename":""}