Examples of unregisterMBean()


Examples of com.alibaba.druid.pool.DruidDataSource.unregisterMbean()

        Assert.assertTrue(dataSource.isMbeanRegistered());
       
        dataSource.registerMbean();
        Assert.assertTrue(dataSource.isMbeanRegistered());
       
        dataSource.unregisterMbean();
        Assert.assertFalse(dataSource.isMbeanRegistered());
        Assert.assertFalse(dataSource.isMbeanRegistered());
       
        dataSource.close();
    }
View Full Code Here

Examples of com.sun.enterprise.admin.monitor.registry.StatsHolder.unregisterMBean()

    //note that the above refers to the actual implementation rather than interface.

    final Iterator iter = registryImpl.getHttpServiceNodes().iterator();
    while (iter.hasNext()) {
      final StatsHolder c = (StatsHolder) iter.next();
      c.unregisterMBean();
      logger.finer("DynamicReconfigurator: Now UnRegistering MBean for --- " + c.getName());
    }
  }

  private boolean off2Low(MonitoringLevel from, MonitoringLevel to) {
View Full Code Here

Examples of javax.management.MBeanServer.unregisterMBean()

    MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
    boolean isMBeanRegistered = mbs.isRegistered(mbeanObjectName);
    if (isMBeanRegistered) {
      log.info("Unregistering existing Dozer JMX MBean [{}].", name);
      try {
        mbs.unregisterMBean(mbeanObjectName);
      } catch (InstanceNotFoundException e) {
        log.info("JMX MBean not found to unregister [{}].", name);
      }
    }
  }
View Full Code Here

Examples of javax.management.MBeanServer.unregisterMBean()

      return adapter;
   }

   private final void stopAdaptor() throws Exception {
      MBeanServer server = this.global.getJmxWrapper().getMBeanServer();
      server.unregisterMBean(this.name);
      this.adaptor.stop();
   }
  
   /**
    * @see org.xmlBlaster.contrib.GlobalInfo#doInit(org.xmlBlaster.util.Global, org.xmlBlaster.util.plugin.PluginInfo)
View Full Code Here

Examples of javax.management.MBeanServer.unregisterMBean()

         log.warn("Cannot undeploy a destination that has not been created programatically");
         return false;
      }
      mbeanServer.invoke(on, "stop", new Object[0], new String[0]);
      mbeanServer.invoke(on, "destroy", new Object[0], new String[0]);
      mbeanServer.unregisterMBean(on);
      return true;
   }
  
   /*
    * Undeploy the MBean and delete the underlying data
View Full Code Here

Examples of javax.management.MBeanServer.unregisterMBean()

            {
               assertInstanceOf(e, IncompleteDeploymentException.class);              
            }
            finally
            {
               mbeanServer.unregisterMBean(objectName);
            }
         }
         finally
         {
            MBeanServerFactory.releaseMBeanServer(mbeanServer);
View Full Code Here

Examples of javax.management.MBeanServer.unregisterMBean()

      }
      catch (Exception e)
      {
         try
         {
            server.unregisterMBean(objectName);
         }
         catch (Exception t)
         {
            log.debug("Error unregistering mbean", t);
         }
View Full Code Here

Examples of javax.management.MBeanServer.unregisterMBean()

   protected void stopService() throws Exception
   {
      try
      {
         MBeanServer mbeanServer = super.getServer();
         mbeanServer.unregisterMBean(wrappedJmxInvokerName);
      }
      catch(Exception e)
      {
         log.debug("Failed to unregister HAInvokerWrapper: "+wrappedJmxInvokerName, e);
      }
View Full Code Here

Examples of javax.management.MBeanServer.unregisterMBean()

      server.invoke(objectName, "stop", new Object[]{}, new String[]{});

      server.invoke(objectName, "destroy", new Object[]{}, new String[]{});

      server.unregisterMBean(objectName);

      MBeanServer server2 = server;

      // Unregister any remaining jboss.web or Catalina MBeans
      ObjectName queryObjectName = new ObjectName(tomcatDeployer.getDomain() + ":*");
 
View Full Code Here

Examples of javax.management.MBeanServer.unregisterMBean()

         // Exception: Don't unregister the service right now
         if (!"WebServer".equals(toRemove.getKeyProperty("service")))
         {
            if (server2.isRegistered(toRemove))
            {
               server2.unregisterMBean(toRemove);
            }
         }
      }

   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.