org.opennms.netmgt.config
Class CollectdPackage

java.lang.Object
  extended by org.opennms.netmgt.config.CollectdPackage

public class CollectdPackage
extends Object


Constructor Summary
CollectdPackage(Package pkg, String localServer, boolean verifyServer)
           
 
Method Summary
 List<IncludeURL> getIncludeURLs()
           
 List<String> getIpList()
           
 String getName()
           
 Package getPackage()
           
 Service getService(String svcName)
           
 String getStorFlagOverride()
           
 boolean hasIncludeRange(long addr)
           
 String ifAliasComment()
           
 String ifAliasDomain()
           
 boolean interfaceInPackage(String iface)
          This method is used to determine if the named interface is included in the passed package definition.
 void putIpList(List<String> ipList)
           
 boolean serviceInPackageAndEnabled(String svcName)
          Returns true if the service is part of the package and the status of the service is set to "on".
 String storeByIfAlias()
           
 String storeByNodeId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectdPackage

public CollectdPackage(Package pkg,
                       String localServer,
                       boolean verifyServer)
Method Detail

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.