/** * Handles the JMX Set Request for alertExtraPropNames * * @param String * @throws AgentException on error */ public synchronized void setAlertExtraPropNames(String value) throws AgentException { // Fill up the stub with required processing if (value == null) throw new AgentException("", CommonUtils.WRONGVALUE); // No I18N if (!(((value.length() >= 0) && (value.length() <= 255)))) throw new AgentException("", CommonUtils.WRONGLENGTH); // No I18N // User code starts here /* alertExtraPropNames = value; */ if ((value.length() < 0) || (value.length() > 255)) throw new AgentException("", CommonUtils.BADVALUE); // No I18N /** checking if the syntax is correct for the extra property names, if not throwing exception */ if (!agentRef.syntaxOK(value)) throw new AgentException("", CommonUtils.BADVALUE); // No I18N agentRef.alertExtraPropNames = value; alertExtraPropNames = agentRef.alertExtraPropNames; /** storing the extra property names in the database */ agentRef.updateDefValue("alertExtraPropNames", value); // No I18N // User code ends here }