#19 Add percent range

closed
nobody
None
5
2007-03-06
2007-02-28
Steve Souza
No

Add Percent range. Probably should put 0, and 100 in their own group. This will require a code change. Other than that the following or something similar should work.

private static RangeHolder getPercentHolder() {
RangeHolder rh=new RangeHolder("<=");
rh.add("LessThan_0",0);
rh.add("0_10",10);
rh.add("10_20",20);
rh.add("20_30",30);
rh.add("30_40",40);
rh.add("40_50",50);
rh.add("50_60",60);
rh.add("60_70",70);
rh.add("70_80",80);
rh.add("80_90",90);
rh.add("90_100",100);
rh.addLastHeader("GreaterThan_100");
return rh;
}

static {
/* Configure ranges for the MDA Buffer counts Percent capacity. */
MonitorFactory.setRangeDefault("Percent",getPercentHolder());
}

Discussion

  • Steve Souza
    Steve Souza
    2007-03-06

    • status: open --> closed