2.2.4 • Published 4 months ago

jolokia.js v2.2.4

Weekly downloads
10
License
Apache-2.0
Repository
github
Last release
4 months ago

Jolokia JavaScript Client library

The Jolokia JavaScript library provides a JavaScript API to the to the Jolokia agent. Refer to Reference Manual for more details on how to use the library.

This client provides the following three libraries:

  • jolokia.js: Base library containing the Jolokia object definition which carries the request()
  • jolokia-simple.js: Library containing the Jolokia simple API and which builds up on jolokia.js. It must be included after jolokia.js since it adds methods to the Jolokia object definition.
  • jolokia-cubism.js: Jolokia comes with a plugin for Cubism and can act as a data source.

Installation

NPM:

npm i jolokia.js

Yarn:

yarn add jolokia.js

Usage

Base library

import Jolokia from "jolokia.js";

const jolokia = new Jolokia("/jolokia");
const response = jolokia.request({
    type: "read",
    mbean: "java.lang:type=Memory",
    attribute: "HeapMemoryUsage",
    path: "used"
});
console.log("Heap Memory used:", response.value);

Simple API

import Jolokia from "jolokia.js";
import "jolokia.js/simple";

const jolokia = new Jolokia("/jolokia");
const value = jolokia.getAttribute("java.lang:type=Memory", "HeapMemoryUsage", "used");
console.log("Heap Memory used:", value);

Cubism source

import cubism from "cubism";
import "jolokia.js";
import "jolokia.js/cubism";

const context = cubism.context();
const jolokia = context.jolokia("/jolokia");
const metricMem = jolokia.metric({
    type: "read",
    mbean: "java.lang:type=Memory",
    attribute: "HeapMemoryUsage",
    path: "used"
}, "HeapMemory Usage");
...
2.2.1

5 months ago

2.2.0

5 months ago

2.2.3

5 months ago

2.2.2

5 months ago

2.2.4

4 months ago

2.1.8

8 months ago

2.1.9

6 months ago

2.1.4

10 months ago

2.1.3

10 months ago

2.1.6

10 months ago

2.1.5

10 months ago

2.1.7

10 months ago

2.1.2

11 months ago

2.0.3

1 year ago

2.0.1

1 year ago

2.0.0

2 years ago

2.0.0-dev.10

2 years ago

2.0.0-m4.0

2 years ago

2.0.0-dev.1

2 years ago

2.0.0-dev.3

2 years ago

2.0.0-dev.2

2 years ago

2.0.0-dev.5

2 years ago

2.0.0-dev.4

2 years ago

2.0.0-dev.7

2 years ago

2.0.0-dev.6

2 years ago

2.0.0-dev.9

2 years ago

2.0.0-dev.8

2 years ago

1.7.3-1

2 years ago

1.7.3-2

2 years ago

1.7.2

2 years ago

1.7.1-3

3 years ago

1.7.1-2

3 years ago

1.7.1-1

3 years ago

1.7.1-6

3 years ago

1.7.1-5

3 years ago

1.7.1-4

3 years ago

1.7.1

3 years ago

1.6.0-1

7 years ago

1.6.0

7 years ago