|
||||||||||
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.PollerPackage
This class is a representation of a BlueBird package as parsed from the package.xml file.
Field Summary | |
private String |
m_filterExpr
The filter expression rule for the package |
private BBFilter |
m_filterParser
The parser to parse and execute a filter expression |
private String |
m_name
The name of the package |
private RangeInfo |
m_rangeInfo
Range information for the package |
private HashMap |
m_services
List of services associated with the package |
Constructor Summary | |
PollerPackage(String aName)
Constructor to assign a name to the package and initialize the various members. |
Method Summary | |
void |
addService(ServiceInfo aService)
This method adds a service to the package |
String |
getFilterExpr()
This method returns the filter expression member |
List |
getFilterList()
This method runs the filterExpr against the database to get back a list of ip addresses that match the rule. |
String |
getName()
This method returns the package name |
RangeInfo |
getRangeInfo()
This method returns the range information for this package |
ServiceInfo |
getService(String aServiceName)
This method returns the ServiceInfo for a given service name |
List |
getServiceNames()
|
boolean |
ipInFilter(String ipAddr)
This method checks to see if a particular ip address is within the list returned by a filter expression. |
boolean |
ipInRange(String ipAddr)
This method determines if an ip address is within the range specifications of the package. |
void |
setFilterExpr(String anExpr)
This method sets the filterExpr member. |
String |
toString()
This method returns a string representation of the package |
Methods inherited from class java.lang.Object |
|
Field Detail |
private String m_name
private String m_filterExpr
private RangeInfo m_rangeInfo
private HashMap m_services
private BBFilter m_filterParser
Constructor Detail |
public PollerPackage(String aName)
String
- aName, the name of the packageMethod Detail |
public boolean ipInRange(String ipAddr)
String
- ipAddr, the address to check the range forpublic List getFilterList()
public boolean ipInFilter(String ipAddr)
String
- ipAddr, the address to checkpublic void addService(ServiceInfo aService)
ServiceInfo
- aService, a class encapulating the service informationpublic ServiceInfo getService(String aServiceName)
String
- aServiceName, the name of the service to look uppublic List getServiceNames()
public RangeInfo getRangeInfo()
public void setFilterExpr(String anExpr)
String
- anExpr, the expression to setpublic String getFilterExpr()
public String getName()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |