Examples of OverloadEvent


Examples of org.glassfish.comms.api.overload.OverloadEvent

    measurement.saveMeasurement(usage(), numberOfSamples,
        getOverloadActivationAlgorithm(),
        getOverloadDeactivationAlgorithm());

    OverloadEvent initialSipAction = sipInitial
        .compareThreshold(getIrThreshold());
    if (initialSipAction != null) {
      events.add(initialSipAction);
    }
    OverloadEvent subsequentSipAction = sipSubsequent
        .compareThreshold(getSrThreshold());
    if (subsequentSipAction != null) {
      events.add(subsequentSipAction);
    }

    OverloadEvent httpAction = http.compareThreshold(getHttpThreshold());
    if (httpAction != null) {
      events.add(httpAction);
    }

    OverloadEvent allAction = all.compareThreshold(getMmThreshold());
    if (allAction != null) {
      events.add(allAction);
    }

    return events;
View Full Code Here

Examples of org.glassfish.comms.api.overload.OverloadEvent

      this.detectorType = type;
      this.trafficType = trafficType;
    }

    public OverloadEvent createCeased(float usage) {
      return new OverloadEvent(false, detectorType, trafficType, usage,
          null);
    }
View Full Code Here

Examples of org.glassfish.comms.api.overload.OverloadEvent

      return new OverloadEvent(false, detectorType, trafficType, usage,
          null);
    }

    public OverloadEvent createRaised(float usage) {
      return new OverloadEvent(true, detectorType, trafficType, usage,
          null);
    }
View Full Code Here

Examples of org.glassfish.comms.api.overload.OverloadEvent

            + " threshold=" + threshold + " numberOfSamples="
            + numberOfSamples + " upAlgorithm="
            + upAlgorithm.toString() + " downAlgorithm="
            + downAlgorithm.toString());
      }
      OverloadEvent event = null;
      if (!isRaised) {
        switch (upAlgorithm) {
        case CONSECUTIVE:
          if (consecutiveUsage >= threshold) {
            if (levelCounterUp.incrementAndGet() >= numberOfSamples) {
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.