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)
          Constructor for CollectdPackage.
 
Method Summary
 List<IncludeURL> getIncludeURLs()
          getIncludeURLs
protected  List<InetAddress> getIpList()
          getIpList
 String getName()
          getName
 Package getPackage()
          getPackage
 Service getService(String svcName)
          getService
 String getStorFlagOverride()
          getStorFlagOverride
protected  boolean hasExcludeRange(String addr, boolean has_specific)
           
protected  boolean hasIncludeRange(String addr)
          hasIncludeRange
protected  boolean hasSpecific(byte[] addr)
           
protected  boolean hasSpecificUrl(String iface, boolean has_specific)
           
 String ifAliasComment()
          ifAliasComment
 String ifAliasDomain()
          ifAliasDomain
protected  boolean interfaceInFilter(String iface)
           
 boolean interfaceInPackage(String iface)
          This method is used to determine if the named interface is included in the passed package definition.
protected  ThreadCategory log()
           
 void putIpList(List<InetAddress> ipList)
          putIpList
 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()
          storeByIfAlias
 String storeByNodeId()
          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)

Constructor for CollectdPackage.

Parameters:
pkg - a Package object.
localServer - a String object.
verifyServer - a boolean.
Method Detail

getPackage

public Package getPackage()

getPackage

Returns:
a Package object.

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:
svcName - The service name to lookup.
Returns:
a boolean.

hasSpecific

protected boolean hasSpecific(byte[] addr)

hasIncludeRange

protected boolean hasIncludeRange(String addr)

hasIncludeRange

Parameters:
addr - a long.
Returns:
a boolean.

getName

public String getName()

getName

Returns:
a String object.

hasExcludeRange

protected boolean hasExcludeRange(String addr,
                                  boolean has_specific)

putIpList

public void putIpList(List<InetAddress> ipList)

putIpList

Parameters:
ipList - a List object.

getIpList

protected List<InetAddress> getIpList()

getIpList

Returns:
a List object.

interfaceInFilter

protected boolean interfaceInFilter(String iface)

log

protected ThreadCategory log()

getIncludeURLs

public List<IncludeURL> getIncludeURLs()

getIncludeURLs

Returns:
a List object.

hasSpecificUrl

protected boolean hasSpecificUrl(String iface,
                                 boolean has_specific)

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.
Returns:
True if the interface is included in the package, false otherwise.

getService

public Service getService(String svcName)

getService

Parameters:
svcName - a String object.
Returns:
a Service object.

storeByIfAlias

public String storeByIfAlias()

storeByIfAlias

Returns:
a String object.

ifAliasComment

public String ifAliasComment()

ifAliasComment

Returns:
a String object.

getStorFlagOverride

public String getStorFlagOverride()

getStorFlagOverride

Returns:
a String object.

ifAliasDomain

public String ifAliasDomain()

ifAliasDomain

Returns:
a String object.

storeByNodeId

public String storeByNodeId()

storeByNodeId

Returns:
a String object.


Copyright © 2011. All Rights Reserved.