public interface NetworkElementFactoryInterface
Modifier and Type | Method and Description |
---|---|
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)
getActiveInterfacesOnNode
|
List<OnmsApplication> |
getAllApplications() |
Interface[] |
getAllInterfaces()
getAllInterfaces
|
Interface[] |
getAllInterfaces(boolean includeSnmp) |
Interface[] |
getAllInterfacesOnNode(int nodeId)
getAllInterfacesOnNode
|
Interface[] |
getAllManagedIpInterfaces(boolean includeSNMP)
getAllManagedIpInterfaces
|
Interface[] |
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)
getAllNodes
|
Service[] |
getAllServices()
getAllServices
|
Interface[] |
getAllSnmpInterfacesOnNode(int nodeId)
Returns all SNMP interfaces on a node
|
Map<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) |
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
|
String |
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 ID
|
OnmsNode |
getNode(String lookupCriteria)
Get a node based on it's node ID or foreignSource:foreignId
|
List<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 atPhysAddr)
getNodesFromPhysaddr
|
List<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)
getNodesLike
|
List<OnmsNode> |
getNodesLikeAndIpLike(String nodeLabel,
String iplike,
int serviceId)
getNodesLikeAndIpLike
|
List<OnmsNode> |
getNodesWithCategories(String[] categories,
boolean onlyNodesWithDownAggregateStatus)
getNodesWithCategories
|
List<OnmsNode> |
getNodesWithCategories(String[] categories1,
String[] categories2,
boolean onlyNodesWithDownAggregateStatus)
getNodesWithCategories
|
List<OnmsNode> |
getNodesWithIfAlias(String ifAlias)
Returns all non-deleted nodes that contain the given string in an ifAlias
|
List<OnmsNode> |
getNodesWithIpLike(String iplike) |
List<OnmsNode> |
getNodesWithIpLike(String iplike,
int serviceId)
getNodesWithIpLike
|
List<OnmsNode> |
getNodesWithPhysAddr(String macAddr)
Returns all non-deleted nodes that have the given mac.
|
List<OnmsNode> |
getNodesWithPhysAddrAtInterface(String macAddr)
Returns all non-deleted nodes with a MAC address like the rule given from AtInterface.
|
List<OnmsNode> |
getNodesWithPhysAddrFromSnmpInterface(String macAddr)
Returns all non-deleted nodes with a MAC address like the rule given from SnmpInterface.
|
List<OnmsNode> |
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.
|
boolean |
nodeExistsInRequisition(String foreignSource,
String foreignId) |
String getNodeLabel(int nodeId)
String getNodeLocation(int nodeId)
nodeId
- the node's IDString getIpPrimaryAddress(int nodeId)
nodeId
- an int.OnmsNode getNode(int nodeId)
nodeId
- an intOnmsNode
objectOnmsNode getNode(String lookupCriteria)
lookupCriteria
- the criteria, either the node ID, or a colon-separated string of foreignSource:foreignIdOnmsNode
objectList<OnmsNode> getAllNodes()
OnmsNode
objects.List<OnmsNode> getNodesLike(String nodeLabel)
List<OnmsNode> getNodesWithService(int serviceId)
serviceId
- a int.OnmsNode
objects.List<OnmsNode> getNodesWithPhysAddr(String macAddr)
List<OnmsNode> getNodesWithPhysAddrAtInterface(String macAddr)
List<OnmsNode> getNodesWithPhysAddrFromSnmpInterface(String macAddr)
List<OnmsNode> getNodesWithIfAlias(String ifAlias)
ifAlias
- a String
object.String getHostname(String ipAddress)
Interface getInterface(int ipInterfaceId)
getInterface
ipInterfaceId
- a int.Interface
object.Interface getSnmpInterface(int nodeId, int ifIndex)
nodeId
- a int.ifIndex
- a int.Interface[] getInterfacesWithIpAddress(String ipAddress)
getInterfacesWithIpAddress
Interface[] getAllInterfacesOnNode(int nodeId)
getAllInterfacesOnNode
nodeId
- a int.Interface
objects.Interface[] getAllSnmpInterfacesOnNode(int nodeId)
nodeId
- a int.Interface[] getActiveInterfacesOnNode(int nodeId)
getActiveInterfacesOnNode
nodeId
- a int.Interface
objects.Interface[] getAllInterfaces()
getAllInterfaces
Interface
objects.Interface[] getAllInterfaces(boolean includeSnmp)
Interface[] getAllManagedIpInterfaces(boolean includeSNMP)
getAllManagedIpInterfaces
includeSNMP
- a boolean.Interface
objects.Interface[] getAllManagedIpInterfacesLike(String ipHost)
ipHost
- Interface
objectsService getService(int nodeId, String ipAddress, int serviceId)
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.
Service getService(int ifServiceId)
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.
ifServiceId
- a int.Service
object.Service[] getServicesOnInterface(int nodeId, String ipAddress)
getServicesOnInterface
Service[] getServicesOnInterface(int nodeId, String ipAddress, boolean includeDeletions)
getServicesOnInterface
Service[] getServicesOnNode(int nodeId)
nodeId
- a int.Service
objects.Service[] getServicesOnNode(int nodeId, int serviceId)
nodeId
- a int.serviceId
- a int.Service
objects.String getServiceNameFromId(int serviceId)
getServiceNameFromId
serviceId
- a int.String
object.int getServiceIdFromName(String serviceName)
getServiceIdFromName
serviceName
- a String
object.Map<Integer,String> getServiceIdToNameMap()
getServiceIdToNameMap
Map<String,Integer> getServiceNameToIdMap()
getServiceNameToIdMap
List<OnmsNode> getNodesLikeAndIpLike(String nodeLabel, String iplike, int serviceId)
getNodesLikeAndIpLike
List<OnmsNode> getNodesWithIpLike(String iplike, int serviceId)
getNodesWithIpLike
List<OnmsNode> getAllNodes(int serviceId)
getAllNodes
serviceId
- a int.OnmsNode
objects.List<Integer> getNodeIdsWithIpLike(String iplike)
List<OnmsNode> getNodesWithCategories(String[] categories, boolean onlyNodesWithDownAggregateStatus)
getNodesWithCategories
nodeDao
- a NodeDao
object.categoryDao
- a CategoryDao
object.categories1
- an array of String
objects.onlyNodesWithDownAggregateStatus
- a boolean.OnmsNode
objects.List<OnmsNode> getNodesWithCategories(String[] categories1, String[] categories2, boolean onlyNodesWithDownAggregateStatus)
getNodesWithCategories
nodeDao
- a NodeDao
object.categoryDao
- a CategoryDao
object.categories1
- an array of String
objects.categories2
- an array of String
objects.onlyNodesWithDownAggregateStatus
- a boolean.OnmsNode
objects.Integer getIfIndex(int ipinterfaceid)
List<OnmsMonitoringLocation> getMonitoringLocations()
List<OnmsMonitoringSystem> getMonitoringSystems()
Collection<OnmsOutage> currentOutagesForServiceFromPerspectivePoller(OnmsMonitoredService service)
List<OnmsApplication> getAllApplications()
ApplicationStatus getApplicationStatus(OnmsApplication onmsApplication, long start, long end)
Map<OnmsMonitoredService,Map<String,Double>> getApplicationServiceStatus(OnmsApplication onmsApplication, long start, long end)
Copyright © 2021. All rights reserved.