-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
10 changed files
with
153 additions
and
6 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
48 changes: 48 additions & 0 deletions
48
...OOT/pages/includes/quarkus-infinispan-embedded_quarkus.infinispan-embedded.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,48 @@ | ||
:summaryTableId: quarkus-infinispan-embedded_quarkus-infinispan-embedded | ||
[.configuration-legend] | ||
icon:lock[title=Fixed at build time] Configuration property fixed at build time - All other configuration properties are overridable at runtime | ||
[.configuration-reference.searchable, cols="80,.^10,.^10"] | ||
|=== | ||
|
||
h|[.header-title]##Configuration property## | ||
h|Type | ||
h|Default | ||
|
||
a| [[quarkus-infinispan-embedded_quarkus-infinispan-embedded-xml-config]] [.property-path]##link:#quarkus-infinispan-embedded_quarkus-infinispan-embedded-xml-config[`quarkus.infinispan-embedded.xml-config`]## | ||
|
||
[.description] | ||
-- | ||
The configured Infinispan embedded xml file which is used by the managed EmbeddedCacheManager and its Caches | ||
|
||
|
||
ifdef::add-copy-button-to-env-var[] | ||
Environment variable: env_var_with_copy_button:+++QUARKUS_INFINISPAN_EMBEDDED_XML_CONFIG+++[] | ||
endif::add-copy-button-to-env-var[] | ||
ifndef::add-copy-button-to-env-var[] | ||
Environment variable: `+++QUARKUS_INFINISPAN_EMBEDDED_XML_CONFIG+++` | ||
endif::add-copy-button-to-env-var[] | ||
-- | ||
|string | ||
| | ||
|
||
a| [[quarkus-infinispan-embedded_quarkus-infinispan-embedded-clustered]] [.property-path]##link:#quarkus-infinispan-embedded_quarkus-infinispan-embedded-clustered[`quarkus.infinispan-embedded.clustered`]## | ||
|
||
[.description] | ||
-- | ||
Sets a cluster with defaults. | ||
|
||
|
||
ifdef::add-copy-button-to-env-var[] | ||
Environment variable: env_var_with_copy_button:+++QUARKUS_INFINISPAN_EMBEDDED_CLUSTERED+++[] | ||
endif::add-copy-button-to-env-var[] | ||
ifndef::add-copy-button-to-env-var[] | ||
Environment variable: `+++QUARKUS_INFINISPAN_EMBEDDED_CLUSTERED+++` | ||
endif::add-copy-button-to-env-var[] | ||
-- | ||
|boolean | ||
|`true` | ||
|
||
|=== | ||
|
||
|
||
:!summaryTableId: |
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
28 changes: 28 additions & 0 deletions
28
...test/java/io/quarkiverse/infinispan/embedded/deployment/InfinispanEmbeddedConfigTest.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,28 @@ | ||
package io.quarkiverse.infinispan.embedded.deployment; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
import jakarta.enterprise.inject.Default; | ||
|
||
import org.infinispan.manager.EmbeddedCacheManager; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
import io.quarkus.arc.Arc; | ||
import io.quarkus.test.QuarkusUnitTest; | ||
|
||
public class InfinispanEmbeddedConfigTest { | ||
|
||
@RegisterExtension | ||
static final QuarkusUnitTest config = new QuarkusUnitTest() | ||
.withConfigurationResource("empty-application-infinispan-embedded.properties"); | ||
|
||
@Test | ||
public void embeddedCacheManagerAccessible() { | ||
EmbeddedCacheManager embeddedCacheManager = Arc.container() | ||
.instance(EmbeddedCacheManager.class, Default.Literal.INSTANCE).get(); | ||
assertThat(embeddedCacheManager).isNotNull(); | ||
assertThat(embeddedCacheManager.isCoordinator()).isTrue(); | ||
assertThat(embeddedCacheManager.getAccessibleCacheNames()).isEmpty(); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...ava/io/quarkiverse/infinispan/embedded/deployment/InfinispanEmbeddedNotClusteredTest.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,27 @@ | ||
package io.quarkiverse.infinispan.embedded.deployment; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
import jakarta.enterprise.inject.Default; | ||
|
||
import org.infinispan.manager.EmbeddedCacheManager; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
import io.quarkus.arc.Arc; | ||
import io.quarkus.test.QuarkusUnitTest; | ||
|
||
public class InfinispanEmbeddedNotClusteredTest { | ||
|
||
@RegisterExtension | ||
static final QuarkusUnitTest config = new QuarkusUnitTest() | ||
.withConfigurationResource("not-clustered-application-infinispan-embedded.properties"); | ||
|
||
@Test | ||
public void notClustered() { | ||
EmbeddedCacheManager cacheManager = Arc.container().instance(EmbeddedCacheManager.class, Default.Literal.INSTANCE) | ||
.get(); | ||
assertThat(cacheManager).isNotNull(); | ||
assertThat(cacheManager.isCoordinator()).isFalse(); | ||
} | ||
} |
Empty file.
1 change: 1 addition & 0 deletions
1
...on/deployment/src/test/resources/not-clustered-application-infinispan-embedded.properties
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 @@ | ||
quarkus.infinispan-embedded.clustered=false |
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