org.opennms.bb.dp.poller.scheduler.utils
Class PollerRange

java.lang.Object
  |
  +--org.opennms.bb.dp.poller.scheduler.utils.PollerRange

public class PollerRange
extends Object

This class is responsible for holding information about ranges parsed from the package.xml file. It basically provides a wrapper for a number of Parameter object that are taken from on of the children tags under the tag in the xml file.

Version:
$Revision: 1.1 $
Author:
Jason Johns, OpenNMS

Field Summary
static String BEGIN
           
static String END
           
static String IPADDRESS
           
private  HashMap m_rangeDetails
          A map to hold multiple Parameter objects
static String RETRIES
           
static String TIMEOUT
          These are parameter names used to associate with name/value pairs
static String URL
           
 
Constructor Summary
PollerRange()
          Default constructor, allocates the members
 
Method Summary
 void addRangeParam(Parameter param)
          This method adds a Parameter object to the PollerRange
 String getValue(String key)
          This method returns the value of a named Parameter
 String toString()
          This method provides a string representation of the PollerRange
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

TIMEOUT

public static final String TIMEOUT
These are parameter names used to associate with name/value pairs

RETRIES

public static final String RETRIES

BEGIN

public static final String BEGIN

END

public static final String END

IPADDRESS

public static final String IPADDRESS

URL

public static final String URL

m_rangeDetails

private HashMap m_rangeDetails
A map to hold multiple Parameter objects
Constructor Detail

PollerRange

public PollerRange()
Default constructor, allocates the members
Method Detail

addRangeParam

public void addRangeParam(Parameter param)
This method adds a Parameter object to the PollerRange
Parameters:
Parameter - param, the new Parameter to add

getValue

public String getValue(String key)
This method returns the value of a named Parameter
Parameters:
String - key, the key to the value to look up
Returns:
String, the value assocaited with the key

toString

public String toString()
This method provides a string representation of the PollerRange
Overrides:
toString in class Object