User: juhalindfors
  Date: 01/04/22 05:42:53

  Added:       src/org/jboss/admin/monitor/event
                        AggregatedInvocationEvent.java
  Log:
  Aggregated graph model event used by the invocation model when large
  amount of messages needs to be processed.
  
  Revision  Changes    Path
  1.1                  
admin/src/org/jboss/admin/monitor/event/AggregatedInvocationEvent.java
  
  Index: AggregatedInvocationEvent.java
  ===================================================================
  package org.jboss.admin.monitor.event;
  
  /**
   * ...
   *
   * @author <a href="mailto:[EMAIL PROTECTED]";>Juha Lindfors</a>
   */
  public class AggregatedInvocationEvent extends GraphModelEvent {
  
      private int count   = 0;
      private double sum  = 0.0;
      
      public AggregatedInvocationEvent(Object source, double avgValue, double sum, int 
count) {
          super(source, avgValue);
          
          if (count <= 0)
              throw new IllegalArgumentException("count <= 0");
          
          this.sum   = sum;
          this.count = count;
      }
  
      public int getInvocationCount() {
          return count;
      }
      
      public double getSumValue() {
          return sum;
      }
      
  }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to