public static int compare(Number param, Number threshold) throws Throwable {
    try {
      int eval = 0;
      if (threshold instanceof Double) {
        eval = Double.compare(param.doubleValue(), threshold.doubleValue());
      } else if (threshold instanceof Float) {
        eval = Float.compare(param.floatValue(), threshold.floatValue());
      } else if (threshold instanceof Long) {
        eval = (Long.valueOf(param.longValue())).compareTo(threshold.longValue());
      } else if (threshold instanceof Integer) {
        eval = param.intValue() > threshold.intValue() ? 1 : -1;
      }
      return eval;
    } catch (VirtualMachineError err) {
      SystemFailure.initiateFailure(err);
      // If this ever returns, rethrow the error. We're poisoned
      // now, so don't let this thread continue.
      throw err;
    } catch (Throwable e) {
      // Whenever you catch Error or Throwable, you must also
      // catch VirtualMachineError (see above). However, there is
      // _still_ a possibility that you are dealing with a cascading
      // error condition, so you also need to check to see if the JVM
      // is still usable:
      SystemFailure.checkFailure();
      throw e;
    }
  }
This method sets the name of this stat alert definition.

@param name name to be set for this StatAlertDefinition.
geode-core/src/main/java/org/apache/geode/internal/admin/statalerts/BaseDecoratorImpl.java