org.opennms.web.element
Class NetworkElementFactory

java.lang.Object
  extended by org.opennms.web.element.NetworkElementFactory

public class NetworkElementFactory
extends java.lang.Object

The source for all network element business objects (nodes, interfaces, services). Encapsulates all lookup functionality for the network element business objects in one place. To use this factory to lookup network elements, you must first initialize the Vault with the database connection manager * and JDBC URL it will use. Call the init method to initialize the factory. After that, you can call any lookup methods.

Author:
Larry Karnowski , OpenNMS

Field Summary
protected static java.util.Map<java.lang.Integer,java.lang.String> serviceId2NameMap
          A mapping of service identifiers (integers) to service names (strings).
protected static java.util.Map<java.lang.String,java.lang.Integer> serviceName2IdMap
          A mapping of service names (strings) to service identifiers (integers).
 
Method Summary
protected static void augmentInterfacesWithSnmpData(Interface[] intfs, java.sql.Connection conn)
           
static Node[] convertOnmsNodeCollectionToNodeArray(java.util.Collection<org.opennms.netmgt.model.OnmsNode> ourNodes)
           
protected static void createServiceIdNameMaps()
           
static Interface[] getActiveInterfacesOnNode(int nodeId)
           
static DataLinkInterface[] getAllDataLinks()
           
static Interface[] getAllInterfaces()
           
static Interface[] getAllInterfaces(boolean includeSNMP)
           
static Interface[] getAllInterfacesOnNode(int nodeId)
           
static Node[] getAllNodes()
          Returns all non-deleted nodes.
static Node[] getAllNodes(int serviceId)
           
static Service[] getAllServices()
           
static AtInterface getAtInterface(int nodeID, java.lang.String ipaddr)
           
static AtInterface[] getAtInterfacesFromPhysaddr(java.lang.String AtPhysAddr)
           
protected static DataLinkInterface[] getDataLinks(int nodeID)
           
static DataLinkInterface[] getDataLinks(int nodeID, int ifindex)
           
protected static DataLinkInterface[] getDataLinksFromNodeParent(int nodeID)
           
protected static DataLinkInterface[] getDataLinksFromNodeParent(int nodeID, int ifindex)
           
static DataLinkInterface[] getDataLinksOnInterface(int nodeID, int ifindex)
           
static DataLinkInterface[] getDataLinksOnNode(int nodeID)
           
static java.lang.String getHostname(java.lang.String ipAddress)
          Resolve an IP address to a DNS hostname via the database.
static Interface getInterface(int ipInterfaceId)
           
static Interface getInterface(int nodeId, java.lang.String ipAddress)
           
static Interface getInterface(int nodeId, java.lang.String ipAddress, int ifindex)
           
static Interface[] getInterfacesWithIfAlias(int nodeId, java.lang.String ifAlias)
          Returns all non-deleted Interfaces on the specified node that contain the given string in an ifAlias
static Interface[] getInterfacesWithIpAddress(java.lang.String ipAddress)
           
protected static java.lang.String getIpAddress(int nodeid)
           
protected static java.lang.String getIpAddress(int nodeid, int ifindex)
           
static IpRouteInterface[] getIpRoute(int nodeID)
           
static IpRouteInterface[] getIpRoute(int nodeID, int ifindex)
           
static java.util.Set<java.lang.Integer> getLinkedNodeIdOnNode(int nodeID)
           
static java.util.Set<java.lang.Integer> getLinkedNodeIdOnNode(int nodeID, java.sql.Connection conn)
           
static java.util.Set<java.lang.Integer> getLinkedNodeIdOnNodes(java.util.Set nodeIds, java.sql.Connection conn)
           
static Node getNode(int nodeId)
           
static java.util.List<java.lang.Integer> getNodeIdsWithIpLike(java.lang.String iplike)
          Returns all non-deleted nodes with an IP address like the rule given.
static java.lang.String getNodeLabel(int nodeId)
          Translate a node id into a human-readable node label.
static Node[] getNodesFromPhysaddr(java.lang.String AtPhysAddr)
           
static Node[] getNodesLike(java.lang.String nodeLabel)
          Returns all non-deleted nodes that have the given nodeLabel substring somewhere in their nodeLabel.
static Node[] getNodesLike(java.lang.String nodeLabel, int serviceId)
           
static Node[] getNodesLikeAndIpLike(java.lang.String nodeLabel, java.lang.String iplike, int serviceId)
           
static Node[] getNodesWithCategories(org.opennms.netmgt.dao.NodeDao nodeDao, org.opennms.netmgt.dao.CategoryDao categoryDao, java.lang.String[] categories1, boolean onlyNodesWithDownAggregateStatus)
           
static Node[] getNodesWithCategories(org.opennms.netmgt.dao.NodeDao nodeDao, org.opennms.netmgt.dao.CategoryDao categoryDao, java.lang.String[] categories1, java.lang.String[] categories2, boolean onlyNodesWithDownAggregateStatus)
           
static Node[] getNodesWithCategories(org.springframework.transaction.support.TransactionTemplate transTemplate, org.opennms.netmgt.dao.NodeDao nodeDao, org.opennms.netmgt.dao.CategoryDao categoryDao, java.lang.String[] categories1, boolean onlyNodesWithDownAggregateStatus)
           
static Node[] getNodesWithCategories(org.springframework.transaction.support.TransactionTemplate transTemplate, org.opennms.netmgt.dao.NodeDao nodeDao, org.opennms.netmgt.dao.CategoryDao categoryDao, java.lang.String[] categories1, java.lang.String[] categories2, boolean onlyNodesWithDownAggregateStatus)
           
static Node[] getNodesWithIfAlias(java.lang.String ifAlias)
          Returns all non-deleted nodes that contain the given string in an ifAlias
static Node[] getNodesWithIpLike(java.lang.String iplike)
          Returns all non-deleted nodes with an IP address like the rule given.
static Node[] getNodesWithIpLike(java.lang.String iplike, int serviceId)
           
static Node[] getNodesWithPhysAddr(java.lang.String macAddr)
          Returns all non-deleted nodes that have the given mac.
static Node[] getNodesWithPhysAddrAtInterface(java.lang.String macAddr)
          Returns all non-deleted nodes with a MAC address like the rule given from AtInterface.
static Node[] getNodesWithPhysAddrFromSnmpInterface(java.lang.String macAddr)
          Returns all non-deleted nodes with a MAC address like the rule given from SnmpInterface.
static Node[] getNodesWithService(int serviceId)
          Returns all non-deleted nodes that have the given service.
static Service getService(int ifServiceId)
          Return the service specified by the node identifier, IP address, and service identifier.
static Service getService(int nodeId, java.lang.String ipAddress, int serviceId)
          Return the service specified by the node identifier, IP address, and service identifier.
static int getServiceIdFromName(java.lang.String serviceName)
           
static java.util.Map<java.lang.Integer,java.lang.String> getServiceIdToNameMap()
           
static java.lang.String getServiceNameFromId(int serviceId)
           
static java.util.Map<java.lang.String,java.lang.Integer> getServiceNameToIdMap()
           
static Service[] getServicesOnInterface(int nodeId, java.lang.String ipAddress)
           
static Service[] getServicesOnInterface(int nodeId, java.lang.String ipAddress, boolean includeDeletions)
           
static Service[] getServicesOnNode(int nodeId)
          Get the list of all services on a given node.
static Service[] getServicesOnNode(int nodeId, int serviceId)
          Get the list of all instances of a specific service on a given node.
static StpInterface[] getStpInterface(int nodeID)
           
static StpInterface[] getStpInterface(int nodeID, int ifindex)
           
static StpNode[] getStpNode(int nodeID)
           
static Vlan[] getVlansOnNode(int nodeID)
           
protected static DataLinkInterface[] invertDataLinkInterface(DataLinkInterface[] nodes)
           
static boolean isBridgeNode(int nodeID)
           
static boolean isParentNode(int nodeID)
           
static boolean isRouteInfoNode(int nodeID)
           
protected static AtInterface[] rs2AtInterface(java.sql.ResultSet rs)
          This method returns the data from the result set as an array of AtInterface objects.
protected static DataLinkInterface[] rs2DataLink(java.sql.ResultSet rs)
          This method returns the data from the result set as an array of DataLinkInterface objects.
protected static Interface[] rs2Interfaces(java.sql.ResultSet rs)
          This method returns the data from the result set as an vector of ipinterface objects.
protected static IpRouteInterface[] rs2IpRouteInterface(java.sql.ResultSet rs)
          This method returns the data from the result set as an array of IpRouteInterface objects.
protected static Node[] rs2Nodes(java.sql.ResultSet rs)
          This method returns the data from the result set as an array of Node objects.
protected static Service[] rs2Services(java.sql.ResultSet rs)
           
protected static StpInterface[] rs2StpInterface(java.sql.ResultSet rs)
          This method returns the data from the result set as an array of StpInterface objects.
protected static StpNode[] rs2StpNode(java.sql.ResultSet rs)
          This method returns the data from the result set as an array of StpNode objects.
protected static Vlan[] rs2Vlan(java.sql.ResultSet rs)
          This method returns the data from the result set as an array of StpNode objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceName2IdMap

protected static java.util.Map<java.lang.String,java.lang.Integer> serviceName2IdMap
A mapping of service names (strings) to service identifiers (integers).


serviceId2NameMap

protected static java.util.Map<java.lang.Integer,java.lang.String> serviceId2NameMap
A mapping of service identifiers (integers) to service names (strings).

Method Detail

getNodeLabel

public static java.lang.String getNodeLabel(int nodeId)
                                     throws java.sql.SQLException
Translate a node id into a human-readable node label. Note these values are not cached.

Returns:
A human-readable node name or null if the node id given does not specify a real node.
Throws:
java.sql.SQLException

getNode

public static Node getNode(int nodeId)
                    throws java.sql.SQLException
Throws:
java.sql.SQLException

getAllNodes

public static Node[] getAllNodes()
                          throws java.sql.SQLException
Returns all non-deleted nodes.

Throws:
java.sql.SQLException

getNodesLike

public static Node[] getNodesLike(java.lang.String nodeLabel)
                           throws java.sql.SQLException
Returns all non-deleted nodes that have the given nodeLabel substring somewhere in their nodeLabel.

Throws:
java.sql.SQLException

getNodesWithIpLike

public static Node[] getNodesWithIpLike(java.lang.String iplike)
                                 throws java.sql.SQLException
Returns all non-deleted nodes with an IP address like the rule given.

Throws:
java.sql.SQLException

getNodesWithService

public static Node[] getNodesWithService(int serviceId)
                                  throws java.sql.SQLException
Returns all non-deleted nodes that have the given service.

Throws:
java.sql.SQLException

getNodesWithPhysAddr

public static Node[] getNodesWithPhysAddr(java.lang.String macAddr)
                                   throws java.sql.SQLException
Returns all non-deleted nodes that have the given mac.

Throws:
java.sql.SQLException

getNodesWithPhysAddrAtInterface

public static Node[] getNodesWithPhysAddrAtInterface(java.lang.String macAddr)
                                              throws java.sql.SQLException
Returns all non-deleted nodes with a MAC address like the rule given from AtInterface.

Throws:
java.sql.SQLException

getNodesWithPhysAddrFromSnmpInterface

public static Node[] getNodesWithPhysAddrFromSnmpInterface(java.lang.String macAddr)
                                                    throws java.sql.SQLException
Returns all non-deleted nodes with a MAC address like the rule given from SnmpInterface.

Throws:
java.sql.SQLException

getNodesWithIfAlias

public static Node[] getNodesWithIfAlias(java.lang.String ifAlias)
                                  throws java.sql.SQLException
Returns all non-deleted nodes that contain the given string in an ifAlias

Returns:
nodes the nodes with a matching ifAlias on one or more interfaces
Throws:
java.sql.SQLException

getHostname

public static java.lang.String getHostname(java.lang.String ipAddress)
                                    throws java.sql.SQLException
Resolve an IP address to a DNS hostname via the database. If no hostname can be found, the given IP address is returned.

Throws:
java.sql.SQLException

getInterface

public static Interface getInterface(int ipInterfaceId)
                              throws java.sql.SQLException
Throws:
java.sql.SQLException

getInterface

public static Interface getInterface(int nodeId,
                                     java.lang.String ipAddress)
                              throws java.sql.SQLException
Throws:
java.sql.SQLException

getInterface

public static Interface getInterface(int nodeId,
                                     java.lang.String ipAddress,
                                     int ifindex)
                              throws java.sql.SQLException
Throws:
java.sql.SQLException

getInterfacesWithIpAddress

public static Interface[] getInterfacesWithIpAddress(java.lang.String ipAddress)
                                              throws java.sql.SQLException
Throws:
java.sql.SQLException

getInterfacesWithIfAlias

public static Interface[] getInterfacesWithIfAlias(int nodeId,
                                                   java.lang.String ifAlias)
                                            throws java.sql.SQLException
Returns all non-deleted Interfaces on the specified node that contain the given string in an ifAlias

Returns:
intfs the Interfaces with a matching ifAlias
Throws:
java.sql.SQLException

getAllInterfacesOnNode

public static Interface[] getAllInterfacesOnNode(int nodeId)
                                          throws java.sql.SQLException
Throws:
java.sql.SQLException

getActiveInterfacesOnNode

public static Interface[] getActiveInterfacesOnNode(int nodeId)
                                             throws java.sql.SQLException
Throws:
java.sql.SQLException

getAllInterfaces

public static Interface[] getAllInterfaces()
                                    throws java.sql.SQLException
Throws:
java.sql.SQLException

getAllInterfaces

public static Interface[] getAllInterfaces(boolean includeSNMP)
                                    throws java.sql.SQLException
Throws:
java.sql.SQLException

getService

public static Service getService(int nodeId,
                                 java.lang.String ipAddress,
                                 int serviceId)
                          throws java.sql.SQLException
Return the service specified by the node identifier, IP address, and service identifier.

Note that if there are both an active service and historically deleted services with this (nodeid, ipAddress, serviceId) key, then the active service will be returned. If there are only deleted services, then the first deleted service will be returned.

Throws:
java.sql.SQLException

getService

public static Service getService(int ifServiceId)
                          throws java.sql.SQLException
Return the service specified by the node identifier, IP address, and service identifier.

Note that if there are both an active service and historically deleted services with this (nodeid, ipAddress, serviceId) key, then the active service will be returned. If there are only deleted services, then the first deleted service will be returned.

Throws:
java.sql.SQLException

getAllServices

public static Service[] getAllServices()
                                throws java.sql.SQLException
Throws:
java.sql.SQLException

getServicesOnInterface

public static Service[] getServicesOnInterface(int nodeId,
                                               java.lang.String ipAddress)
                                        throws java.sql.SQLException
Throws:
java.sql.SQLException

getServicesOnInterface

public static Service[] getServicesOnInterface(int nodeId,
                                               java.lang.String ipAddress,
                                               boolean includeDeletions)
                                        throws java.sql.SQLException
Throws:
java.sql.SQLException

getServicesOnNode

public static Service[] getServicesOnNode(int nodeId)
                                   throws java.sql.SQLException
Get the list of all services on a given node.

Throws:
java.sql.SQLException

getServicesOnNode

public static Service[] getServicesOnNode(int nodeId,
                                          int serviceId)
                                   throws java.sql.SQLException
Get the list of all instances of a specific service on a given node.

Throws:
java.sql.SQLException

rs2Nodes

protected static Node[] rs2Nodes(java.sql.ResultSet rs)
                          throws java.sql.SQLException
This method returns the data from the result set as an array of Node objects.

Throws:
java.sql.SQLException

rs2Interfaces

protected static Interface[] rs2Interfaces(java.sql.ResultSet rs)
                                    throws java.sql.SQLException
This method returns the data from the result set as an vector of ipinterface objects.

Throws:
java.sql.SQLException

augmentInterfacesWithSnmpData

protected static void augmentInterfacesWithSnmpData(Interface[] intfs,
                                                    java.sql.Connection conn)
                                             throws java.sql.SQLException
Throws:
java.sql.SQLException

rs2Services

protected static Service[] rs2Services(java.sql.ResultSet rs)
                                throws java.sql.SQLException
Throws:
java.sql.SQLException

getServiceNameFromId

public static java.lang.String getServiceNameFromId(int serviceId)
                                             throws java.sql.SQLException
Throws:
java.sql.SQLException

getServiceIdFromName

public static int getServiceIdFromName(java.lang.String serviceName)
                                throws java.sql.SQLException
Throws:
java.sql.SQLException

getServiceIdToNameMap

public static java.util.Map<java.lang.Integer,java.lang.String> getServiceIdToNameMap()
                                                                               throws java.sql.SQLException
Throws:
java.sql.SQLException

getServiceNameToIdMap

public static java.util.Map<java.lang.String,java.lang.Integer> getServiceNameToIdMap()
                                                                               throws java.sql.SQLException
Throws:
java.sql.SQLException

createServiceIdNameMaps

protected static void createServiceIdNameMaps()
                                       throws java.sql.SQLException
Throws:
java.sql.SQLException

getNodesLikeAndIpLike

public static Node[] getNodesLikeAndIpLike(java.lang.String nodeLabel,
                                           java.lang.String iplike,
                                           int serviceId)
                                    throws java.sql.SQLException
Throws:
java.sql.SQLException

getNodesLike

public static Node[] getNodesLike(java.lang.String nodeLabel,
                                  int serviceId)
                           throws java.sql.SQLException
Throws:
java.sql.SQLException

getNodesWithIpLike

public static Node[] getNodesWithIpLike(java.lang.String iplike,
                                        int serviceId)
                                 throws java.sql.SQLException
Throws:
java.sql.SQLException

getAllNodes

public static Node[] getAllNodes(int serviceId)
                          throws java.sql.SQLException
Throws:
java.sql.SQLException

getAtInterfacesFromPhysaddr

public static AtInterface[] getAtInterfacesFromPhysaddr(java.lang.String AtPhysAddr)
                                                 throws java.sql.SQLException
Throws:
java.sql.SQLException

getNodesFromPhysaddr

public static Node[] getNodesFromPhysaddr(java.lang.String AtPhysAddr)
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException

getAtInterface

public static AtInterface getAtInterface(int nodeID,
                                         java.lang.String ipaddr)
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

getIpRoute

public static IpRouteInterface[] getIpRoute(int nodeID)
                                     throws java.sql.SQLException
Throws:
java.sql.SQLException

getIpRoute

public static IpRouteInterface[] getIpRoute(int nodeID,
                                            int ifindex)
                                     throws java.sql.SQLException
Throws:
java.sql.SQLException

isParentNode

public static boolean isParentNode(int nodeID)
                            throws java.sql.SQLException
Throws:
java.sql.SQLException

isBridgeNode

public static boolean isBridgeNode(int nodeID)
                            throws java.sql.SQLException
Throws:
java.sql.SQLException

isRouteInfoNode

public static boolean isRouteInfoNode(int nodeID)
                               throws java.sql.SQLException
Throws:
java.sql.SQLException

getDataLinksOnNode

public static DataLinkInterface[] getDataLinksOnNode(int nodeID)
                                              throws java.sql.SQLException
Throws:
java.sql.SQLException

getLinkedNodeIdOnNode

public static java.util.Set<java.lang.Integer> getLinkedNodeIdOnNode(int nodeID)
                                                              throws java.sql.SQLException
Throws:
java.sql.SQLException

getLinkedNodeIdOnNode

public static java.util.Set<java.lang.Integer> getLinkedNodeIdOnNode(int nodeID,
                                                                     java.sql.Connection conn)
                                                              throws java.sql.SQLException
Throws:
java.sql.SQLException

getLinkedNodeIdOnNodes

public static java.util.Set<java.lang.Integer> getLinkedNodeIdOnNodes(java.util.Set nodeIds,
                                                                      java.sql.Connection conn)
                                                               throws java.sql.SQLException
Throws:
java.sql.SQLException

getDataLinks

protected static DataLinkInterface[] getDataLinks(int nodeID)
                                           throws java.sql.SQLException
Throws:
java.sql.SQLException

getDataLinksFromNodeParent

protected static DataLinkInterface[] getDataLinksFromNodeParent(int nodeID)
                                                         throws java.sql.SQLException
Throws:
java.sql.SQLException

getDataLinksOnInterface

public static DataLinkInterface[] getDataLinksOnInterface(int nodeID,
                                                          int ifindex)
                                                   throws java.sql.SQLException
Throws:
java.sql.SQLException

getDataLinks

public static DataLinkInterface[] getDataLinks(int nodeID,
                                               int ifindex)
                                        throws java.sql.SQLException
Throws:
java.sql.SQLException

getDataLinksFromNodeParent

protected static DataLinkInterface[] getDataLinksFromNodeParent(int nodeID,
                                                                int ifindex)
                                                         throws java.sql.SQLException
Throws:
java.sql.SQLException

getAllDataLinks

public static DataLinkInterface[] getAllDataLinks()
                                           throws java.sql.SQLException
Throws:
java.sql.SQLException

getVlansOnNode

public static Vlan[] getVlansOnNode(int nodeID)
                             throws java.sql.SQLException
Throws:
java.sql.SQLException

getStpInterface

public static StpInterface[] getStpInterface(int nodeID)
                                      throws java.sql.SQLException
Throws:
java.sql.SQLException

getStpInterface

public static StpInterface[] getStpInterface(int nodeID,
                                             int ifindex)
                                      throws java.sql.SQLException
Throws:
java.sql.SQLException

getStpNode

public static StpNode[] getStpNode(int nodeID)
                            throws java.sql.SQLException
Throws:
java.sql.SQLException

rs2AtInterface

protected static AtInterface[] rs2AtInterface(java.sql.ResultSet rs)
                                       throws java.sql.SQLException
This method returns the data from the result set as an array of AtInterface objects.

Throws:
java.sql.SQLException

rs2IpRouteInterface

protected static IpRouteInterface[] rs2IpRouteInterface(java.sql.ResultSet rs)
                                                 throws java.sql.SQLException
This method returns the data from the result set as an array of IpRouteInterface objects.

Throws:
java.sql.SQLException

rs2StpInterface

protected static StpInterface[] rs2StpInterface(java.sql.ResultSet rs)
                                         throws java.sql.SQLException
This method returns the data from the result set as an array of StpInterface objects.

Throws:
java.sql.SQLException

rs2StpNode

protected static StpNode[] rs2StpNode(java.sql.ResultSet rs)
                               throws java.sql.SQLException
This method returns the data from the result set as an array of StpNode objects.

Throws:
java.sql.SQLException

rs2Vlan

protected static Vlan[] rs2Vlan(java.sql.ResultSet rs)
                         throws java.sql.SQLException
This method returns the data from the result set as an array of StpNode objects.

Throws:
java.sql.SQLException

rs2DataLink

protected static DataLinkInterface[] rs2DataLink(java.sql.ResultSet rs)
                                          throws java.sql.SQLException
This method returns the data from the result set as an array of DataLinkInterface objects.

Throws:
java.sql.SQLException

invertDataLinkInterface

protected static DataLinkInterface[] invertDataLinkInterface(DataLinkInterface[] nodes)

getIpAddress

protected static java.lang.String getIpAddress(int nodeid)
                                        throws java.sql.SQLException
Throws:
java.sql.SQLException

getIpAddress

protected static java.lang.String getIpAddress(int nodeid,
                                               int ifindex)
                                        throws java.sql.SQLException
Throws:
java.sql.SQLException

getNodeIdsWithIpLike

public static java.util.List<java.lang.Integer> getNodeIdsWithIpLike(java.lang.String iplike)
                                                              throws java.sql.SQLException
Returns all non-deleted nodes with an IP address like the rule given.

Throws:
java.sql.SQLException

getNodesWithCategories

public static Node[] getNodesWithCategories(org.springframework.transaction.support.TransactionTemplate transTemplate,
                                            org.opennms.netmgt.dao.NodeDao nodeDao,
                                            org.opennms.netmgt.dao.CategoryDao categoryDao,
                                            java.lang.String[] categories1,
                                            boolean onlyNodesWithDownAggregateStatus)

getNodesWithCategories

public static Node[] getNodesWithCategories(org.opennms.netmgt.dao.NodeDao nodeDao,
                                            org.opennms.netmgt.dao.CategoryDao categoryDao,
                                            java.lang.String[] categories1,
                                            boolean onlyNodesWithDownAggregateStatus)

getNodesWithCategories

public static Node[] getNodesWithCategories(org.springframework.transaction.support.TransactionTemplate transTemplate,
                                            org.opennms.netmgt.dao.NodeDao nodeDao,
                                            org.opennms.netmgt.dao.CategoryDao categoryDao,
                                            java.lang.String[] categories1,
                                            java.lang.String[] categories2,
                                            boolean onlyNodesWithDownAggregateStatus)

getNodesWithCategories

public static Node[] getNodesWithCategories(org.opennms.netmgt.dao.NodeDao nodeDao,
                                            org.opennms.netmgt.dao.CategoryDao categoryDao,
                                            java.lang.String[] categories1,
                                            java.lang.String[] categories2,
                                            boolean onlyNodesWithDownAggregateStatus)

convertOnmsNodeCollectionToNodeArray

public static Node[] convertOnmsNodeCollectionToNodeArray(java.util.Collection<org.opennms.netmgt.model.OnmsNode> ourNodes)


Copyright © 2007. All Rights Reserved.