Examples of StatisticsInfo


Examples of com.intellij.psi.statistics.StatisticsInfo

      int elementsCount = myListModel.getSize();
      for (int i = 0; i < elementsCount; i++) {
        Object value = myListModel.getElementAt(i);
        final String text = getListStep().getTextFor(value);
        final int count =
            StatisticsManager.getInstance().getUseCount(new StatisticsInfo("#list_popup:" + myStep.getTitle() + "#" + filter, text));
        if (count > maxUseCount) {
          maxUseCount = count;
          mostUsedValue = i;
        }
      }
View Full Code Here

Examples of com.intellij.psi.statistics.StatisticsInfo

  private void valuesSelected(final Object[] values) {
    final String filter = getSpeedSearch().getFilter();
    if (!StringUtil.isEmpty(filter)) {
      for (Object value : values) {
        final String text = getListStep().getTextFor(value);
        StatisticsManager.getInstance().incUseCount(new StatisticsInfo("#list_popup:" + getListStep().getTitle() + "#" + filter, text));
      }
    }
  }
View Full Code Here

Examples of org.hibernate.search.jmx.StatisticsInfo

      // since the SearchFactory is mutable we might have an already existing MBean which we have to unregister first
      if(JMXRegistrar.isNameRegisteredStatisticsInfoMBean.STATISTICS_MBEAN_OBJECT_NAME)) {
        JMXRegistrar.unRegisterMBean( StatisticsInfoMBean.STATISTICS_MBEAN_OBJECT_NAME );
      }
      JMXRegistrar.registerMBean(
          new StatisticsInfo( statistics ), StatisticsInfoMBean.STATISTICS_MBEAN_OBJECT_NAME
      );
    }
  }
View Full Code Here

Examples of org.hibernate.search.jmx.StatisticsInfo

      Statistics stats = sf.getStatistics();
      stats.setStatisticsEnabled(cfg.jmxStatistics().enabled());
      try {
         ObjectName statsObjName = new ObjectName(
               jmxDomain + ":" + queryGroupName + ",component=Statistics");
         JmxUtil.registerMBean(new StatisticsInfo(stats), statsObjName, mbeanServer);
      } catch (Exception e) {
         throw new CacheException(
               "Unable to register query module statistics mbean", e);
      }
View Full Code Here

Examples of org.hibernate.search.jmx.StatisticsInfo

      // since the SearchFactory is mutable we might have an already existing MBean which we have to unregister first
      if(JMXRegistrar.isNameRegisteredStatisticsInfoMBean.STATISTICS_MBEAN_OBJECT_NAME)) {
        JMXRegistrar.unRegisterMBean( StatisticsInfoMBean.STATISTICS_MBEAN_OBJECT_NAME );
      }
      JMXRegistrar.registerMBean(
          new StatisticsInfo( statistics ), StatisticsInfoMBean.STATISTICS_MBEAN_OBJECT_NAME
      );
    }
  }
View Full Code Here

Examples of org.hibernate.search.jmx.StatisticsInfo

      Statistics stats = sf.getStatistics();
      stats.setStatisticsEnabled(cfg.jmxStatistics().enabled());
      try {
         ObjectName statsObjName = new ObjectName(
               jmxDomain + ":" + queryGroupName + ",component=Statistics");
         JmxUtil.registerMBean(new StatisticsInfo(stats), statsObjName, mbeanServer);
      } catch (Exception e) {
         throw new CacheException(
               "Unable to register query module statistics mbean", e);
      }
View Full Code Here

Examples of org.hibernate.search.jmx.StatisticsInfo

    // since the SearchFactory is mutable we might have an already existing MBean which we have to unregister first
    if ( JMXRegistrar.isNameRegistered( objectName ) ) {
      JMXRegistrar.unRegisterMBean( objectName );
    }
    StatisticsInfo statisticsInfo = new StatisticsInfo( statistics );
    JMXRegistrar.registerMBean( statisticsInfo, objectName );
    return objectName;
  }
View Full Code Here

Examples of org.hibernate.search.jmx.StatisticsInfo

      // since the SearchFactory is mutable we might have an already existing MBean which we have to unregister first
      if ( JMXRegistrar.isNameRegistered( StatisticsInfoMBean.STATISTICS_MBEAN_OBJECT_NAME ) ) {
        JMXRegistrar.unRegisterMBean( StatisticsInfoMBean.STATISTICS_MBEAN_OBJECT_NAME );
      }
      JMXRegistrar.registerMBean(
          new StatisticsInfo( statistics ), StatisticsInfoMBean.STATISTICS_MBEAN_OBJECT_NAME
      );
    }

    this.indexReaderAccessor = new DefaultIndexReaderAccessor( this );
  }
View Full Code Here

Examples of org.hibernate.search.jmx.StatisticsInfo

      // since the SearchFactory is mutable we might have an already existing MBean which we have to unregister first
      if ( JMXRegistrar.isNameRegistered( StatisticsInfoMBean.STATISTICS_MBEAN_OBJECT_NAME ) ) {
        JMXRegistrar.unRegisterMBean( StatisticsInfoMBean.STATISTICS_MBEAN_OBJECT_NAME );
      }
      JMXRegistrar.registerMBean(
          new StatisticsInfo( statistics ), StatisticsInfoMBean.STATISTICS_MBEAN_OBJECT_NAME
      );
    }

    this.indexReaderAccessor = new DefaultIndexReaderAccessor( this );
  }
View Full Code Here

Examples of org.hibernate.search.jmx.StatisticsInfo

      // since the SearchFactory is mutable we might have an already existing MBean which we have to unregister first
      if ( JMXRegistrar.isNameRegistered( StatisticsInfoMBean.STATISTICS_MBEAN_OBJECT_NAME ) ) {
        JMXRegistrar.unRegisterMBean( StatisticsInfoMBean.STATISTICS_MBEAN_OBJECT_NAME );
      }
      JMXRegistrar.registerMBean(
          new StatisticsInfo( statistics ), StatisticsInfoMBean.STATISTICS_MBEAN_OBJECT_NAME
      );
    }
  }
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.