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
 List<String> getIpList()
          getIpList
 String getName()
          getName
 Package getPackage()
          getPackage
 Service getService(String svcName)
          getService
 String getStorFlagOverride()
          getStorFlagOverride
 boolean hasIncludeRange(long addr)
          hasIncludeRange
 String ifAliasComment()
          ifAliasComment
 String ifAliasDomain()
          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)
          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.

hasIncludeRange

public boolean hasIncludeRange(long addr)

hasIncludeRange

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

getName

public String getName()

getName

Returns:
a String object.

putIpList

public void putIpList(List<String> ipList)

putIpList

Parameters:
ipList - a List object.

getIpList

public List<String> getIpList()

getIpList

Returns:
a List object.

getIncludeURLs

public List<IncludeURL> getIncludeURLs()

getIncludeURLs

Returns:
a List object.

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.