/** * Return the rule for the specified category. * * @param catlabel * the label for the category whose services list is needed * @return the rule for the specified category, null if the category is not * found */ public String getRule(final String catlabel) { final Category cat = getCategory(catlabel); return (cat == null? null : cat.getRule()); }
/** * Return the services list for the specified category. * * @param catlabel * the label for the category whose services list is needed * @return the services list for the specified category, null if category is * not found */ public String[] getServices(final String catlabel) { final Category cat = getCategory(catlabel); return (cat == null? null : cat.getServices().toArray(new String[0])); }
/** * {@inheritDoc} * * Return the normal value for the specified category. */ @Override public double getNormal(final String catlabel) { final Category cat = getCategory(catlabel); return (cat == null? -1.0 : cat.getNormalThreshold()); }
/** * {@inheritDoc} * * Return the warning value for the specified category. */ @Override public double getWarning(final String catlabel) { final Category cat = getCategory(catlabel); return (cat == null? -1.0 : cat.getWarningThreshold()); }