Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
187d847
commit 8859eab
Showing
416 changed files
with
792 additions
and
988 deletions.
There are no files selected for viewing
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
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
22 changes: 22 additions & 0 deletions
22
documentation/src/main/asciidoc/stories/assembly_cache_configuration.adoc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[id='cache-configuration'] | ||
:context: cache-configuration | ||
= {brandname} cache configuration | ||
|
||
Cache configuration controls how {brandname} stores your data. | ||
|
||
As part of your cache configuration, you declare the cache mode you want to use. | ||
For instance, you can configure {brandname} clusters to use replicated caches or distributed caches. | ||
|
||
Your configuration also defines the characteristics of your caches and enables the {brandname} capabilities that you want to use when handling data. | ||
For instance, you can configure how {brandname} encodes entries in your caches, whether replication requests happen synchronously or asynchronously between nodes, if entries are mortal or immortal, and so on. | ||
|
||
include::{topics}/con_declarative_cache_configuration.adoc[leveloffset=+1] | ||
include::{topics}/ref_infinispan_caches.adoc[leveloffset=+2] | ||
include::{topics}/proc_adding_cache_configuration_templates.adoc[leveloffset=+1] | ||
include::{topics}/con_cache_template_inheritance.adoc[leveloffset=+2] | ||
include::{topics}/con_cache_template_wildcards.adoc[leveloffset=+2] | ||
include::{topics}/con_cache_template_xinclude.adoc[leveloffset=+2] | ||
|
||
// Restore the parent context. | ||
ifdef::parent-context[:context: {parent-context}] | ||
ifndef::parent-context[:!context:] |
26 changes: 0 additions & 26 deletions
26
documentation/src/main/asciidoc/stories/assembly_configuration.adoc
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
documentation/src/main/asciidoc/stories/assembly_configuring_maven_repository.adoc
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
24 changes: 24 additions & 0 deletions
24
documentation/src/main/asciidoc/stories/assembly_configuring_statistics_jmx.adoc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[id='statistics-jmx'] | ||
:context: statistics-jmx | ||
= Enabling and configuring {brandname} statistics and JMX monitoring | ||
|
||
{brandname} can provide Cache Manager and cache statistics as well as export JMX MBeans. | ||
|
||
ifdef::embedded_caches[] | ||
include::{topics}/proc_enabling_statistics_embedded.adoc[leveloffset=+1] | ||
endif::embedded_caches[] | ||
|
||
ifdef::remote_caches[] | ||
include::{topics}/proc_enabling_statistics_remote.adoc[leveloffset=+1] | ||
include::{topics}/proc_enabling_hotrod_client_statistics.adoc[leveloffset=+1] | ||
endif::remote_caches[] | ||
|
||
include::{topics}/proc_configuring_metrics.adoc[leveloffset=+1] | ||
include::{topics}/proc_enabling_jmx.adoc[leveloffset=+1] | ||
include::{topics}/proc_enabling_jmx_port.adoc[leveloffset=+2] | ||
include::{topics}/ref_jmx_mbeans.adoc[leveloffset=+2] | ||
include::{topics}/proc_registering_jmx_mbean_servers.adoc[leveloffset=+2] | ||
|
||
// Restore the parent context. | ||
ifdef::parent-context[:context: {parent-context}] | ||
ifndef::parent-context[:!context:] |
12 changes: 12 additions & 0 deletions
12
documentation/src/main/asciidoc/stories/assembly_creating_embedded_caches.adoc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[id='creating-embedded-caches'] | ||
:context: creating-embedded-caches | ||
= Creating embedded caches | ||
|
||
{brandname} provides an `EmbeddedCacheManager` API that lets you control both the Cache Manager and embedded cache lifecycles programmatically. | ||
|
||
include::{topics}/proc_installing_embedded.adoc[leveloffset=+1] | ||
include::{topics}/proc_creating_caches_embedded.adoc[leveloffset=+1] | ||
|
||
// Restore the parent context. | ||
ifdef::parent-context[:context: {parent-context}] | ||
ifndef::parent-context[:!context:] |
22 changes: 10 additions & 12 deletions
22
documentation/src/main/asciidoc/stories/assembly_creating_remote_caches.adoc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
[id='create_remote_cache'] | ||
:context: server | ||
= Remotely Creating {brandname} Caches | ||
Add caches to {brandname} Server so you can store data. | ||
[id='creating-remote-caches'] | ||
:context: creating-remote-caches | ||
= Creating remote caches | ||
|
||
include::{topics}/con_remote_cache.adoc[leveloffset=+1] | ||
include::{topics}/ref_default_cm_remote.adoc[leveloffset=+1] | ||
When you create remote caches at runtime, {brandname} Server synchronizes your configuration across the cluster so that all nodes have a copy. | ||
For this reason you should always create remote caches dynamically with the following mechanisms: | ||
|
||
//Console | ||
* {brandname} Console | ||
* {brandname} Command Line Interface (CLI) | ||
* Hot Rod or HTTP clients | ||
include::{topics}/con_default_cache_manager.adoc[leveloffset=+1] | ||
include::{topics}/proc_creating_caches_console.adoc[leveloffset=+1] | ||
//CLI | ||
include::{topics}/proc_creating_caches_cli.adoc[leveloffset=+1] | ||
//Hot Rod | ||
include::{topics}/proc_creating_caches_hotrod.adoc[leveloffset=+1] | ||
//REST | ||
include::{topics}/proc_creating_caches_rest.adoc[leveloffset=+1] | ||
|
||
include::{topics}/ref_infinispan_caches.adoc[leveloffset=+1] | ||
|
||
// Restore the parent context. | ||
ifdef::parent-context[:context: {parent-context}] | ||
ifndef::parent-context[:!context:] |
14 changes: 0 additions & 14 deletions
14
documentation/src/main/asciidoc/stories/assembly_embedding.adoc
This file was deleted.
Oops, something went wrong.
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
16 changes: 0 additions & 16 deletions
16
documentation/src/main/asciidoc/stories/assembly_server_statistics.adoc
This file was deleted.
Oops, something went wrong.
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
17 changes: 0 additions & 17 deletions
17
documentation/src/main/asciidoc/stories/assembly_statistics.adoc
This file was deleted.
Oops, something went wrong.
14 changes: 2 additions & 12 deletions
14
documentation/src/main/asciidoc/stories/assembly_xsite_monitoring.adoc
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
//Reference user stories or topics. | ||
//Please review authoring guidelines in the Contributors Guide. | ||
|
||
include::{stories}/assembly_embedding.adoc[leveloffset=+1] | ||
include::{stories}/assembly_configuring_maven_repository.adoc[leveloffset=+1] | ||
include::{stories}/assembly_creating_embedded_caches.adoc[leveloffset=+1] | ||
include::{stories}/assembly_configuring_statistics_jmx.adoc[leveloffset=+1] | ||
include::{stories}/assembly_setting_up_clusters.adoc[leveloffset=+1] |
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
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
1 change: 1 addition & 0 deletions
1
documentation/src/main/asciidoc/topics/cmd_examples/user_create_group.adoc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$ bin/cli.sh user create myuser -p changeme -g admin |
2 changes: 1 addition & 1 deletion
2
documentation/src/main/asciidoc/topics/cmd_examples/user_tool_nix.adoc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
$ bin/cli.sh user create myuser -p "qwer1234!" | ||
$ bin/cli.sh user create admin -p changeme |
2 changes: 1 addition & 1 deletion
2
documentation/src/main/asciidoc/topics/cmd_examples/user_tool_win.adoc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
$ bin\cli.bat user create myuser -p "qwer1234!" | ||
$ bin\cli.bat user create admin -p changeme |
9 changes: 9 additions & 0 deletions
9
documentation/src/main/asciidoc/topics/code_examples/EmbeddedCacheConfiguration.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Set up a clustered Cache Manager. | ||
GlobalConfigurationBuilder global = GlobalConfigurationBuilder.defaultClusteredBuilder(); | ||
// Initialize the default Cache Manager. | ||
DefaultCacheManager cacheManager = new DefaultCacheManager(global.build()); | ||
// Create an embedded cache configuration. | ||
ConfigurationBuilder builder = new ConfigurationBuilder(); | ||
builder.clustering().cacheMode(CacheMode.DIST_SYNC); | ||
// Obtain a volatile cache. | ||
Cache<String, String> cache = cacheManager.administration().withFlags(CacheContainerAdmin.AdminFlag.VOLATILE).getOrCreateCache("myCache", builder.build()); |
2 changes: 1 addition & 1 deletion
2
documentation/src/main/asciidoc/topics/code_examples/HotRodClientStatistics.java
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
3 changes: 3 additions & 0 deletions
3
documentation/src/main/asciidoc/topics/code_examples/JmxMBeanServerLookup.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
GlobalConfiguration globalConfig = new GlobalConfigurationBuilder() | ||
.jmx().enable().mBeanServerLookup(new com.acme.MyMBeanServerLookup()) | ||
.build(); |
Oops, something went wrong.