/** * Returns an Action with a name matching the string parmater * * @param actionName a {@link java.lang.String} object. * @return a {@link org.opennms.netmgt.config.vacuumd.Action} object. */ public synchronized Action getAction(String actionName) { for (Action act : getActions()) { if (act.getName().equals(actionName)) { return act; } } 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()); } }