|
||||||||||
| 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()
getAction |
Automation |
getAutomation()
getAutomation |
Schedule |
getSchedule()
getSchedule |
org.opennms.netmgt.vacuumd.AutomationProcessor.TriggerProcessor |
getTrigger()
getTrigger |
boolean |
isReady()
isReady |
void |
run()
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)
setReady |
void |
setSchedule(Schedule schedule)
setSchedule |
protected boolean |
verifyRowCount(ResultSet triggerResultSet)
verifyRowCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AutomationProcessor(Automation automation)
automation - a Automation object.| Method Detail |
|---|
public org.opennms.netmgt.vacuumd.AutomationProcessor.ActionProcessor getAction()
getAction
AutomationProcessor.ActionProcessor object.public org.opennms.netmgt.vacuumd.AutomationProcessor.TriggerProcessor getTrigger()
getTrigger
AutomationProcessor.TriggerProcessor object.public void run()
run
run in interface Runnable
public boolean runAutomation()
throws SQLException
SQLException - if any.
protected boolean verifyRowCount(ResultSet triggerResultSet)
throws SQLException
verifyRowCount
triggerResultSet - a ResultSet object.
SQLException - if any.
public int countRows(ResultSet rs)
throws SQLException
rs - a ResultSet object.
SQLException - if any.public boolean containsTokens(String targetString)
targetString - a String object.
public Automation getAutomation()
getAutomation
public boolean isReady()
isReady
isReady in interface ReadyRunnablepublic Schedule getSchedule()
getSchedule
public void setSchedule(Schedule schedule)
setSchedule
schedule - The schedule to set.public void setReady(boolean ready)
setReady
ready - a boolean.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||