Examples of Statistic


Examples of org.jivesoftware.openfire.stats.Statistic

        StatisticsManager.getInstance().addStatistic(occupantsStatKey, statistic);
    }

    private void addTotalConnectedUsers() {
        // Register a statistic.
        Statistic statistic = new Statistic() {
            public String getName() {
                return LocaleUtils.getLocalizedString("muc.stats.users.name");
            }

            public Type getStatType() {
View Full Code Here

Examples of org.jivesoftware.openfire.stats.Statistic

        StatisticsManager.getInstance().addStatistic(usersStatKey, statistic);
    }

    private void addNumberIncomingMessages() {
        // Register a statistic.
        Statistic statistic = new Statistic() {
            public String getName() {
                return LocaleUtils.getLocalizedString("muc.stats.incoming.name");
            }

            public Type getStatType() {
View Full Code Here

Examples of org.jivesoftware.openfire.stats.Statistic

        StatisticsManager.getInstance().addMultiStatistic(incomingStatKey, trafficStatGroup, statistic);
    }

    private void addNumberOutgoingMessages() {
        // Register a statistic.
        Statistic statistic = new Statistic() {
            public String getName() {
                return LocaleUtils.getLocalizedString("muc.stats.outgoing.name");
            }

            public Type getStatType() {
View Full Code Here

Examples of org.jivesoftware.openfire.stats.Statistic

        outgoingCounter.getAndAdd(delta);
    }

    private static void addReadBytesStat() {
        // Register a statistic.
        Statistic statistic = new Statistic() {
            public String getName() {
                return LocaleUtils.getLocalizedString("server_bytes.stats.incoming.name");
            }

            public Type getStatType() {
View Full Code Here

Examples of org.jivesoftware.openfire.stats.Statistic

                .addMultiStatistic(incomingStatKey, trafficStatGroup, statistic);
    }

    private static void addWrittenBytesStat() {
        // Register a statistic.
        Statistic statistic = new Statistic() {
            public String getName() {
                return LocaleUtils.getLocalizedString("server_bytes.stats.outgoing.name");
            }

            public Type getStatType() {
View Full Code Here

Examples of org.jivesoftware.openfire.stats.Statistic

            }
        };
        taskEngine.scheduleAtFixedRate(cleanupTask, JiveConstants.MINUTE * 5, JiveConstants.MINUTE * 5);

        // Register a statistic.
        Statistic conversationStat = new Statistic() {

            public String getName() {
                return LocaleUtils.getLocalizedString("stat.conversation.name", "monitoring");
            }

View Full Code Here

Examples of org.jivesoftware.openfire.stats.Statistic

     * Tracks the number of Server To Server connections taking place in the server at anyone time.
     * This includes both incoming and outgoing connections.
     */
    private void addServerToServerStatistic() {
        // Register a statistic.
        Statistic serverToServerStatistic = new i18nStatistic(SERVER_2_SERVER_SESSIONS_KEY, "monitoring",
                Statistic.Type.count)
        {
            public double sample() {
                return (SessionManager.getInstance().getIncomingServers().size() + SessionManager.
                        getInstance().getOutgoingServers().size());
View Full Code Here

Examples of org.jivesoftware.openfire.stats.Statistic

     * Tracks the number of Active Sessions with the server at any point in time.
     * Active Sessions are defined as one client connection.
     */
    private void addActiveSessionsStatistic() {
        // Register a statistic.
        Statistic activeSessionStatistic = new i18nStatistic(SESSIONS_KEY, "monitoring", Statistic.Type.count) {
            public double sample() {
                return SessionManager.getInstance().getUserSessionsCount(false);
            }

            public boolean isPartialSample() {
View Full Code Here

Examples of org.netbeans.modules.exceptions.entity.Statistic

        this.prefix = prefix;
        this.persist = em;
    }

    public static Preferences root(Logfile log, Statistics<?> stat, EntityManager em) {
        Statistic statist = Statistic.getExists(stat.name);
        return new DbPreferences(null, "", statist, log, null, em);
    }
View Full Code Here

Examples of org.osforce.connect.entity.commons.Statistic

      page = postService.getPostPage(page, codes);
    } else if(project!=null) {
      page = postService.getPostPage(page, project.getId(), null);
    }
    for(Post post : page.getResult()) {
      Statistic statistic = statisticService.getStatistic(Statistic.TYPE_VIEW, post.getId(), Post.NAME);
      if(statistic!=null) {
        post.setViews(statistic.getCount());
      }
    }
    model.addAttribute(AttributeKeys.PAGE_KEY_READABLE, page);
    return "blog/post-recent";
  }
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.