Package com.sun.enterprise.admin.monitor.registry

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


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

    final Iterator iter = registryImpl.getTransactionServiceNodes().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

                                while (it.hasNext()) {
                                    StatsHolder c = (StatsHolder) it.next();
                                    if (monLevel.equalsIgnoreCase("LOW") || monLevel.equalsIgnoreCase("HIGH"))
                                        c.registerMBean();
                                    else if (monLevel.equalsIgnoreCase("OFF"))
                                        c.unregisterMBean();
                                }
                            }
                        }
                    }
                }
View Full Code Here

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

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

      (MonitoringRegistrationHelper) MonitoringRegistrationHelper.getInstance();

    final Iterator iter = registryImpl.getEjbMethodNodes().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

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

    final Iterator iter = registryImpl.getWebContainerNodes().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

            iter = registryImpl.getConnectionPoolNodes(t).iterator();
        else
            iter = registryImpl.getConnectorRelatedNodes().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) {
    return ( from == MonitoringLevel.OFF && to == MonitoringLevel.LOW );
View Full Code Here

                Collection c1 = new ArrayList();
                c1.addAll(childNode.getAllChildren());
                Iterator it = c1.iterator();
                while(it.hasNext()) {
                    StatsHolder s = (StatsHolder)it.next();
                    s.unregisterMBean();
                    childNode.removeChild(s.getName());
                }
            }
           
            if((childNode.getType() == MonitoredObjectType.JVM_THREAD) && includeThreadInfo) {
View Full Code Here

                Collection c1 = new ArrayList();
                c1.addAll(childNode.getAllChildren());
                Iterator it = c1.iterator();
                while(it.hasNext()) {
                    StatsHolder s = (StatsHolder)it.next();
                    s.unregisterMBean();
                    childNode.removeChild(s.getName());
                }
            }
           
            childNode.unregisterMBean();
View Full Code Here

      (MonitoringRegistrationHelper) MonitoringRegistrationHelper.getInstance();

    final Iterator iter = registryImpl.getJvmNodes(threadInfo).iterator();
    while (iter.hasNext()) {
      final StatsHolder c = (StatsHolder) iter.next();
      c.unregisterMBean();
      logger.finer("DynamicReconfigurator: Now UnRegistering MBean for --- " + c.getName());
    }
  }
 
 
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.