http://127.0.0.1:8080/service/jmx/run-report/report-cache-size
* The report name gets a prefix of reports/ and also xml added, so effectively you run
* "reports/report-cache-size.xml"
* diff --git a/src/main/java/com/oracle/coherence/demo/application/ManagementResourceConfig.java b/src/main/java/com/oracle/coherence/demo/application/ManagementResourceConfig.java index 757b430..54008b1 100644 --- a/src/main/java/com/oracle/coherence/demo/application/ManagementResourceConfig.java +++ b/src/main/java/com/oracle/coherence/demo/application/ManagementResourceConfig.java @@ -1,7 +1,7 @@ /* * File: ManagementResourceConfig.java * - * Copyright (c) 2022, 2023 Oracle and/or its affiliates. + * Copyright (c) 2022, 2024 Oracle and/or its affiliates. * * You may not use this file except in compliance with the Universal Permissive * License (UPL), Version 1.0 (the "License.") @@ -30,6 +30,9 @@ public class ManagementResourceConfig extends ResourceConfig { + /** + * Constructs a {@link ManagementResourceConfig}. + */ public ManagementResourceConfig() { RestManagement.configure(this); } diff --git a/src/main/java/com/oracle/coherence/demo/cachestore/JpaCacheStore.java b/src/main/java/com/oracle/coherence/demo/cachestore/JpaCacheStore.java index f467fc6..cca7155 100644 --- a/src/main/java/com/oracle/coherence/demo/cachestore/JpaCacheStore.java +++ b/src/main/java/com/oracle/coherence/demo/cachestore/JpaCacheStore.java @@ -1,7 +1,7 @@ /* * File: JpaCacheStore.java * - * Copyright (c) 2020 Oracle and/or its affiliates. + * Copyright (c) 2020, 2024 Oracle and/or its affiliates. * * You may not use this file except in compliance with the Universal Permissive * License (UPL), Version 1.0 (the "License.") @@ -155,6 +155,10 @@ public void eraseAll(Collection keys) { } } + /** + * Rollback the transaction. + * @param tx the transaction + */ protected void rollback(EntityTransaction tx) { try { if (tx != null && tx.isActive()) { diff --git a/src/main/java/com/oracle/coherence/demo/model/TradeSummary.java b/src/main/java/com/oracle/coherence/demo/model/TradeSummary.java index 34e37a3..758cd66 100644 --- a/src/main/java/com/oracle/coherence/demo/model/TradeSummary.java +++ b/src/main/java/com/oracle/coherence/demo/model/TradeSummary.java @@ -30,7 +30,6 @@ @PortableType(id = 1005) public class TradeSummary { - /** * The total number of shares acquired for the {@link Trade}. */ @@ -46,6 +45,10 @@ public class TradeSummary { */ private double purchaseValue; + + /** + * Constructs a {@link TradeSummary}. + */ public TradeSummary() { }