org.opennms.netmgt.config.vacuumd
Class Automation

java.lang.Object
  extended by org.opennms.netmgt.config.vacuumd.Automation
All Implemented Interfaces:
java.io.Serializable

public class Automation
extends java.lang.Object
implements java.io.Serializable

Triggers and Actions hooked up and run by the Vacuumd schedule using interval for frequency

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Automation()
           
 
Method Summary
 void deleteActive()
          Method deleteActive
 void deleteInterval()
          Method deleteInterval
 java.lang.String getActionEvent()
          Returns the value of field 'actionEvent'.
 java.lang.String getActionName()
          Returns the value of field 'actionName'.
 boolean getActive()
          Returns the value of field 'active'.
 java.lang.String getAutoEventName()
          Returns the value of field 'autoEventName'.
 int getInterval()
          Returns the value of field 'interval'.
 java.lang.String getName()
          Returns the value of field 'name'.
 java.lang.String getTriggerName()
          Returns the value of field 'triggerName'.
 boolean hasActive()
          Method hasActive
 boolean hasInterval()
          Method hasInterval
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setActionEvent(java.lang.String actionEvent)
          Sets the value of field 'actionEvent'.
 void setActionName(java.lang.String actionName)
          Sets the value of field 'actionName'.
 void setActive(boolean active)
          Sets the value of field 'active'.
 void setAutoEventName(java.lang.String autoEventName)
          Sets the value of field 'autoEventName'.
 void setInterval(int interval)
          Sets the value of field 'interval'.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setTriggerName(java.lang.String triggerName)
          Sets the value of field 'triggerName'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Automation

public Automation()
Method Detail

deleteActive

public void deleteActive()
Method deleteActive


deleteInterval

public void deleteInterval()
Method deleteInterval


getActionEvent

public java.lang.String getActionEvent()
Returns the value of field 'actionEvent'. The field 'actionEvent' has the following description: Create an Event from Result of Trigger

Returns:
String

getActionName

public java.lang.String getActionName()
Returns the value of field 'actionName'. The field 'actionName' has the following description: reference an action from the collection of actions

Returns:
String

getActive

public boolean getActive()
Returns the value of field 'active'. The field 'active' has the following description: enable/disable this automation

Returns:
boolean

getAutoEventName

public java.lang.String getAutoEventName()
Returns the value of field 'autoEventName'. The field 'autoEventName' has the following description: specify an event UEI to send

Returns:
String

getInterval

public int getInterval()
Returns the value of field 'interval'. The field 'interval' has the following description: How ofter should this autmation run

Returns:
int

getName

public java.lang.String getName()
Returns the value of field 'name'. The field 'name' has the following description: The name of this automation

Returns:
String

getTriggerName

public java.lang.String getTriggerName()
Returns the value of field 'triggerName'. The field 'triggerName' has the following description: reference a trigger from the collection of triggers

Returns:
String

hasActive

public boolean hasActive()
Method hasActive

Returns:
boolean

hasInterval

public boolean hasInterval()
Method hasInterval

Returns:
boolean

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

setActionEvent

public void setActionEvent(java.lang.String actionEvent)
Sets the value of field 'actionEvent'. The field 'actionEvent' has the following description: Create an Event from Result of Trigger

Parameters:
actionEvent - the value of field 'actionEvent'.

setActionName

public void setActionName(java.lang.String actionName)
Sets the value of field 'actionName'. The field 'actionName' has the following description: reference an action from the collection of actions

Parameters:
actionName - the value of field 'actionName'.

setActive

public void setActive(boolean active)
Sets the value of field 'active'. The field 'active' has the following description: enable/disable this automation

Parameters:
active - the value of field 'active'.

setAutoEventName

public void setAutoEventName(java.lang.String autoEventName)
Sets the value of field 'autoEventName'. The field 'autoEventName' has the following description: specify an event UEI to send

Parameters:
autoEventName - the value of field 'autoEventName'.

setInterval

public void setInterval(int interval)
Sets the value of field 'interval'. The field 'interval' has the following description: How ofter should this autmation run

Parameters:
interval - the value of field 'interval'.

setName

public void setName(java.lang.String name)
Sets the value of field 'name'. The field 'name' has the following description: The name of this automation

Parameters:
name - the value of field 'name'.

setTriggerName

public void setTriggerName(java.lang.String triggerName)
Sets the value of field 'triggerName'. The field 'triggerName' has the following description: reference a trigger from the collection of triggers

Parameters:
triggerName - the value of field 'triggerName'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.