/** * Returns a Trigger with a name matching the string parameter * * @param triggerName a {@link java.lang.String} object. * @return a {@link org.opennms.netmgt.config.vacuumd.Trigger} object. */ public synchronized Trigger getTrigger(String triggerName) { for (Trigger trig : getTriggers()) { if (trig.getName().equals(triggerName)) { return trig; } } return null; }
private void initializeDataSources() throws IOException, ClassNotFoundException, PropertyVetoException, SQLException { for (Trigger trigger : getVacuumdConfig().getTriggers()) { DataSourceFactory.init(trigger.getDataSource()); } for (Action action : getVacuumdConfig().getActions()) { DataSourceFactory.init(action.getDataSource()); } }