|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.web.element.NetworkElementFactory
@Transactional(readOnly=true) public class NetworkElementFactory
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.
| Nested Class Summary | |
|---|---|
static class |
NetworkElementFactory.InterfaceComparator
|
| Field Summary | |
|---|---|
protected static Map<Integer,String> |
serviceId2NameMap
A mapping of service identifiers (integers) to service names (strings). |
protected static Map<String,Integer> |
serviceName2IdMap
A mapping of service names (strings) to service identifiers (integers). |
| Constructor Summary | |
|---|---|
NetworkElementFactory()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected static void |
augmentInterfacesWithSnmpData(Interface[] intfs,
Connection conn)
augmentInterfacesWithSnmpData |
static Node[] |
convertOnmsNodeCollectionToNodeArray(Collection<OnmsNode> ourNodes)
convertOnmsNodeCollectionToNodeArray |
protected void |
createServiceIdNameMaps()
|
Interface[] |
getActiveInterfacesOnNode(int nodeId)
getActiveInterfacesOnNode |
DataLinkInterface[] |
getAllDataLinks()
getAllDataLinks |
Interface[] |
getAllInterfaces()
getAllInterfaces |
Interface[] |
getAllInterfaces(boolean includeSnmp)
|
Interface[] |
getAllInterfacesOnNode(int nodeId)
getAllInterfacesOnNode |
Interface[] |
getAllManagedIpInterfaces(boolean includeSNMP)
getAllManagedIpInterfaces |
Node[] |
getAllNodes()
Returns all non-deleted nodes. |
Node[] |
getAllNodes(int serviceId)
getAllNodes |
Service[] |
getAllServices()
getAllServices |
Interface[] |
getAllSnmpInterfacesOnNode(int nodeId)
Returns all snmp interfaces on a node |
AtInterface |
getAtInterface(int nodeId,
String ipAddr)
|
static AtInterface |
getAtInterface(int nodeID,
String ipaddr,
javax.servlet.ServletContext servletContext)
getAtInterface |
static AtInterface[] |
getAtInterfacesFromPhysaddr(String AtPhysAddr)
getAtInterfacesFromPhysaddr |
protected DataLinkInterface[] |
getDataLinks(int nodeId)
getDataLinks |
DataLinkInterface[] |
getDataLinks(int nodeId,
int ifIndex)
getDataLinks |
protected DataLinkInterface[] |
getDataLinksFromNodeParent(int parentNodeId)
getDataLinksFromNodeParent |
DataLinkInterface[] |
getDataLinksFromNodeParent(int nodeId,
int ifIndex)
getDataLinksFromNodeParent |
DataLinkInterface[] |
getDataLinksOnInterface(int nodeID,
int ifindex)
getDataLinksOnInterface |
DataLinkInterface[] |
getDataLinksOnNode(int nodeID)
getDataLinksOnNode |
String |
getHostname(String ipAddress)
Resolve an IP address to a DNS hostname via the database. |
static NetworkElementFactoryInterface |
getInstance(org.springframework.context.ApplicationContext appContext)
|
static NetworkElementFactoryInterface |
getInstance(javax.servlet.ServletContext servletContext)
|
Interface |
getInterface(int ipInterfaceId)
getInterface |
Interface |
getInterface(int nodeId,
String ipAddress)
getInterface |
Interface |
getInterface(int nodeId,
String ipAddress,
int ifIndex)
getInterface |
Interface[] |
getInterfacesWithIfAlias(int nodeId,
String ifAlias)
|
Interface[] |
getInterfacesWithIpAddress(String ipAddress)
getInterfacesWithIpAddress |
protected static String |
getIpAddress(int nodeid)
getIpAddress |
protected static String |
getIpAddress(int nodeid,
int ifindex)
getIpAddress |
String |
getIpPrimaryAddress(int nodeId)
Translate a node id into a human-readable ipaddress. |
IpRouteInterface[] |
getIpRoute(int nodeId)
|
static IpRouteInterface[] |
getIpRoute(int nodeID,
int ifindex)
getIpRoute |
static IpRouteInterface[] |
getIpRoute(int nodeID,
javax.servlet.ServletContext servletContext)
getIpRoute |
static Set<Integer> |
getLinkedNodeIdOnNode(int nodeID)
getLinkedNodeIdOnNode |
static Set<Integer> |
getLinkedNodeIdOnNode(int nodeID,
Connection conn)
getLinkedNodeIdOnNode |
static Set<Integer> |
getLinkedNodeIdOnNodes(Set<Integer> nodeIds,
Connection conn)
getLinkedNodeIdOnNodes |
Node |
getNode(int nodeId)
|
List<Integer> |
getNodeIdsWithIpLike(String iplike)
Returns all non-deleted nodes with an IP address like the rule given. |
String |
getNodeLabel(int nodeId)
|
Node[] |
getNodesFromPhysaddr(String AtPhysAddr)
getNodesFromPhysaddr |
Node[] |
getNodesLike(String nodeLabel)
Returns all non-deleted nodes that have the given nodeLabel substring somewhere in their nodeLabel. |
Node[] |
getNodesLike(String nodeLabel,
int serviceId)
getNodesLike |
Node[] |
getNodesLikeAndIpLike(String nodeLabel,
String iplike,
int serviceId)
getNodesLikeAndIpLike |
Node[] |
getNodesWithCategories(String[] categories,
boolean onlyNodesWithDownAggregateStatus)
getNodesWithCategories |
Node[] |
getNodesWithCategories(String[] categories1,
String[] categories2,
boolean onlyNodesWithDownAggregateStatus)
getNodesWithCategories |
Node[] |
getNodesWithCategories(org.springframework.transaction.support.TransactionTemplate transTemplate,
String[] categories1,
boolean onlyNodesWithDownAggregateStatus)
getNodesWithCategories |
Node[] |
getNodesWithCategories(org.springframework.transaction.support.TransactionTemplate transTemplate,
String[] categories1,
String[] categories2,
boolean onlyNodesWithDownAggregateStatus)
getNodesWithCategories |
Node[] |
getNodesWithIfAlias(String ifAlias)
Returns all non-deleted nodes that contain the given string in an ifAlias |
Node[] |
getNodesWithIpLike(String iplike)
|
Node[] |
getNodesWithIpLike(String iplike,
int serviceId)
getNodesWithIpLike |
Node[] |
getNodesWithPhysAddr(String macAddr)
Returns all non-deleted nodes that have the given mac. |
Node[] |
getNodesWithPhysAddrAtInterface(String macAddr)
Returns all non-deleted nodes with a MAC address like the rule given from AtInterface. |
Node[] |
getNodesWithPhysAddrFromSnmpInterface(String macAddr)
Returns all non-deleted nodes with a MAC address like the rule given from SnmpInterface. |
Node[] |
getNodesWithService(int serviceId)
Returns all non-deleted nodes that have the given service. |
Service |
getService(int ifServiceId)
Return the service specified by the node identifier, IP address, and service identifier. |
Service |
getService(int nodeId,
String ipAddress,
int serviceId)
Return the service specified by the node identifier, IP address, and service identifier. |
int |
getServiceIdFromName(String serviceName)
getServiceIdFromName |
Map<Integer,String> |
getServiceIdToNameMap()
getServiceIdToNameMap |
String |
getServiceNameFromId(int serviceId)
getServiceNameFromId |
Map<String,Integer> |
getServiceNameToIdMap()
getServiceNameToIdMap |
Service[] |
getServicesOnInterface(int nodeId,
String ipAddress)
getServicesOnInterface |
Service[] |
getServicesOnInterface(int nodeId,
String ipAddress,
boolean includeDeletions)
getServicesOnInterface |
Service[] |
getServicesOnNode(int nodeId)
Get the list of all services on a given node. |
Service[] |
getServicesOnNode(int nodeId,
int serviceId)
Get the list of all instances of a specific service on a given node. |
Interface |
getSnmpInterface(int nodeId,
int ifIndex)
Get interface from snmpinterface table. |
static StpInterface[] |
getStpInterface(int nodeID)
getStpInterface |
static StpInterface[] |
getStpInterface(int nodeID,
int ifindex)
getStpInterface |
static StpNode[] |
getStpNode(int nodeID)
getStpNode |
static Vlan[] |
getVlansOnNode(int nodeID)
getVlansOnNode |
protected static DataLinkInterface[] |
invertDataLinkInterface(DataLinkInterface[] nodes)
invertDataLinkInterface |
static boolean |
isBridgeNode(int nodeID)
isBridgeNode |
boolean |
isParentNode(int nodeId)
isParentNode |
static boolean |
isRouteInfoNode(int nodeID)
isRouteInfoNode |
boolean |
nodeHasIfAliases(int nodeId)
Returns true if node has any snmpIfAliases |
protected static AtInterface[] |
rs2AtInterface(ResultSet rs)
This method returns the data from the result set as an array of AtInterface objects. |
protected static DataLinkInterface[] |
rs2DataLink(ResultSet rs)
This method returns the data from the result set as an array of DataLinkInterface objects. |
protected static Interface[] |
rs2Interfaces(ResultSet rs)
This method returns the data from the result set as an vector of ipinterface objects. |
protected static IpRouteInterface[] |
rs2IpRouteInterface(ResultSet rs)
This method returns the data from the result set as an array of IpRouteInterface objects. |
protected static Node[] |
rs2Nodes(ResultSet rs)
This method returns the data from the result set as an array of Node objects. |
protected static Service[] |
rs2Services(ResultSet rs)
rs2Services |
protected static Interface[] |
rs2SnmpInterfaces(ResultSet rs)
This method returns the data from the result set as an vector of interface objects for non-ip interfaces. |
protected static StpInterface[] |
rs2StpInterface(ResultSet rs)
This method returns the data from the result set as an array of StpInterface objects. |
protected static StpNode[] |
rs2StpNode(ResultSet rs)
This method returns the data from the result set as an array of StpNode objects. |
protected static Vlan[] |
rs2Vlan(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 |
|---|
protected static Map<String,Integer> serviceName2IdMap
protected static Map<Integer,String> serviceId2NameMap
| Constructor Detail |
|---|
public NetworkElementFactory()
| Method Detail |
|---|
public static NetworkElementFactoryInterface getInstance(javax.servlet.ServletContext servletContext)
public static NetworkElementFactoryInterface getInstance(org.springframework.context.ApplicationContext appContext)
public String getNodeLabel(int nodeId)
getNodeLabel in interface NetworkElementFactoryInterfacepublic String getIpPrimaryAddress(int nodeId)
NetworkElementFactoryInterface
getIpPrimaryAddress in interface NetworkElementFactoryInterfacenodeId - a int.
public Node getNode(int nodeId)
getNode in interface NetworkElementFactoryInterfacepublic Node[] getAllNodes()
NetworkElementFactoryInterface
getAllNodes in interface NetworkElementFactoryInterfaceNode objects.public Node[] getNodesLike(String nodeLabel)
NetworkElementFactoryInterface
getNodesLike in interface NetworkElementFactoryInterfacenodeLabel - a String object.
Node objects.public Node[] getNodesWithIpLike(String iplike)
getNodesWithIpLike in interface NetworkElementFactoryInterfacepublic Node[] getNodesWithService(int serviceId)
NetworkElementFactoryInterface
getNodesWithService in interface NetworkElementFactoryInterfaceserviceId - a int.
Node objects.public Node[] getNodesWithPhysAddr(String macAddr)
NetworkElementFactoryInterface
getNodesWithPhysAddr in interface NetworkElementFactoryInterfacemacAddr - a String object.
Node objects.public Node[] getNodesWithPhysAddrAtInterface(String macAddr)
NetworkElementFactoryInterface
getNodesWithPhysAddrAtInterface in interface NetworkElementFactoryInterfacemacAddr - a String object.
Node objects.public Node[] getNodesWithPhysAddrFromSnmpInterface(String macAddr)
NetworkElementFactoryInterface
getNodesWithPhysAddrFromSnmpInterface in interface NetworkElementFactoryInterfacemacAddr - a String object.
Node objects.public Node[] getNodesWithIfAlias(String ifAlias)
NetworkElementFactoryInterface
getNodesWithIfAlias in interface NetworkElementFactoryInterfaceifAlias - a String object.
public String getHostname(String ipAddress)
NetworkElementFactoryInterface
getHostname in interface NetworkElementFactoryInterfaceipAddress - a String object.
String object.public Interface getInterface(int ipInterfaceId)
NetworkElementFactoryInterfacegetInterface
getInterface in interface NetworkElementFactoryInterfaceipInterfaceId - a int.
Interface object.
public Interface getInterface(int nodeId,
String ipAddress)
NetworkElementFactoryInterfacegetInterface
getInterface in interface NetworkElementFactoryInterfacenodeId - a int.ipAddress - a String object.
Interface object.
public Interface getInterface(int nodeId,
String ipAddress,
int ifIndex)
NetworkElementFactoryInterfacegetInterface
getInterface in interface NetworkElementFactoryInterfacenodeId - a int.ipAddress - a String object.
Interface object.
public Interface getSnmpInterface(int nodeId,
int ifIndex)
NetworkElementFactoryInterface
getSnmpInterface in interface NetworkElementFactoryInterfacenodeId - a int.ifIndex - a int.
public Interface[] getInterfacesWithIpAddress(String ipAddress)
NetworkElementFactoryInterfacegetInterfacesWithIpAddress
getInterfacesWithIpAddress in interface NetworkElementFactoryInterfaceipAddress - a String object.
Interface objects.
public Interface[] getInterfacesWithIfAlias(int nodeId,
String ifAlias)
getInterfacesWithIfAlias in interface NetworkElementFactoryInterfacepublic boolean nodeHasIfAliases(int nodeId)
NetworkElementFactoryInterface
nodeHasIfAliases in interface NetworkElementFactoryInterfacenodeId - a int.
public Interface[] getAllInterfacesOnNode(int nodeId)
NetworkElementFactoryInterfacegetAllInterfacesOnNode
getAllInterfacesOnNode in interface NetworkElementFactoryInterfacenodeId - a int.
Interface objects.public Interface[] getAllSnmpInterfacesOnNode(int nodeId)
NetworkElementFactoryInterface
getAllSnmpInterfacesOnNode in interface NetworkElementFactoryInterfacenodeId - a int.
public Interface[] getActiveInterfacesOnNode(int nodeId)
NetworkElementFactoryInterfacegetActiveInterfacesOnNode
getActiveInterfacesOnNode in interface NetworkElementFactoryInterfacenodeId - a int.
Interface objects.public Interface[] getAllInterfaces()
NetworkElementFactoryInterfacegetAllInterfaces
getAllInterfaces in interface NetworkElementFactoryInterfaceInterface objects.public Interface[] getAllInterfaces(boolean includeSnmp)
getAllInterfaces in interface NetworkElementFactoryInterfacepublic Interface[] getAllManagedIpInterfaces(boolean includeSNMP)
NetworkElementFactoryInterfacegetAllManagedIpInterfaces
getAllManagedIpInterfaces in interface NetworkElementFactoryInterfaceincludeSNMP - a boolean.
Interface objects.
public Service getService(int nodeId,
String ipAddress,
int serviceId)
NetworkElementFactoryInterfaceNote 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.
getService in interface NetworkElementFactoryInterfacenodeId - a int.ipAddress - a String object.serviceId - a int.
Service object.public Service getService(int ifServiceId)
NetworkElementFactoryInterfaceNote 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.
getService in interface NetworkElementFactoryInterfaceifServiceId - a int.
Service object.public Service[] getAllServices()
NetworkElementFactoryInterfacegetAllServices
getAllServices in interface NetworkElementFactoryInterfaceService objects.
public Service[] getServicesOnInterface(int nodeId,
String ipAddress)
NetworkElementFactoryInterfacegetServicesOnInterface
getServicesOnInterface in interface NetworkElementFactoryInterfacenodeId - a int.ipAddress - a String object.
Service objects.
public Service[] getServicesOnInterface(int nodeId,
String ipAddress,
boolean includeDeletions)
NetworkElementFactoryInterfacegetServicesOnInterface
getServicesOnInterface in interface NetworkElementFactoryInterfacenodeId - a int.ipAddress - a String object.includeDeletions - a boolean.
Service objects.public Service[] getServicesOnNode(int nodeId)
NetworkElementFactoryInterface
getServicesOnNode in interface NetworkElementFactoryInterfacenodeId - a int.
Service objects.
public Service[] getServicesOnNode(int nodeId,
int serviceId)
NetworkElementFactoryInterface
getServicesOnNode in interface NetworkElementFactoryInterfacenodeId - a int.serviceId - a int.
Service objects.
protected static Node[] rs2Nodes(ResultSet rs)
throws SQLException
rs - a ResultSet object.
Node objects.
SQLException - if any.
protected static Interface[] rs2Interfaces(ResultSet rs)
throws SQLException
rs - a ResultSet object.
Interface objects.
SQLException - if any.
protected static Interface[] rs2SnmpInterfaces(ResultSet rs)
throws SQLException
rs - a ResultSet object.
SQLException - if any.
protected static void augmentInterfacesWithSnmpData(Interface[] intfs,
Connection conn)
throws SQLException
augmentInterfacesWithSnmpData
intfs - an array of Interface objects.conn - a Connection object.
SQLException - if any.
protected static Service[] rs2Services(ResultSet rs)
throws SQLException
rs2Services
rs - a ResultSet object.
Service objects.
SQLException - if any.public String getServiceNameFromId(int serviceId)
NetworkElementFactoryInterfacegetServiceNameFromId
getServiceNameFromId in interface NetworkElementFactoryInterfaceserviceId - a int.
String object.public int getServiceIdFromName(String serviceName)
NetworkElementFactoryInterfacegetServiceIdFromName
getServiceIdFromName in interface NetworkElementFactoryInterfaceserviceName - a String object.
public Map<Integer,String> getServiceIdToNameMap()
NetworkElementFactoryInterfacegetServiceIdToNameMap
getServiceIdToNameMap in interface NetworkElementFactoryInterfacepublic Map<String,Integer> getServiceNameToIdMap()
NetworkElementFactoryInterfacegetServiceNameToIdMap
getServiceNameToIdMap in interface NetworkElementFactoryInterfaceprotected void createServiceIdNameMaps()
public Node[] getNodesLikeAndIpLike(String nodeLabel,
String iplike,
int serviceId)
NetworkElementFactoryInterfacegetNodesLikeAndIpLike
getNodesLikeAndIpLike in interface NetworkElementFactoryInterfacenodeLabel - a String object.iplike - a String object.serviceId - a int.
Node objects.
public Node[] getNodesLike(String nodeLabel,
int serviceId)
NetworkElementFactoryInterfacegetNodesLike
getNodesLike in interface NetworkElementFactoryInterfacenodeLabel - a String object.serviceId - a int.
Node objects.
public Node[] getNodesWithIpLike(String iplike,
int serviceId)
NetworkElementFactoryInterfacegetNodesWithIpLike
getNodesWithIpLike in interface NetworkElementFactoryInterfaceiplike - a String object.serviceId - a int.
Node objects.public Node[] getAllNodes(int serviceId)
NetworkElementFactoryInterfacegetAllNodes
getAllNodes in interface NetworkElementFactoryInterfaceserviceId - a int.
Node objects.
public static AtInterface[] getAtInterfacesFromPhysaddr(String AtPhysAddr)
throws SQLException
getAtInterfacesFromPhysaddr
AtPhysAddr - a String object.
AtInterface objects.
SQLException - if any.public Node[] getNodesFromPhysaddr(String AtPhysAddr)
NetworkElementFactoryInterfacegetNodesFromPhysaddr
getNodesFromPhysaddr in interface NetworkElementFactoryInterfaceAtPhysAddr - a String object.
Node objects.
public static AtInterface getAtInterface(int nodeID,
String ipaddr,
javax.servlet.ServletContext servletContext)
throws SQLException
getAtInterface
nodeID - a int.ipaddr - a String object.
AtInterface object.
SQLException - if any.
public AtInterface getAtInterface(int nodeId,
String ipAddr)
getAtInterface in interface NetworkElementFactoryInterface
public static IpRouteInterface[] getIpRoute(int nodeID,
javax.servlet.ServletContext servletContext)
throws SQLException
getIpRoute
nodeID - a int.
IpRouteInterface objects.
SQLException - if any.public IpRouteInterface[] getIpRoute(int nodeId)
getIpRoute in interface NetworkElementFactoryInterface
public static IpRouteInterface[] getIpRoute(int nodeID,
int ifindex)
throws SQLException
getIpRoute
nodeID - a int.ifindex - a int.
IpRouteInterface objects.
SQLException - if any.public boolean isParentNode(int nodeId)
NetworkElementFactoryInterfaceisParentNode
isParentNode in interface NetworkElementFactoryInterface
public static boolean isBridgeNode(int nodeID)
throws SQLException
isBridgeNode
nodeID - a int.
SQLException - if any.
public static boolean isRouteInfoNode(int nodeID)
throws SQLException
isRouteInfoNode
nodeID - a int.
SQLException - if any.public DataLinkInterface[] getDataLinksOnNode(int nodeID)
NetworkElementFactoryInterfacegetDataLinksOnNode
getDataLinksOnNode in interface NetworkElementFactoryInterfacenodeID - a int.
DataLinkInterface objects.
public static Set<Integer> getLinkedNodeIdOnNode(int nodeID)
throws SQLException
getLinkedNodeIdOnNode
nodeID - a int.
Set object.
SQLException - if any.
public static Set<Integer> getLinkedNodeIdOnNode(int nodeID,
Connection conn)
throws SQLException
getLinkedNodeIdOnNode
nodeID - a int.conn - a Connection object.
Set object.
SQLException - if any.
public static Set<Integer> getLinkedNodeIdOnNodes(Set<Integer> nodeIds,
Connection conn)
throws SQLException
getLinkedNodeIdOnNodes
nodeIds - a Set object.conn - a Connection object.
Set object.
SQLException - if any.protected DataLinkInterface[] getDataLinks(int nodeId)
getDataLinks
nodeID - a int.
DataLinkInterface objects.protected DataLinkInterface[] getDataLinksFromNodeParent(int parentNodeId)
getDataLinksFromNodeParent
nodeID - a int.
DataLinkInterface objects.
public DataLinkInterface[] getDataLinksOnInterface(int nodeID,
int ifindex)
NetworkElementFactoryInterfacegetDataLinksOnInterface
getDataLinksOnInterface in interface NetworkElementFactoryInterfacenodeID - a int.ifindex - a int.
DataLinkInterface objects.
public DataLinkInterface[] getDataLinks(int nodeId,
int ifIndex)
NetworkElementFactoryInterfacegetDataLinks
getDataLinks in interface NetworkElementFactoryInterfaceDataLinkInterface objects.
public DataLinkInterface[] getDataLinksFromNodeParent(int nodeId,
int ifIndex)
NetworkElementFactoryInterfacegetDataLinksFromNodeParent
getDataLinksFromNodeParent in interface NetworkElementFactoryInterfaceDataLinkInterface objects.public DataLinkInterface[] getAllDataLinks()
NetworkElementFactoryInterfacegetAllDataLinks
getAllDataLinks in interface NetworkElementFactoryInterfaceDataLinkInterface objects.
public static Vlan[] getVlansOnNode(int nodeID)
throws SQLException
getVlansOnNode
nodeID - a int.
Vlan objects.
SQLException - if any.
public static StpInterface[] getStpInterface(int nodeID)
throws SQLException
getStpInterface
nodeID - a int.
StpInterface objects.
SQLException - if any.
public static StpInterface[] getStpInterface(int nodeID,
int ifindex)
throws SQLException
getStpInterface
nodeID - a int.ifindex - a int.
StpInterface objects.
SQLException - if any.
public static StpNode[] getStpNode(int nodeID)
throws SQLException
getStpNode
nodeID - a int.
StpNode objects.
SQLException - if any.
protected static AtInterface[] rs2AtInterface(ResultSet rs)
throws SQLException
rs - a ResultSet object.
AtInterface objects.
SQLException - if any.
protected static IpRouteInterface[] rs2IpRouteInterface(ResultSet rs)
throws SQLException
rs - a ResultSet object.
IpRouteInterface objects.
SQLException - if any.
protected static StpInterface[] rs2StpInterface(ResultSet rs)
throws SQLException
rs - a ResultSet object.
StpInterface objects.
SQLException - if any.
protected static StpNode[] rs2StpNode(ResultSet rs)
throws SQLException
rs - a ResultSet object.
StpNode objects.
SQLException - if any.
protected static Vlan[] rs2Vlan(ResultSet rs)
throws SQLException
rs - a ResultSet object.
Vlan objects.
SQLException - if any.
protected static DataLinkInterface[] rs2DataLink(ResultSet rs)
throws SQLException
rs - a ResultSet object.
DataLinkInterface objects.
SQLException - if any.protected static DataLinkInterface[] invertDataLinkInterface(DataLinkInterface[] nodes)
invertDataLinkInterface
nodes - an array of DataLinkInterface objects.
DataLinkInterface objects.
protected static String getIpAddress(int nodeid)
throws SQLException
getIpAddress
nodeid - a int.
String object.
SQLException - if any.
protected static String getIpAddress(int nodeid,
int ifindex)
throws SQLException
getIpAddress
nodeid - a int.ifindex - a int.
String object.
SQLException - if any.public List<Integer> getNodeIdsWithIpLike(String iplike)
NetworkElementFactoryInterface
getNodeIdsWithIpLike in interface NetworkElementFactoryInterfaceiplike - a String object.
List object.
public Node[] getNodesWithCategories(org.springframework.transaction.support.TransactionTemplate transTemplate,
String[] categories1,
boolean onlyNodesWithDownAggregateStatus)
NetworkElementFactoryInterfacegetNodesWithCategories
getNodesWithCategories in interface NetworkElementFactoryInterfacetransTemplate - a TransactionTemplate object.categories1 - an array of String objects.onlyNodesWithDownAggregateStatus - a boolean.
Node objects.
public Node[] getNodesWithCategories(String[] categories,
boolean onlyNodesWithDownAggregateStatus)
NetworkElementFactoryInterfacegetNodesWithCategories
getNodesWithCategories in interface NetworkElementFactoryInterfaceonlyNodesWithDownAggregateStatus - a boolean.
Node objects.
public Node[] getNodesWithCategories(org.springframework.transaction.support.TransactionTemplate transTemplate,
String[] categories1,
String[] categories2,
boolean onlyNodesWithDownAggregateStatus)
NetworkElementFactoryInterfacegetNodesWithCategories
getNodesWithCategories in interface NetworkElementFactoryInterfacetransTemplate - a TransactionTemplate object.categories1 - an array of String objects.categories2 - an array of String objects.onlyNodesWithDownAggregateStatus - a boolean.
Node objects.
public Node[] getNodesWithCategories(String[] categories1,
String[] categories2,
boolean onlyNodesWithDownAggregateStatus)
NetworkElementFactoryInterfacegetNodesWithCategories
getNodesWithCategories in interface NetworkElementFactoryInterfacecategories1 - an array of String objects.categories2 - an array of String objects.onlyNodesWithDownAggregateStatus - a boolean.
Node objects.public static Node[] convertOnmsNodeCollectionToNodeArray(Collection<OnmsNode> ourNodes)
convertOnmsNodeCollectionToNodeArray
ourNodes - a Collection object.
Node objects.
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||