org.opennms.netmgt.config
Class CollectdPackage
java.lang.Object
org.opennms.netmgt.config.CollectdPackage
public class CollectdPackage
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectdPackage
public CollectdPackage(Package pkg,
String localServer,
boolean verifyServer)
getPackage
public Package getPackage()
serviceInPackageAndEnabled
public boolean serviceInPackageAndEnabled(String svcName)
- Returns true if the service is part of the package and the status of the
service is set to "on". Returns false if the service is not in the
package or it is but the status of the service is set to "off".
- Parameters:
pkg - The package to lookup up service.svcName - The service name to lookup.
hasIncludeRange
public boolean hasIncludeRange(long addr)
getName
public String getName()
putIpList
public void putIpList(List<String> ipList)
getIpList
public List<String> getIpList()
getIncludeURLs
public List<IncludeURL> getIncludeURLs()
interfaceInPackage
public boolean interfaceInPackage(String iface)
- This method is used to determine if the named interface is included in
the passed package definition. If the interface belongs to the package
then a value of true is returned. If the interface does not belong to the
package a false value is returned.
Note: Evaluation of the interface against a package
filter will only work if the IP is already in the database.
- Parameters:
iface - The interface to test against the package.pkg - The package to check for the inclusion of the interface.factory - TODO
- Returns:
- True if the interface is included in the package, false
otherwise.
getService
public Service getService(String svcName)
storeByIfAlias
public String storeByIfAlias()
ifAliasComment
public String ifAliasComment()
getStorFlagOverride
public String getStorFlagOverride()
ifAliasDomain
public String ifAliasDomain()
storeByNodeId
public String storeByNodeId()
Copyright © 2009. All Rights Reserved.