org.opennms.netmgt.config.actiond
Class ActiondConfiguration

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

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

Top-level element for the actiond-configuration.xml configuration file.

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

Constructor Summary
ActiondConfiguration()
           
 
Method Summary
 void deleteMaxOutstandingActions()
          Method deleteMaxOutstandingActions
 void deleteMaxProcessTime()
          Method deleteMaxProcessTime
 int getMaxOutstandingActions()
          Returns the value of field 'maxOutstandingActions'.
 long getMaxProcessTime()
          Returns the value of field 'maxProcessTime'.
 boolean hasMaxOutstandingActions()
          Method hasMaxOutstandingActions
 boolean hasMaxProcessTime()
          Method hasMaxProcessTime
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setMaxOutstandingActions(int maxOutstandingActions)
          Sets the value of field 'maxOutstandingActions'.
 void setMaxProcessTime(long maxProcessTime)
          Sets the value of field 'maxProcessTime'.
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

ActiondConfiguration

public ActiondConfiguration()
Method Detail

deleteMaxOutstandingActions

public void deleteMaxOutstandingActions()
Method deleteMaxOutstandingActions


deleteMaxProcessTime

public void deleteMaxProcessTime()
Method deleteMaxProcessTime


getMaxOutstandingActions

public int getMaxOutstandingActions()
Returns the value of field 'maxOutstandingActions'. The field 'maxOutstandingActions' has the following description: The maximum number of simultaneous processes launched by actiond. If the number of launched processes currently runnning reaches this number, actiond waits for a process to complete or get terminated before it launches the next process.

Returns:
int

getMaxProcessTime

public long getMaxProcessTime()
Returns the value of field 'maxProcessTime'. The field 'maxProcessTime' has the following description: The maximum time that a launched process can take to complete. If execution time exceeds this time, the launched process is terminated.

Returns:
long

hasMaxOutstandingActions

public boolean hasMaxOutstandingActions()
Method hasMaxOutstandingActions

Returns:
boolean

hasMaxProcessTime

public boolean hasMaxProcessTime()
Method hasMaxProcessTime

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

setMaxOutstandingActions

public void setMaxOutstandingActions(int maxOutstandingActions)
Sets the value of field 'maxOutstandingActions'. The field 'maxOutstandingActions' has the following description: The maximum number of simultaneous processes launched by actiond. If the number of launched processes currently runnning reaches this number, actiond waits for a process to complete or get terminated before it launches the next process.

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

setMaxProcessTime

public void setMaxProcessTime(long maxProcessTime)
Sets the value of field 'maxProcessTime'. The field 'maxProcessTime' has the following description: The maximum time that a launched process can take to complete. If execution time exceeds this time, the launched process is terminated.

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

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.