|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.dp.poller.scheduler.utils.RangeInfo
This class is responsible for holding information about a range parsed from the package.xml file.
Field Summary | |
private List |
m_erange
The exclude range parameters, from the |
private List |
m_irange
The include range parameters, from the |
private List |
m_rangeDef
The default range parameters, from the |
private List |
m_specific
The specific parameters, from the |
private List |
m_url
The url parameters, from the |
Constructor Summary | |
RangeInfo()
Default constructor, allocates members |
Method Summary | |
void |
addDefRange(PollerRange aRange)
This method adds a default range |
void |
addErange(PollerRange aRange)
This method adds a exclude range |
void |
addIrange(PollerRange aRange)
This method adds a include range |
void |
addSpecific(PollerRange aRange)
This method adds a specific range |
void |
addUrl(PollerRange aRange)
This method adds a url range |
boolean |
inExclude(String ipAddr)
This method returns a boolean indicating if an ip address falls within the exclude ranges. |
boolean |
inInclude(String ipAddr)
This method returns a boolean indicating if an ip address falls within the include ranges. |
boolean |
inSpecific(String ipAddr)
This method returns a boolean indicating if an ip address matches any ip addresses contained in the specific ranges |
private StringBuffer |
rangePrint(List list)
This method takes the elements from the member lists and appends them to a string buffer for string representation. |
String |
toString()
This method returns a string representation of the RangeInfo |
Methods inherited from class java.lang.Object |
|
Field Detail |
private List m_rangeDef
private List m_irange
private List m_erange
private List m_specific
private List m_url
Constructor Detail |
public RangeInfo()
Method Detail |
public boolean inSpecific(String ipAddr)
String
- ipAddr, the address to checkpublic boolean inExclude(String ipAddr)
String
- ipAddr, the address to checkpublic boolean inInclude(String ipAddr)
String
- ipAddr, the address to checkpublic void addDefRange(PollerRange aRange)
PollerRange
- aRange, the range to be addedpublic void addIrange(PollerRange aRange)
PollerRange
- aRange, the range to be addedpublic void addErange(PollerRange aRange)
PollerRange
- aRange, the range to be addedpublic void addSpecific(PollerRange aRange)
PollerRange
- aRange, the range to be addedpublic void addUrl(PollerRange aRange)
PollerRange
- aRange, the range to be addedpublic String toString()
toString
in class Object
private StringBuffer rangePrint(List list)
List
- list, the list to convert to StringBuffer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |