org.opennms.netmgt.config
Class CollectdPackage
java.lang.Object
org.opennms.netmgt.config.CollectdPackage
public class CollectdPackage
- extends java.lang.Object
|
Constructor Summary |
CollectdPackage(org.opennms.netmgt.config.collectd.Package pkg,
java.lang.String localServer,
boolean verifyServer)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectdPackage
public CollectdPackage(org.opennms.netmgt.config.collectd.Package pkg,
java.lang.String localServer,
boolean verifyServer)
getPackage
public org.opennms.netmgt.config.collectd.Package getPackage()
serviceInPackageAndEnabled
public boolean serviceInPackageAndEnabled(java.lang.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 java.lang.String getName()
putIpList
public void putIpList(java.util.List<java.lang.String> ipList)
getIpList
public java.util.List<java.lang.String> getIpList()
getIncludeURLs
public java.util.List<IncludeURL> getIncludeURLs()
interfaceInPackage
public boolean interfaceInPackage(java.lang.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 org.opennms.netmgt.config.collectd.Service getService(java.lang.String svcName)
storeByIfAlias
public java.lang.String storeByIfAlias()
ifAliasComment
public java.lang.String ifAliasComment()
getStorFlagOverride
public java.lang.String getStorFlagOverride()
ifAliasDomain
public java.lang.String ifAliasDomain()
storeByNodeId
public java.lang.String storeByNodeId()
Copyright © 2007. All Rights Reserved.