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

Examples of com.sun.enterprise.admin.monitor.registry.MonitoringLevel


    /**
     * Method that handles the registration of all the
     * stats for various subsystems of the JVM
     */
    public void registerStats(StatsHolder rootNode) {
        MonitoringLevel level = MonitoringConfigurationHandler.getLevel(MonitoredObjectType.JVM);
        // check monitoring level of JVM before registering
        if(level != MonitoringLevel.OFF) {
            try {
                registerJVMCompilationStats(rootNode);
                registerJVMClassLoadingStats(rootNode);
View Full Code Here


        return;
      }

      String monLevel = wsConfig.getMonitoringLevel();

      MonitoringLevel newLevel = MonitoringLevel.instance(monLevel);
      if ( newLevel.equals(MonitoringLevel.OFF) ) {
        // monitoring is off, just return
        return;
      }

      instrumentMonitoring(wsConfig.getEndpointName(), modName, ctxRoot,
View Full Code Here

        return;
      }
     
      String monLevel = wsConfig.getMonitoringLevel();

      MonitoringLevel oldLevel = MonitoringLevel.instance(monLevel);
      if ( oldLevel.equals(MonitoringLevel.OFF) ) {
        // monitoring is off, just return
        return;
      }

      instrumentMonitoring(wsConfig.getEndpointName(),modName, ctxRoot,
View Full Code Here

        return;
      }

      String monLevel = wsConfig.getMonitoringLevel();

      MonitoringLevel newLevel = MonitoringLevel.instance(monLevel);
      if ( newLevel.equals(MonitoringLevel.OFF) ) {
        // monitoring is off, just return
        return;
      }

      instrumentMonitoring(wsConfig.getEndpointName(), modName, ctxRoot,
View Full Code Here

        return;
      }
     
      String monLevel = wsConfig.getMonitoringLevel();

      MonitoringLevel oldLevel = MonitoringLevel.instance(monLevel);
      if ( oldLevel.equals(MonitoringLevel.OFF) ) {
        // monitoring is off, just return
        return;
      }

      instrumentMonitoring(wsConfig.getEndpointName(),modName, ctxRoot,
View Full Code Here

            logger.log(Level.INFO, "clb.monitoring_turned_off");
       
    }

    public MonitoringLevel getCLBMonitoringLevel() {
        MonitoringLevel monitoringLevel = MonitoringLevel.OFF;
        try {
            Config cfg = ServerBeansFactory.getConfigBean(ApplicationServer
                    .getServerContext().getConfigContext());
            MonitoringService monService = cfg.getMonitoringService();
   
View Full Code Here

    /*
     * Gets the current monitoring level for Jdbc pools
     */
    private MonitoringLevel getWorkStatsMonitoringLevel() {
        Config cfg = null;
        MonitoringLevel off = MonitoringLevel.OFF;
        MonitoringLevel l = null;
        try {
            cfg = ServerBeansFactory.getConfigBean(
                            ApplicationServer.getServerContext().getConfigContext());
            String lvl = null;
            lvl  = cfg.getMonitoringService().getModuleMonitoringLevels().getConnectorService();
View Full Code Here

   
    private void initMonitoringLevel() {
        try{
            Config cfg = services.getService(Config.class, ServerEnvironment.DEFAULT_INSTANCE_NAME);
           
            MonitoringLevel monitoringLevel = MonitoringLevel.OFF; // default per DTD

            if (cfg.getMonitoringService() != null) {
                ModuleMonitoringLevels levels =
                    cfg.getMonitoringService().getModuleMonitoringLevels();
                if (levels != null) {
View Full Code Here

   
    private void initMonitoringLevel() {
        try{
            Config cfg = habitat.getComponent(Config.class, ServerEnvironment.DEFAULT_INSTANCE_NAME );
           
            MonitoringLevel monitoringLevel = MonitoringLevel.OFF; // default per DTD

            if (cfg.getMonitoringService() != null) {
                ModuleMonitoringLevels levels =
                    cfg.getMonitoringService().getModuleMonitoringLevels();
                if (levels != null) {
View Full Code Here

   
    private void initMonitoringLevel() {
        try{
            Config cfg = services.getService(Config.class, ServerEnvironment.DEFAULT_INSTANCE_NAME);
           
            MonitoringLevel monitoringLevel = MonitoringLevel.OFF; // default per DTD

            if (cfg.getMonitoringService() != null) {
                ModuleMonitoringLevels levels =
                    cfg.getMonitoringService().getModuleMonitoringLevels();
                if (levels != null) {
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.monitor.registry.MonitoringLevel

Copyright © 2018 www.massapicom. 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.