From d425a178239ad14aca82b6b6428a4a4e51f18482 Mon Sep 17 00:00:00 2001 From: Tim Middleton Date: Tue, 27 Feb 2024 12:54:27 +0800 Subject: [PATCH] fix compile error --- .../plugin/visualvm/tablemodel/model/ViewData.java | 11 ++--------- .../coherence/plugin/visualvm/Bundle.properties | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/coherence-visualvm-plugin/src/main/java/com/oracle/coherence/plugin/visualvm/tablemodel/model/ViewData.java b/coherence-visualvm-plugin/src/main/java/com/oracle/coherence/plugin/visualvm/tablemodel/model/ViewData.java index 48fc095..6d5584e 100755 --- a/coherence-visualvm-plugin/src/main/java/com/oracle/coherence/plugin/visualvm/tablemodel/model/ViewData.java +++ b/coherence-visualvm-plugin/src/main/java/com/oracle/coherence/plugin/visualvm/tablemodel/model/ViewData.java @@ -121,18 +121,11 @@ public String preProcessReporterXML(VisualVMModel model, String sReporterXML) { // the report XML contains the following tokens that require substitution: %SERVICE_NAME% and %VIEW_NAME% Pair selectedCache = model.getSelectedCache(); - - String sServiceName = null; - - if (selectedCache != null) - { - String[] asServiceDetails = getDomainAndService(selectedCache.getX()); - sServiceName = asServiceDetails[1]; - } + String sServiceName = selectedCache.getX(); return sServiceName == null ? sReporterXML : sReporterXML.replaceAll("%SERVICE_NAME%", escape(sServiceName) - .replaceAll("%VIEW_NAME%", escape(selectedCache.getY())); + .replaceAll("%VIEW_NAME%", escape(selectedCache.getY()))); } @Override diff --git a/coherence-visualvm-plugin/src/main/resources/com/oracle/coherence/plugin/visualvm/Bundle.properties b/coherence-visualvm-plugin/src/main/resources/com/oracle/coherence/plugin/visualvm/Bundle.properties index 835468d..ec54de6 100644 --- a/coherence-visualvm-plugin/src/main/resources/com/oracle/coherence/plugin/visualvm/Bundle.properties +++ b/coherence-visualvm-plugin/src/main/resources/com/oracle/coherence/plugin/visualvm/Bundle.properties @@ -35,7 +35,7 @@ OpenIDE-Module-Long-Description=\
  • Machines - Displays a list of the physical machines that make up the Coherence cluster as well as information about the load averages and available memory on these machines.
  • \
  • Members - Displays the full list of Coherence members/nodes including individual publisher/ receiver success rates, memory and send queue sizes.
  • \
  • Services - Displays information about the running services including partition counts and statusHA values. If you select a service, on the next data refresh you will see detailed thread information for each node of the service as well as graphs of that information.
  • \ -
  • Caches - Displays information about any caches including size, and memory usage information. To get the correct information to be displayed for memory usage, you must be using the binary unit-calculator. If you select a cache, on the next data refresh you will see detailed information about each node hosting that service and cache.
  • \ +
  • Caches - Displays information about any caches including size, and memory usage information. To get the correct information to be displayed for memory usage, you must be using the binary unit-calculator. If you select a cache, on the next data refresh you will see detailed information about each node hosting that service and cache as well as view caches if any exist.
  • \
  • Topics - Displays information about any active Topics including size, message rates and unconsumed messages.
  • \
  • Proxy Servers - If your cluster is running proxy servers, this tab displays information about the proxy servers and the number of connections across each proxy server and total connections.
  • \
  • HTTP Servers - If your cluster is running proxy servers with HTTP acceptors, this tab displays information about the HTTP servers, the number of connections across each server, total connections and graphs of response codes, errors and requests over time for a selected service.
  • \