|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.vacuumd.AutomationProcessor
public class AutomationProcessor
This class used to process automations configured in the vacuumd-configuration.xml file. Automations are identified by a name and they reference Triggers and Actions by name, as well. Autmations also have an interval attribute that determines how often they run.
| Constructor Summary | |
|---|---|
AutomationProcessor(Automation automation)
Public constructor. |
|
| Method Summary | |
|---|---|
boolean |
containsTokens(String targetString)
Simple helper method to determine if the targetString contains any '${token}'s. |
int |
countRows(ResultSet rs)
Method used to count the rows in a ResultSet. |
org.opennms.netmgt.vacuumd.AutomationProcessor.ActionProcessor |
getAction()
|
Automation |
getAutomation()
|
Schedule |
getSchedule()
|
org.opennms.netmgt.vacuumd.AutomationProcessor.TriggerProcessor |
getTrigger()
|
boolean |
isReady()
Returns true if the runnable is ready to start. |
void |
run()
|
boolean |
runAutomation()
Called by the run method to execute the sql statements of triggers and actions defined for an automation. |
void |
setReady(boolean ready)
|
void |
setSchedule(Schedule schedule)
|
protected boolean |
verifyRowCount(ResultSet triggerResultSet)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AutomationProcessor(Automation automation)
| Method Detail |
|---|
public org.opennms.netmgt.vacuumd.AutomationProcessor.ActionProcessor getAction()
public org.opennms.netmgt.vacuumd.AutomationProcessor.TriggerProcessor getTrigger()
public void run()
run in interface Runnable
public boolean runAutomation()
throws SQLException
auto -
SQLException
protected boolean verifyRowCount(ResultSet triggerResultSet)
throws SQLException
SQLException
public int countRows(ResultSet rs)
throws SQLException
rs -
SQLExceptionpublic boolean containsTokens(String targetString)
targetString -
public Automation getAutomation()
public boolean isReady()
ReadyRunnable
isReady in interface ReadyRunnablepublic Schedule getSchedule()
public void setSchedule(Schedule schedule)
schedule - The schedule to set.public void setReady(boolean ready)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||