infinispan 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +25 -0
- package/Jenkinsfile-release +5 -3
- package/documentation/asciidoc/stories/assembly_client_usage_examples.adoc +2 -8
- package/documentation/asciidoc/stories/{assembly_configuration.adoc → assembly_installation_configuration.adoc} +6 -4
- package/documentation/asciidoc/titles/js_client.asciidoc +1 -0
- package/documentation/asciidoc/titles/stories.adoc +1 -2
- package/documentation/asciidoc/topics/attributes/community-attributes.adoc +2 -1
- package/documentation/asciidoc/topics/attributes/downstream-attributes.adoc +0 -2
- package/documentation/asciidoc/topics/code_examples/authentication-digest.js +3 -2
- package/documentation/asciidoc/topics/code_examples/authentication-external.js +3 -2
- package/documentation/asciidoc/topics/code_examples/authentication-oauthbearer.js +3 -2
- package/documentation/asciidoc/topics/code_examples/authentication-plain.js +3 -2
- package/documentation/asciidoc/topics/code_examples/authentication-scram.js +3 -2
- package/documentation/asciidoc/topics/code_examples/await-single-entries.js +1 -1
- package/documentation/asciidoc/topics/code_examples/conditional-operations.js +7 -1
- package/documentation/asciidoc/topics/code_examples/connection-multiple-servers.js +5 -1
- package/documentation/asciidoc/topics/code_examples/data-types.js +2 -2
- package/documentation/asciidoc/topics/code_examples/ephemeral-data.js +11 -6
- package/documentation/asciidoc/topics/code_examples/hello-world.js +13 -1
- package/documentation/asciidoc/topics/code_examples/key-value-converter.js +3 -4
- package/documentation/asciidoc/topics/code_examples/multiple-entries.js +13 -2
- package/documentation/asciidoc/topics/code_examples/queries.js +92 -0
- package/documentation/asciidoc/topics/code_examples/register-event-listener.js +8 -4
- package/documentation/asciidoc/topics/code_examples/sample-script-execute.js +6 -1
- package/documentation/asciidoc/topics/code_examples/single-entries.js +13 -2
- package/documentation/asciidoc/topics/proc_configuring_connections.adoc +8 -9
- package/documentation/asciidoc/topics/proc_installing_clients.adoc +23 -5
- package/documentation/asciidoc/topics/ref_client_usage.adoc +128 -0
- package/lib/codec.js +153 -2
- package/lib/infinispan.js +87 -57
- package/lib/io.js +14 -8
- package/lib/protocols.js +129 -4
- package/lib/protostream/message-wrapping.proto +134 -0
- package/lib/protostream/query.proto +122 -0
- package/lib/sasl/bitops.js +5 -7
- package/lib/sasl/factory.js +71 -0
- package/lib/utils.js +1 -1
- package/memory-profiling/helper.js +9 -0
- package/memory-profiling/infinispan_memory_many_get.js +1 -3
- package/memory-profiling/infinispan_memory_one_get.js +6 -4
- package/package.json +10 -12
- package/run-servers.sh +1 -1
- package/smoke-tests.sh +1 -0
- package/spec/codec_spec.js +7 -7
- package/spec/configs/infinispan-clustered.xml +17 -14
- package/spec/configs/infinispan-ssl.xml +25 -22
- package/spec/configs/infinispan-xsite-EARTH.xml +17 -14
- package/spec/configs/infinispan-xsite-MOON.xml +14 -11
- package/spec/configs/infinispan.xml +22 -13
- package/spec/protostream_spec.js +237 -0
- package/spec/utils/testing.js +1 -3
- package/types/README.md +91 -0
- package/types/index.d.ts +868 -0
- package/.jshintrc +0 -14
- package/documentation/asciidoc/stories/assembly_getting_started.adoc +0 -11
- package/documentation/asciidoc/topics/community-attributes.adoc +0 -10
- package/documentation/asciidoc/topics/downstream-attributes.adoc +0 -10
- package/documentation/asciidoc/topics/proc_executing_scripts.adoc +0 -16
- package/documentation/asciidoc/topics/proc_registering_event_listeners.adoc +0 -31
- package/documentation/asciidoc/topics/proc_using_async_await.adoc +0 -23
- package/documentation/asciidoc/topics/proc_using_conditional_operations.adoc +0 -7
- package/documentation/asciidoc/topics/proc_working_ephemeral_data.adoc +0 -7
- package/documentation/asciidoc/topics/proc_working_multiple_entries.adoc +0 -7
- package/documentation/asciidoc/topics/proc_working_single_entries_statistics.adoc +0 -7
- package/documentation/asciidoc/topics/ref_basic_usage.adoc +0 -8
package/.jshintrc
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
[id='getting-started']
|
|
2
|
-
:context: getting-started
|
|
3
|
-
= Getting started with {hr_js} clients
|
|
4
|
-
Ensure your system meets requirements before installing the {hr_js} client.
|
|
5
|
-
|
|
6
|
-
include::{topics}/proc_installing_clients.adoc[leveloffset=+1]
|
|
7
|
-
include::{topics}/ref_basic_usage.adoc[leveloffset=+1]
|
|
8
|
-
|
|
9
|
-
// Restore the parent context.
|
|
10
|
-
ifdef::parent-context[:context: {parent-context}]
|
|
11
|
-
ifndef::parent-context[:!context:]
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
:brandname: Infinispan
|
|
2
|
-
:hr_js: Hot Rod JS
|
|
3
|
-
:rhel_long: Red Hat Enterprise Linux (RHEL)
|
|
4
|
-
:rhel_short: RHEL
|
|
5
|
-
:win_long: Microsoft Windows
|
|
6
|
-
:win_short: Windows
|
|
7
|
-
|
|
8
|
-
:doc_home: https://infinispan.org/documentation/
|
|
9
|
-
:download_url: https://infinispan.org/hotrod-clients
|
|
10
|
-
:js_api_docs: https://docs.jboss.org/infinispan/hotrod-clients/javascript/1.0/apidocs/
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
:brandname: Data Grid
|
|
2
|
-
:hr_js: Hot Rod JS
|
|
3
|
-
:rhel_long: Red Hat Enterprise Linux (RHEL)
|
|
4
|
-
:rhel_short: RHEL
|
|
5
|
-
:win_long: Microsoft Windows
|
|
6
|
-
:win_short: Windows
|
|
7
|
-
|
|
8
|
-
:doc_home: https://access.redhat.com/documentation/en-us/red_hat_data_grid/
|
|
9
|
-
:download_url: https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?product=data.grid&downloadType=distributions
|
|
10
|
-
:js_api_docs: https://access.redhat.com/webassets/avalon/d/red-hat-data-grid/8.2/node/
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
[id='executing-scripts_{context}']
|
|
2
|
-
= Executing scripts on {brandname} Server
|
|
3
|
-
|
|
4
|
-
You can add custom scripts, such as the following to {brandname} Server:
|
|
5
|
-
|
|
6
|
-
[source,javascript,options="nowrap",subs=attributes+]
|
|
7
|
-
----
|
|
8
|
-
include::code_examples/sample-script.js[]
|
|
9
|
-
----
|
|
10
|
-
|
|
11
|
-
The {hr_js} client can load and execute the sample script as follows:
|
|
12
|
-
|
|
13
|
-
[source,javascript,options="nowrap",subs=attributes+]
|
|
14
|
-
----
|
|
15
|
-
include::code_examples/sample-script-execute.js[]
|
|
16
|
-
----
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
[id='registering-event-listeners_{context}']
|
|
2
|
-
= Registering event listeners
|
|
3
|
-
|
|
4
|
-
Clients can register event listeners that get invoked when data changes happen.
|
|
5
|
-
Create, modified, remove and expired events are supported.
|
|
6
|
-
Create and modified events emit key and version of value after event.
|
|
7
|
-
Remove and expired events only emit key information.
|
|
8
|
-
|
|
9
|
-
[source,javascript,options="nowrap",subs=attributes+]
|
|
10
|
-
----
|
|
11
|
-
include::code_examples/register-event-listener.js[]
|
|
12
|
-
----
|
|
13
|
-
|
|
14
|
-
Starting with client version `0.7` and Infinispan `9.4.x` server,
|
|
15
|
-
it's possible to tailor events to add or remove information from each event.
|
|
16
|
-
|
|
17
|
-
For example, a user might want to find out the value associated with the key after an event.
|
|
18
|
-
If the value was sent back along with the key within the event, unnecessary round trips to fetch the value would be avoided.
|
|
19
|
-
This can be achieved configuring the listener with a remote event converter.
|
|
20
|
-
|
|
21
|
-
Infinispan servers come with a converter called `key-value-with-previous-converter-factory` which can be used for this purpose:
|
|
22
|
-
|
|
23
|
-
[source,javascript,options="nowrap",subs=attributes+]
|
|
24
|
-
----
|
|
25
|
-
include::code_examples/key-value-converter.js[]
|
|
26
|
-
----
|
|
27
|
-
|
|
28
|
-
You can also create and deploy your own converters into Infinispan server instances.
|
|
29
|
-
See the
|
|
30
|
-
[event filter and conversion](https://infinispan.org/docs/stable/titles/developing/developing.html#event_filtering_and_conversion)
|
|
31
|
-
section in the Developers Guide for more information.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
[id='using-async-await_{context}']
|
|
2
|
-
= Using Async and Await constructs
|
|
3
|
-
|
|
4
|
-
Examples above can be greatly simplified taking advantage of `async` / `await` constructs,
|
|
5
|
-
which are available in Node.js since version `7.10.0`.
|
|
6
|
-
|
|
7
|
-
This section shows how some of the examples above can be written using `async` / `await`:
|
|
8
|
-
|
|
9
|
-
[discrete]
|
|
10
|
-
== Working with single entries and statistics
|
|
11
|
-
|
|
12
|
-
[source,javascript,options="nowrap",subs=attributes+]
|
|
13
|
-
----
|
|
14
|
-
include::code_examples/await-single-entries.js[]
|
|
15
|
-
----
|
|
16
|
-
|
|
17
|
-
[discrete]
|
|
18
|
-
== Working with multiple entries
|
|
19
|
-
|
|
20
|
-
[source,javascript,options="nowrap",subs=attributes+]
|
|
21
|
-
----
|
|
22
|
-
include::code_examples/await-multiple-entries.js[]
|
|
23
|
-
----
|