You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2019/08/27 13:38:05 UTC

[plc4x] branch develop updated: - Disabled the mbean support as there were problems with the naming conventions.

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 05b2bdd  - Disabled the mbean support as there were problems with the naming conventions.
05b2bdd is described below

commit 05b2bdd252e0bfef852c840942a12e573807555c
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Tue Aug 27 15:37:59 2019 +0200

    - Disabled the mbean support as there were problems with the naming conventions.
---
 .../plc4x/java/scraper/triggeredscraper/TriggeredScraperImpl.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/plc4j/utils/scraper/src/main/java/org/apache/plc4x/java/scraper/triggeredscraper/TriggeredScraperImpl.java b/plc4j/utils/scraper/src/main/java/org/apache/plc4x/java/scraper/triggeredscraper/TriggeredScraperImpl.java
index dbaf9d2..7120369 100644
--- a/plc4j/utils/scraper/src/main/java/org/apache/plc4x/java/scraper/triggeredscraper/TriggeredScraperImpl.java
+++ b/plc4j/utils/scraper/src/main/java/org/apache/plc4x/java/scraper/triggeredscraper/TriggeredScraperImpl.java
@@ -158,12 +158,12 @@ public class TriggeredScraperImpl implements Scraper, TriggeredScraperMBean {
 
 
         // Register MBean
-        mBeanServer = ManagementFactory.getPlatformMBeanServer();
+        /*mBeanServer = ManagementFactory.getPlatformMBeanServer();
         try {
             mBeanServer.registerMBean(this, new ObjectName(MX_DOMAIN, "scraper", "scraper"));
         } catch (InstanceAlreadyExistsException | MBeanRegistrationException | NotCompliantMBeanException | MalformedObjectNameException e) {
             LOGGER.debug("Unable to register Scraper as MBean", e);
-        }
+        }*/
     }
 
 
@@ -256,11 +256,11 @@ public class TriggeredScraperImpl implements Scraper, TriggeredScraperMBean {
      * @param task task to register
      */
     private void registerTaskMBean(ScraperTask task) {
-        try {
+        /*try {
             mBeanServer.registerMBean(task, new ObjectName(MX_DOMAIN + ":type=ScrapeTask,name=" + task.getJobName() + "-" + task.getConnectionAlias()));
         } catch (InstanceAlreadyExistsException | MBeanRegistrationException | NotCompliantMBeanException | MalformedObjectNameException e) {
             LOGGER.debug("Unable to register Task as MBean", e);
-        }
+        }*/
     }
 
     @Override