/** * @@org.springframework.jmx.export.metadata.ManagedOperation * (description="Set the monitoring level for this process group" * ) * @@org.springframework.jmx.export.metadata.ManagedOperationParameter (index=0, * name="levelString", * description= * "new MonitoringLevel to apply" * ) */ @ManagedOperation(description = "Set the monitoring level for this process group") @ManagedOperationParameters({@ManagedOperationParameter(name = "levelString", description = "new MonitoringLevel to apply")}) public void updateMonitoringLevel(final String levelString) { if (!MonitoringLevel.isValidLevelStr(levelString)) { throw new IllegalArgumentException("levelString must match an existing MonitoringLevel"); } _monitoringLevel = MonitoringLevel.toLevel(levelString); log.info(this.toString() + " -> " + levelString); }
throw new IllegalArgumentException("nameStartsWith cannot be null"); else if (!MonitoringLevel.isValidLevelStr(levelStr)) { throw new IllegalArgumentException("levelStr must match an existing MonitoringLevel");
throw new IllegalArgumentException("processor name cannot be null"); else if (!MonitoringLevel.isValidLevelStr(levelStr)) { throw new IllegalArgumentException("levelStr must match an existing MonitoringLevel");