Package org.hornetq.core.messagecounter

Examples of org.hornetq.core.messagecounter.MessageCounter$DayCounter


         {
            Iterator<MessageCounter> iter = messageCounters.values().iterator();

            while (iter.hasNext())
            {
               MessageCounter counter = iter.next();

               counter.onTimer();
            }
         }
      }
View Full Code Here


                   + "<th>Last Update</th>"
                        + "</tr>\n";
      StringBuilder ret = new StringBuilder(ret0);
      for (int i = 0; i < counters.length; i++)
      {
         MessageCounter counter = counters[i];
         String type = counter.isDestinationTopic() ? "Topic" : "Queue";
         String subscription = counter.getDestinationSubscription();
         if (subscription == null)
         {
            subscription = "-";
         }
         String durableStr = "-"; // makes no sense for a queue
         if (counter.isDestinationTopic())
         {
            durableStr = Boolean.toString(counter.isDestinationDurable());
         }
         ret.append("<tr bgcolor=\"#" + (i % 2 == 0 ? "FFFFFF" : "F0F0F0") + "\">");

         ret.append("<td>" + type + "</td>");
         ret.append("<td>" + counter.getDestinationName() + "</td>");
         ret.append("<td>" + subscription + "</td>");
         ret.append("<td>" + durableStr + "</td>");
         ret.append("<td>" + counter.getCount() + "</td>");
         ret.append("<td>" + MessageCounterHelper.prettify(counter.getCountDelta()) + "</td>");
         ret.append("<td>" + MessageCounterHelper.prettify(counter.getMessageCount()) + "</td>");
         ret.append("<td>" + MessageCounterHelper.prettify(counter.getMessageCountDelta()) + "</td>");
         ret.append("<td>" + MessageCounterHelper.asDate(counter.getLastAddedMessageTime()) + "</td>");
         ret.append("<td>" + MessageCounterHelper.asDate(counter.getLastUpdate()) + "</td>");

         ret.append("</tr>\n");
      }

      ret.append("</table>\n");
View Full Code Here

                                                           postOffice,
                                                           storageManager,
                                                           addressSettingsRepository);
      if (messageCounterManager != null)
      {
         MessageCounter counter = new MessageCounter(queue.getName().toString(),
                                                     null,
                                                     queue,
                                                     false,
                                                     queue.isDurable(),
                                                     messageCounterManager.getMaxDayCount());
View Full Code Here

                                                           postOffice,
                                                           storageManager,
                                                           addressSettingsRepository);
      if (messageCounterManager != null)
      {
         MessageCounter counter = new MessageCounter(queue.getName().toString(),
                                                     null,
                                                     queue,
                                                     false,
                                                     queue.isDurable(),
                                                     messageCounterManager.getMaxDayCount());
View Full Code Here

                                                           postOffice,
                                                           storageManager,
                                                           addressSettingsRepository);
      if (messageCounterManager != null)
      {
         MessageCounter counter = new MessageCounter(queue.getName().toString(),
                                                     null,
                                                     queue,
                                                     false,
                                                     queue.isDurable(),
                                                     messageCounterManager.getMaxDayCount());
View Full Code Here

                                                           postOffice,
                                                           storageManager,
                                                           addressSettingsRepository);
      if (messageCounterManager != null)
      {
         MessageCounter counter = new MessageCounter(queue.getName().toString(),
                                                     null,
                                                     queue,
                                                     false,
                                                     queue.isDurable(),
                                                     messageCounterManager.getMaxDayCount());
View Full Code Here

                   + "<th>Last Update</th>"
                        + "</tr>\n";
      StringBuilder ret = new StringBuilder(ret0);
      for (int i = 0; i < counters.length; i++)
      {
         MessageCounter counter = counters[i];
         String type = counter.isDestinationTopic() ? "Topic" : "Queue";
         String subscription = counter.getDestinationSubscription();
         if (subscription == null)
         {
            subscription = "-";
         }
         String durableStr = "-"; // makes no sense for a queue
         if (counter.isDestinationTopic())
         {
            durableStr = Boolean.toString(counter.isDestinationDurable());
         }
         ret.append("<tr bgcolor=\"#" + (i % 2 == 0 ? "FFFFFF" : "F0F0F0") + "\">");

         ret.append("<td>" + type + "</td>");
         ret.append("<td>" + counter.getDestinationName() + "</td>");
         ret.append("<td>" + subscription + "</td>");
         ret.append("<td>" + durableStr + "</td>");
         ret.append("<td>" + counter.getCount() + "</td>");
         ret.append("<td>" + MessageCounterHelper.prettify(counter.getCountDelta()) + "</td>");
         ret.append("<td>" + MessageCounterHelper.prettify(counter.getMessageCount()) + "</td>");
         ret.append("<td>" + MessageCounterHelper.prettify(counter.getMessageCountDelta()) + "</td>");
         ret.append("<td>" + MessageCounterHelper.asDate(counter.getLastAddedMessageTime()) + "</td>");
         ret.append("<td>" + MessageCounterHelper.asDate(counter.getLastUpdate()) + "</td>");

         ret.append("</tr>\n");
      }

      ret.append("</table>\n");
View Full Code Here

      {
         Iterator<MessageCounter> iter = messageCounters.values().iterator();

         while (iter.hasNext())
         {
            MessageCounter counter = iter.next();

            counter.resetCounter();
         }
      }
   }
View Full Code Here

      {
         Iterator<MessageCounter> iter = messageCounters.values().iterator();

         while (iter.hasNext())
         {
            MessageCounter counter = iter.next();

            counter.resetHistory();
         }
      }
   }
View Full Code Here

         {
            Iterator<MessageCounter> iter = messageCounters.values().iterator();

            while (iter.hasNext())
            {
               MessageCounter counter = iter.next();

               counter.onTimer();
            }
         }
      }
View Full Code Here

TOP

Related Classes of org.hornetq.core.messagecounter.MessageCounter$DayCounter

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.