Class NetworkElementFactory
- java.lang.Object
-
- org.opennms.web.element.NetworkElementFactory
-
- All Implemented Interfaces:
NetworkElementFactoryInterface
,org.springframework.beans.factory.InitializingBean
@Transactional(readOnly=true) public class NetworkElementFactory extends Object implements org.springframework.beans.factory.InitializingBean, NetworkElementFactoryInterface
The source for all network element business objects (nodes, interfaces, services). Encapsulates all lookup functionality for the network element business objects in one place.- Author:
- Larry Karnowski , OpenNMS
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NetworkElementFactory.InterfaceComparator
-
Constructor Summary
Constructors Constructor Description NetworkElementFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
afterPropertiesSet()
Collection<OnmsOutage>
currentOutagesForServiceFromPerspectivePoller(OnmsMonitoredService service)
Return all current open outages for the given service be it detected from local or from perspective.Interface[]
getActiveInterfacesOnNode(int nodeId)
getActiveInterfacesOnNodeList<OnmsApplication>
getAllApplications()
Interface[]
getAllInterfaces()
getAllInterfacesInterface[]
getAllInterfaces(boolean includeSnmp)
Interface[]
getAllInterfacesOnNode(int nodeId)
getAllInterfacesOnNodeInterface[]
getAllManagedIpInterfaces(boolean includeSNMP)
getAllManagedIpInterfacesInterface[]
getAllManagedIpInterfacesLike(String ipHost)
Returns all managed interfaces that matches the ipHost String to either the ipHost or ipAddress field.List<OnmsNode>
getAllNodes()
Returns all non-deleted nodes.List<OnmsNode>
getAllNodes(int serviceId)
getAllNodesService[]
getAllServices()
getAllServicesInterface[]
getAllSnmpInterfacesOnNode(int nodeId)
Returns all SNMP interfaces on a nodeMap<OnmsMonitoredService,Map<String,Double>>
getApplicationServiceStatus(OnmsApplication onmsApplication, long start, long end)
ApplicationStatus
getApplicationStatus(OnmsApplication onmsApplication, long start, long end)
List<String>
getCategories()
String
getHostname(String ipAddress)
Resolve an IP address to a DNS hostname via the database.Integer
getIfIndex(int ipinterfaceid)
Integer
getIfIndex(int nodeID, String ipaddr)
static NetworkElementFactoryInterface
getInstance(javax.servlet.ServletContext servletContext)
static NetworkElementFactoryInterface
getInstance(org.springframework.context.ApplicationContext appContext)
Interface
getInterface(int ipInterfaceId)
getInterfaceInterface
getInterface(int nodeId, String ipAddress)
getInterfaceInterface
getInterface(int nodeId, String ipAddress, int ifIndex)
getInterfaceInterface[]
getInterfacesWithIfAlias(int nodeId, String ifAlias)
Interface[]
getInterfacesWithIpAddress(String ipAddress)
getInterfacesWithIpAddressString
getIpPrimaryAddress(int nodeId)
Find the IP address of the primary SNMP interface.List<OnmsMonitoringLocation>
getMonitoringLocations()
List<OnmsMonitoringSystem>
getMonitoringSystems()
OnmsNode
getNode(int nodeId)
Get a node based on it's node IDOnmsNode
getNode(String lookupCriteria)
Get a node based on it's node ID or foreignSource:foreignIdList<Integer>
getNodeIdsWithIpLike(String iplike)
Returns all non-deleted nodes with an IP address like the rule given.String
getNodeLabel(int nodeId)
String
getNodeLocation(int nodeId)
Get the location name associated with the node.List<OnmsNode>
getNodesFromPhysaddr(String physAddr)
getNodesFromPhysaddrList<OnmsNode>
getNodesLike(String nodeLabel)
Returns all non-deleted nodes that have the given nodeLabel substring somewhere in their nodeLabel.List<OnmsNode>
getNodesLike(String nodeLabel, int serviceId)
getNodesLikeList<OnmsNode>
getNodesLikeAndIpLike(String nodeLabel, String iplike, int serviceId)
getNodesLikeAndIpLikeList<OnmsNode>
getNodesWithCategories(String[] categories, boolean onlyNodesWithDownAggregateStatus)
getNodesWithCategoriesList<OnmsNode>
getNodesWithCategories(String[] categories1, String[] categories2, boolean onlyNodesWithDownAggregateStatus)
getNodesWithCategoriesList<OnmsNode>
getNodesWithIfAlias(String ifAlias)
Returns all non-deleted nodes that contain the given string in an ifAliasList<OnmsNode>
getNodesWithIpLike(String iplike)
List<OnmsNode>
getNodesWithIpLike(String iplike, int serviceId)
getNodesWithIpLikeList<OnmsNode>
getNodesWithPhysAddr(String macAddr)
Returns all non-deleted nodes that have the given mac.List<OnmsNode>
getNodesWithPhysAddrAtInterface(String macAddr)
Deprecated.OnmsNode.arpInterface went away, so we only search snmpInterfacesList<OnmsNode>
getNodesWithPhysAddrFromSnmpInterface(String macAddr)
Deprecated.OnmsNode.arpInterface went away, so we only search snmpInterfacesList<OnmsNode>
getNodesWithService(int serviceId)
Returns all non-deleted nodes that have the given service.Scope
getScopeForInterface(Integer nodeId, String ipAddress)
Scope
getScopeForNode(Integer nodeId)
Scope
getScopeForService(Integer nodeId, InetAddress ipAddress, String serviceName)
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)
getServiceIdFromNameMap<Integer,String>
getServiceIdToNameMap()
getServiceIdToNameMapString
getServiceNameFromId(int serviceId)
getServiceNameFromIdMap<String,Integer>
getServiceNameToIdMap()
getServiceNameToIdMapService[]
getServicesOnInterface(int nodeId, String ipAddress)
getServicesOnInterfaceService[]
getServicesOnInterface(int nodeId, String ipAddress, boolean includeDeletions)
getServicesOnInterfaceService[]
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.boolean
nodeExistsInRequisition(String foreignSource, String foreignId)
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
getInstance
public static NetworkElementFactoryInterface getInstance(javax.servlet.ServletContext servletContext)
-
getInstance
public static NetworkElementFactoryInterface getInstance(org.springframework.context.ApplicationContext appContext)
-
getNodeLabel
public String getNodeLabel(int nodeId)
- Specified by:
getNodeLabel
in interfaceNetworkElementFactoryInterface
-
getNodeLocation
public String getNodeLocation(int nodeId)
Description copied from interface:NetworkElementFactoryInterface
Get the location name associated with the node.- Specified by:
getNodeLocation
in interfaceNetworkElementFactoryInterface
- Parameters:
nodeId
- the node's ID- Returns:
- the location as a string, or null if the node does not have a location
-
getIpPrimaryAddress
public String getIpPrimaryAddress(int nodeId)
Description copied from interface:NetworkElementFactoryInterface
Find the IP address of the primary SNMP interface.- Specified by:
getIpPrimaryAddress
in interfaceNetworkElementFactoryInterface
- Parameters:
nodeId
- an int.- Returns:
- An IPv4 or IPv6 address in string format or null if the node has no primary SNMP interface
-
getNode
public OnmsNode getNode(int nodeId)
Description copied from interface:NetworkElementFactoryInterface
Get a node based on it's node ID- Specified by:
getNode
in interfaceNetworkElementFactoryInterface
- Parameters:
nodeId
- an int- Returns:
- a
OnmsNode
object
-
getNode
public OnmsNode getNode(String lookupCriteria)
Description copied from interface:NetworkElementFactoryInterface
Get a node based on it's node ID or foreignSource:foreignId- Specified by:
getNode
in interfaceNetworkElementFactoryInterface
- Parameters:
lookupCriteria
- the criteria, either the node ID, or a colon-separated string of foreignSource:foreignId- Returns:
- a
OnmsNode
object
-
getAllNodes
public List<OnmsNode> getAllNodes()
Description copied from interface:NetworkElementFactoryInterface
Returns all non-deleted nodes.- Specified by:
getAllNodes
in interfaceNetworkElementFactoryInterface
- Returns:
- an array of
OnmsNode
objects.
-
getNodesLike
public List<OnmsNode> getNodesLike(String nodeLabel)
Description copied from interface:NetworkElementFactoryInterface
Returns all non-deleted nodes that have the given nodeLabel substring somewhere in their nodeLabel.- Specified by:
getNodesLike
in interfaceNetworkElementFactoryInterface
- Parameters:
nodeLabel
- aString
object.- Returns:
- an array of
OnmsNode
objects.
-
getNodesWithIpLike
public List<OnmsNode> getNodesWithIpLike(String iplike)
- Specified by:
getNodesWithIpLike
in interfaceNetworkElementFactoryInterface
-
getNodesWithService
public List<OnmsNode> getNodesWithService(int serviceId)
Description copied from interface:NetworkElementFactoryInterface
Returns all non-deleted nodes that have the given service.- Specified by:
getNodesWithService
in interfaceNetworkElementFactoryInterface
- Parameters:
serviceId
- a int.- Returns:
- an array of
OnmsNode
objects.
-
getNodesWithPhysAddr
public List<OnmsNode> getNodesWithPhysAddr(String macAddr)
Description copied from interface:NetworkElementFactoryInterface
Returns all non-deleted nodes that have the given mac.- Specified by:
getNodesWithPhysAddr
in interfaceNetworkElementFactoryInterface
- Parameters:
macAddr
- aString
object.- Returns:
- an array of
OnmsNode
objects.
-
getNodesWithPhysAddrAtInterface
public List<OnmsNode> getNodesWithPhysAddrAtInterface(String macAddr)
Deprecated.OnmsNode.arpInterface went away, so we only search snmpInterfacesDescription copied from interface:NetworkElementFactoryInterface
Returns all non-deleted nodes with a MAC address like the rule given from AtInterface.- Specified by:
getNodesWithPhysAddrAtInterface
in interfaceNetworkElementFactoryInterface
- Parameters:
macAddr
-- Returns:
- a list of @{OnmsNode}s
-
getNodesWithPhysAddrFromSnmpInterface
public List<OnmsNode> getNodesWithPhysAddrFromSnmpInterface(String macAddr)
Deprecated.OnmsNode.arpInterface went away, so we only search snmpInterfacesDescription copied from interface:NetworkElementFactoryInterface
Returns all non-deleted nodes with a MAC address like the rule given from SnmpInterface.- Specified by:
getNodesWithPhysAddrFromSnmpInterface
in interfaceNetworkElementFactoryInterface
- Parameters:
macAddr
-- Returns:
- a list of @{OnmsNode}s
-
getNodesWithIfAlias
public List<OnmsNode> getNodesWithIfAlias(String ifAlias)
Description copied from interface:NetworkElementFactoryInterface
Returns all non-deleted nodes that contain the given string in an ifAlias- Specified by:
getNodesWithIfAlias
in interfaceNetworkElementFactoryInterface
- Parameters:
ifAlias
- aString
object.- Returns:
- nodes the nodes with a matching ifAlias on one or more interfaces
-
getHostname
public String getHostname(String ipAddress)
Description copied from interface:NetworkElementFactoryInterface
Resolve an IP address to a DNS hostname via the database. If no hostname can be found, the given IP address is returned.- Specified by:
getHostname
in interfaceNetworkElementFactoryInterface
- Parameters:
ipAddress
- aString
object.- Returns:
- a
String
object.
-
getIfIndex
public Integer getIfIndex(int ipinterfaceid)
- Specified by:
getIfIndex
in interfaceNetworkElementFactoryInterface
-
getIfIndex
public Integer getIfIndex(int nodeID, String ipaddr)
- Specified by:
getIfIndex
in interfaceNetworkElementFactoryInterface
-
getInterface
public Interface getInterface(int ipInterfaceId)
Description copied from interface:NetworkElementFactoryInterface
getInterface
- Specified by:
getInterface
in interfaceNetworkElementFactoryInterface
- Parameters:
ipInterfaceId
- a int.- Returns:
- a
Interface
object.
-
getInterface
public Interface getInterface(int nodeId, String ipAddress)
Description copied from interface:NetworkElementFactoryInterface
getInterface
- Specified by:
getInterface
in interfaceNetworkElementFactoryInterface
- Parameters:
nodeId
- a int.ipAddress
- aString
object.- Returns:
- a
Interface
object.
-
getInterface
public Interface getInterface(int nodeId, String ipAddress, int ifIndex)
Description copied from interface:NetworkElementFactoryInterface
getInterface
- Specified by:
getInterface
in interfaceNetworkElementFactoryInterface
- Parameters:
nodeId
- a int.ipAddress
- aString
object.- Returns:
- a
Interface
object.
-
getSnmpInterface
public Interface getSnmpInterface(int nodeId, int ifIndex)
Description copied from interface:NetworkElementFactoryInterface
Get interface from snmpinterface table. Intended for use with non-ip interfaces.- Specified by:
getSnmpInterface
in interfaceNetworkElementFactoryInterface
- Parameters:
nodeId
- a int.ifIndex
- a int.- Returns:
- Interface
-
getInterfacesWithIpAddress
public Interface[] getInterfacesWithIpAddress(String ipAddress)
Description copied from interface:NetworkElementFactoryInterface
getInterfacesWithIpAddress
- Specified by:
getInterfacesWithIpAddress
in interfaceNetworkElementFactoryInterface
- Parameters:
ipAddress
- aString
object.- Returns:
- an array of
Interface
objects.
-
getInterfacesWithIfAlias
public Interface[] getInterfacesWithIfAlias(int nodeId, String ifAlias)
- Specified by:
getInterfacesWithIfAlias
in interfaceNetworkElementFactoryInterface
-
getAllInterfacesOnNode
public Interface[] getAllInterfacesOnNode(int nodeId)
Description copied from interface:NetworkElementFactoryInterface
getAllInterfacesOnNode
- Specified by:
getAllInterfacesOnNode
in interfaceNetworkElementFactoryInterface
- Parameters:
nodeId
- a int.- Returns:
- an array of
Interface
objects.
-
getAllSnmpInterfacesOnNode
public Interface[] getAllSnmpInterfacesOnNode(int nodeId)
Description copied from interface:NetworkElementFactoryInterface
Returns all SNMP interfaces on a node- Specified by:
getAllSnmpInterfacesOnNode
in interfaceNetworkElementFactoryInterface
- Parameters:
nodeId
- a int.- Returns:
- Interface[]
-
getActiveInterfacesOnNode
public Interface[] getActiveInterfacesOnNode(int nodeId)
Description copied from interface:NetworkElementFactoryInterface
getActiveInterfacesOnNode
- Specified by:
getActiveInterfacesOnNode
in interfaceNetworkElementFactoryInterface
- Parameters:
nodeId
- a int.- Returns:
- an array of
Interface
objects.
-
getAllInterfaces
public Interface[] getAllInterfaces()
Description copied from interface:NetworkElementFactoryInterface
getAllInterfaces
- Specified by:
getAllInterfaces
in interfaceNetworkElementFactoryInterface
- Returns:
- an array of
Interface
objects.
-
getAllInterfaces
public Interface[] getAllInterfaces(boolean includeSnmp)
- Specified by:
getAllInterfaces
in interfaceNetworkElementFactoryInterface
-
getAllManagedIpInterfaces
public Interface[] getAllManagedIpInterfaces(boolean includeSNMP)
Description copied from interface:NetworkElementFactoryInterface
getAllManagedIpInterfaces
- Specified by:
getAllManagedIpInterfaces
in interfaceNetworkElementFactoryInterface
- Parameters:
includeSNMP
- a boolean.- Returns:
- an array of
Interface
objects.
-
getAllManagedIpInterfacesLike
public Interface[] getAllManagedIpInterfacesLike(String ipHost)
Description copied from interface:NetworkElementFactoryInterface
Returns all managed interfaces that matches the ipHost String to either the ipHost or ipAddress field.- Specified by:
getAllManagedIpInterfacesLike
in interfaceNetworkElementFactoryInterface
- Returns:
- an arrau of
Interface
objects
-
getService
public Service getService(int nodeId, String ipAddress, int serviceId)
Description copied from interface:NetworkElementFactoryInterface
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.
- Specified by:
getService
in interfaceNetworkElementFactoryInterface
- Parameters:
nodeId
- a int.ipAddress
- aString
object.serviceId
- a int.- Returns:
- a
Service
object.
-
getService
public Service getService(int ifServiceId)
Description copied from interface:NetworkElementFactoryInterface
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.
- Specified by:
getService
in interfaceNetworkElementFactoryInterface
- Parameters:
ifServiceId
- a int.- Returns:
- a
Service
object.
-
getAllServices
public Service[] getAllServices()
Description copied from interface:NetworkElementFactoryInterface
getAllServices
- Specified by:
getAllServices
in interfaceNetworkElementFactoryInterface
- Returns:
- an array of
Service
objects.
-
getServicesOnInterface
public Service[] getServicesOnInterface(int nodeId, String ipAddress)
Description copied from interface:NetworkElementFactoryInterface
getServicesOnInterface
- Specified by:
getServicesOnInterface
in interfaceNetworkElementFactoryInterface
- Parameters:
nodeId
- a int.ipAddress
- aString
object.- Returns:
- an array of
Service
objects.
-
getServicesOnInterface
public Service[] getServicesOnInterface(int nodeId, String ipAddress, boolean includeDeletions)
Description copied from interface:NetworkElementFactoryInterface
getServicesOnInterface
- Specified by:
getServicesOnInterface
in interfaceNetworkElementFactoryInterface
- Parameters:
nodeId
- a int.ipAddress
- aString
object.includeDeletions
- a boolean.- Returns:
- an array of
Service
objects.
-
getServicesOnNode
public Service[] getServicesOnNode(int nodeId)
Description copied from interface:NetworkElementFactoryInterface
Get the list of all services on a given node.- Specified by:
getServicesOnNode
in interfaceNetworkElementFactoryInterface
- Parameters:
nodeId
- a int.- Returns:
- an array of
Service
objects.
-
getServicesOnNode
public Service[] getServicesOnNode(int nodeId, int serviceId)
Description copied from interface:NetworkElementFactoryInterface
Get the list of all instances of a specific service on a given node.- Specified by:
getServicesOnNode
in interfaceNetworkElementFactoryInterface
- Parameters:
nodeId
- a int.serviceId
- a int.- Returns:
- an array of
Service
objects.
-
getServiceNameFromId
public String getServiceNameFromId(int serviceId)
Description copied from interface:NetworkElementFactoryInterface
getServiceNameFromId
- Specified by:
getServiceNameFromId
in interfaceNetworkElementFactoryInterface
- Parameters:
serviceId
- a int.- Returns:
- a
String
object.
-
getServiceIdFromName
public int getServiceIdFromName(String serviceName)
Description copied from interface:NetworkElementFactoryInterface
getServiceIdFromName
- Specified by:
getServiceIdFromName
in interfaceNetworkElementFactoryInterface
- Parameters:
serviceName
- aString
object.- Returns:
- a int.
-
getServiceIdToNameMap
public Map<Integer,String> getServiceIdToNameMap()
Description copied from interface:NetworkElementFactoryInterface
getServiceIdToNameMap
- Specified by:
getServiceIdToNameMap
in interfaceNetworkElementFactoryInterface
- Returns:
- a java$util$Map object.
-
getServiceNameToIdMap
public Map<String,Integer> getServiceNameToIdMap()
Description copied from interface:NetworkElementFactoryInterface
getServiceNameToIdMap
- Specified by:
getServiceNameToIdMap
in interfaceNetworkElementFactoryInterface
- Returns:
- a java$util$Map object.
-
getNodesLikeAndIpLike
public List<OnmsNode> getNodesLikeAndIpLike(String nodeLabel, String iplike, int serviceId)
Description copied from interface:NetworkElementFactoryInterface
getNodesLikeAndIpLike
- Specified by:
getNodesLikeAndIpLike
in interfaceNetworkElementFactoryInterface
- Parameters:
nodeLabel
- aString
object.iplike
- aString
object.serviceId
- a int.- Returns:
- an array of
OnmsNode
objects.
-
getNodesLike
public List<OnmsNode> getNodesLike(String nodeLabel, int serviceId)
Description copied from interface:NetworkElementFactoryInterface
getNodesLike
- Specified by:
getNodesLike
in interfaceNetworkElementFactoryInterface
- Parameters:
nodeLabel
- aString
object.serviceId
- a int.- Returns:
- an array of
OnmsNode
objects.
-
getNodesWithIpLike
public List<OnmsNode> getNodesWithIpLike(String iplike, int serviceId)
Description copied from interface:NetworkElementFactoryInterface
getNodesWithIpLike
- Specified by:
getNodesWithIpLike
in interfaceNetworkElementFactoryInterface
- Parameters:
iplike
- aString
object.serviceId
- a int.- Returns:
- an array of
OnmsNode
objects.
-
getAllNodes
public List<OnmsNode> getAllNodes(int serviceId)
Description copied from interface:NetworkElementFactoryInterface
getAllNodes
- Specified by:
getAllNodes
in interfaceNetworkElementFactoryInterface
- Parameters:
serviceId
- a int.- Returns:
- an array of
OnmsNode
objects.
-
getNodesFromPhysaddr
public List<OnmsNode> getNodesFromPhysaddr(String physAddr)
Description copied from interface:NetworkElementFactoryInterface
getNodesFromPhysaddr
- Specified by:
getNodesFromPhysaddr
in interfaceNetworkElementFactoryInterface
- Parameters:
physAddr
- aString
object.- Returns:
- an array of
OnmsNode
objects.
-
getNodeIdsWithIpLike
public List<Integer> getNodeIdsWithIpLike(String iplike)
Description copied from interface:NetworkElementFactoryInterface
Returns all non-deleted nodes with an IP address like the rule given.- Specified by:
getNodeIdsWithIpLike
in interfaceNetworkElementFactoryInterface
- Parameters:
iplike
- aString
object.- Returns:
- a
List
object.
-
getNodesWithCategories
public List<OnmsNode> getNodesWithCategories(String[] categories, boolean onlyNodesWithDownAggregateStatus)
Description copied from interface:NetworkElementFactoryInterface
getNodesWithCategories
- Specified by:
getNodesWithCategories
in interfaceNetworkElementFactoryInterface
onlyNodesWithDownAggregateStatus
- a boolean.- Returns:
- an array of
OnmsNode
objects.
-
getNodesWithCategories
public List<OnmsNode> getNodesWithCategories(String[] categories1, String[] categories2, boolean onlyNodesWithDownAggregateStatus)
Description copied from interface:NetworkElementFactoryInterface
getNodesWithCategories
- Specified by:
getNodesWithCategories
in interfaceNetworkElementFactoryInterface
- Parameters:
categories1
- an array ofString
objects.categories2
- an array ofString
objects.onlyNodesWithDownAggregateStatus
- a boolean.- Returns:
- an array of
OnmsNode
objects.
-
getMonitoringLocations
public List<OnmsMonitoringLocation> getMonitoringLocations()
- Specified by:
getMonitoringLocations
in interfaceNetworkElementFactoryInterface
-
getMonitoringSystems
public List<OnmsMonitoringSystem> getMonitoringSystems()
- Specified by:
getMonitoringSystems
in interfaceNetworkElementFactoryInterface
-
nodeExistsInRequisition
public boolean nodeExistsInRequisition(String foreignSource, String foreignId)
- Specified by:
nodeExistsInRequisition
in interfaceNetworkElementFactoryInterface
-
getCategories
public List<String> getCategories()
- Specified by:
getCategories
in interfaceNetworkElementFactoryInterface
-
currentOutagesForServiceFromPerspectivePoller
public Collection<OnmsOutage> currentOutagesForServiceFromPerspectivePoller(OnmsMonitoredService service)
Description copied from interface:NetworkElementFactoryInterface
Return all current open outages for the given service be it detected from local or from perspective.- Specified by:
currentOutagesForServiceFromPerspectivePoller
in interfaceNetworkElementFactoryInterface
-
getAllApplications
public List<OnmsApplication> getAllApplications()
- Specified by:
getAllApplications
in interfaceNetworkElementFactoryInterface
-
getApplicationStatus
public ApplicationStatus getApplicationStatus(OnmsApplication onmsApplication, long start, long end)
- Specified by:
getApplicationStatus
in interfaceNetworkElementFactoryInterface
-
getApplicationServiceStatus
public Map<OnmsMonitoredService,Map<String,Double>> getApplicationServiceStatus(OnmsApplication onmsApplication, long start, long end)
- Specified by:
getApplicationServiceStatus
in interfaceNetworkElementFactoryInterface
-
getScopeForNode
public Scope getScopeForNode(Integer nodeId)
- Specified by:
getScopeForNode
in interfaceNetworkElementFactoryInterface
-
getScopeForInterface
public Scope getScopeForInterface(Integer nodeId, String ipAddress)
- Specified by:
getScopeForInterface
in interfaceNetworkElementFactoryInterface
-
getScopeForService
public Scope getScopeForService(Integer nodeId, InetAddress ipAddress, String serviceName)
- Specified by:
getScopeForService
in interfaceNetworkElementFactoryInterface
-
-