|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.model.OnmsEntity
org.opennms.netmgt.model.OnmsNode
public class OnmsNode
Contains information on nodes discovered and potentially managed by OpenNMS. sys* properties map to SNMP MIB 2 system table information.
| Constructor Summary | |
|---|---|
OnmsNode()
Constructor for OnmsNode. |
|
OnmsNode(OnmsDistPoller distPoller)
Constructor for OnmsNode. |
|
| Method Summary | |
|---|---|
void |
addArpInterface(OnmsArpInterface iface)
addArpInterface |
boolean |
addCategory(OnmsCategory category)
addCategory |
void |
addIpInterface(OnmsIpInterface iface)
addIpInterface |
void |
addSnmpInterface(OnmsSnmpInterface snmpIface)
addSnmpInterface |
int |
compareTo(OnmsNode o)
compareTo |
Set<OnmsArpInterface> |
getArpInterfaces()
The arp interfaces on this node |
OnmsAssetRecord |
getAssetRecord()
The assert record associated with this node |
Set<OnmsCategory> |
getCategories()
getCategories |
Date |
getCreateTime()
Time node was added to the database. |
OnmsIpInterface |
getCriticalInterface()
getCriticalInterface |
OnmsDistPoller |
getDistPoller()
Distributed Poller responsible for this node |
String |
getForeignId()
getForeignId |
String |
getForeignSource()
getForeignSource |
Integer |
getId()
Unique identifier for node. |
OnmsIpInterface |
getInterfaceWithService(String svcName)
getInterfaceWithService |
OnmsIpInterface |
getIpInterfaceByIpAddress(String ipAddress)
getIpInterfaceByIpAddress |
Set<OnmsIpInterface> |
getIpInterfaces()
The interfaces on this node |
String |
getLabel()
User-friendly name associated with the node. |
String |
getLabelSource()
Flag indicating source of nodeLabel - 'U' = user defined - 'H' = IP hostname - 'S' = sysName - 'A' = IP address TODO: change this to an enum |
Date |
getLastCapsdPoll()
Date and time of last Capsd scan. |
String |
getNetBiosDomain()
NetBIOS domain name associated with the node. |
String |
getNetBiosName()
NetBIOS workstation name associated with the node. |
String |
getNodeId()
getNodeId |
String |
getOperatingSystem()
Operating system running on the node. |
OnmsNode |
getParent()
In the case that the node is virtual or an independent device in a chassis that should be reflected as a subcomponent or "child", this field reflects the nodeID of the chassis/physical node/"parent" device. |
PathElement |
getPathElement()
getPathElement |
OnmsIpInterface |
getPrimaryInterface()
getPrimaryInterface |
Set<OnmsSnmpInterface> |
getSnmpInterfaces()
The information from the SNMP interfaces/ipAddrTables for the node |
OnmsSnmpInterface |
getSnmpInterfaceWithIfIndex(int ifIndex)
getSnmpInterfaceWithIfIndex |
String |
getSysContact()
SNMP MIB-2 system.sysContact.0 |
String |
getSysDescription()
SNMP MIB-2 system.sysDescr.0 |
String |
getSysLocation()
SNMP MIB-2 system.sysLocation.0 |
String |
getSysName()
SNMP MIB-2 system.sysName.0 |
String |
getSysObjectId()
SNMP MIB-2 system.sysObjectID.0 |
String |
getType()
Flag indicating status of node - 'A' - active - 'D' - deleted TODO: Eventually this will be deprecated and deleted nodes will actually be deleted. |
boolean |
hasCategory(String categoryName)
hasCategory |
boolean |
isDown()
isDown |
void |
mergeAdditionalCategories(OnmsNode scannedNode)
mergeAdditionalCategories |
void |
mergeAgentAttributes(OnmsNode scannedNode)
mergeAgentAttributes |
void |
mergeAssets(OnmsNode scannedNode)
Truly merges the node's assert record |
void |
mergeCategorySet(OnmsNode scannedNode)
mergeCategorySet |
void |
mergeIpInterfaces(OnmsNode scannedNode,
EventForwarder eventForwarder,
boolean deleteMissing)
mergeIpInterfaces |
void |
mergeNode(OnmsNode scannedNode,
EventForwarder eventForwarder,
boolean deleteMissing)
mergeNode |
void |
mergeNodeAttributes(OnmsNode scannedNode)
mergeNodeAttributes |
void |
mergeSnmpInterfaces(OnmsNode scannedNode,
boolean deleteMissing)
mergeSnmpInterfaces |
boolean |
removeCategory(OnmsCategory category)
removeCategory |
void |
replaceCurrentAssetRecord(OnmsNode scannedNode)
Simply replaces the current asset record with the new record |
void |
setArpInterfaces(Set<OnmsArpInterface> arpInterfaces)
setArpInterfaces |
void |
setAssetRecord(OnmsAssetRecord asset)
setAssetRecord |
void |
setCategories(Set<OnmsCategory> categories)
setCategories |
void |
setCreateTime(Date nodecreatetime)
setCreateTime |
void |
setDistPoller(OnmsDistPoller distpoller)
setDistPoller |
void |
setForeignId(String foreignId)
setForeignId |
void |
setForeignSource(String foreignSource)
setForeignSource |
void |
setId(Integer nodeid)
setId |
void |
setIpInterfaces(Set<OnmsIpInterface> ipinterfaces)
setIpInterfaces |
void |
setLabel(String nodelabel)
setLabel |
void |
setLabelSource(String nodelabelsource)
setLabelSource |
void |
setLastCapsdPoll(Date lastcapsdpoll)
setLastCapsdPoll |
void |
setNetBiosDomain(String nodedomainname)
setNetBiosDomain |
void |
setNetBiosName(String nodenetbiosname)
setNetBiosName |
void |
setNodeId(String nodeid)
setNodeId |
void |
setOperatingSystem(String operatingsystem)
setOperatingSystem |
void |
setParent(OnmsNode parent)
setParent |
void |
setPathElement(PathElement pathElement)
setPathElement |
void |
setSnmpInterfaces(Set<OnmsSnmpInterface> snmpinterfaces)
setSnmpInterfaces |
void |
setSysContact(String nodesyscontact)
setSysContact |
void |
setSysDescription(String nodesysdescription)
setSysDescription |
void |
setSysLocation(String nodesyslocation)
setSysLocation |
void |
setSysName(String nodesysname)
setSysName |
void |
setSysObjectId(String nodesysoid)
setSysObjectId |
void |
setType(String nodetype)
setType |
String |
toString()
toString |
void |
visit(EntityVisitor visitor)
visit |
| Methods inherited from class org.opennms.netmgt.model.OnmsEntity |
|---|
hasNewValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OnmsNode()
Constructor for OnmsNode.
public OnmsNode(OnmsDistPoller distPoller)
Constructor for OnmsNode.
distPoller - a OnmsDistPoller object.| Method Detail |
|---|
public Integer getId()
Integer object.public String getNodeId()
getNodeId
String object.public void setId(Integer nodeid)
setId
nodeid - a Integer object.public void setNodeId(String nodeid)
setNodeId
nodeid - a String object.public Date getCreateTime()
Date object.public void setCreateTime(Date nodecreatetime)
setCreateTime
nodecreatetime - a Date object.public OnmsNode getParent()
OnmsNode object.public void setParent(OnmsNode parent)
setParent
parent - a OnmsNode object.public String getType()
String object.public void setType(String nodetype)
setType
nodetype - a String object.public String getSysObjectId()
String object.public void setSysObjectId(String nodesysoid)
setSysObjectId
nodesysoid - a String object.public String getSysName()
String object.public void setSysName(String nodesysname)
setSysName
nodesysname - a String object.public String getSysDescription()
String object.public void setSysDescription(String nodesysdescription)
setSysDescription
nodesysdescription - a String object.public String getSysLocation()
String object.public void setSysLocation(String nodesyslocation)
setSysLocation
nodesyslocation - a String object.public String getSysContact()
String object.public void setSysContact(String nodesyscontact)
setSysContact
nodesyscontact - a String object.public String getLabel()
String object.public void setLabel(String nodelabel)
setLabel
nodelabel - a String object.public String getLabelSource()
String object.public void setLabelSource(String nodelabelsource)
setLabelSource
nodelabelsource - a String object.public String getNetBiosName()
String object.public void setNetBiosName(String nodenetbiosname)
setNetBiosName
nodenetbiosname - a String object.public String getNetBiosDomain()
String object.public void setNetBiosDomain(String nodedomainname)
setNetBiosDomain
nodedomainname - a String object.public String getOperatingSystem()
String object.public void setOperatingSystem(String operatingsystem)
setOperatingSystem
operatingsystem - a String object.public Date getLastCapsdPoll()
Date object.public void setLastCapsdPoll(Date lastcapsdpoll)
setLastCapsdPoll
lastcapsdpoll - a Date object.public String getForeignId()
getForeignId
String object.public void setForeignId(String foreignId)
setForeignId
foreignId - a String object.public String getForeignSource()
getForeignSource
String object.public void setForeignSource(String foreignSource)
setForeignSource
foreignSource - a String object.public OnmsDistPoller getDistPoller()
OnmsDistPoller object.public void setDistPoller(OnmsDistPoller distpoller)
setDistPoller
distpoller - a OnmsDistPoller object.public OnmsAssetRecord getAssetRecord()
OnmsAssetRecord object.public void setAssetRecord(OnmsAssetRecord asset)
setAssetRecord
asset - a OnmsAssetRecord object.public PathElement getPathElement()
getPathElement
PathElement object.public void setPathElement(PathElement pathElement)
setPathElement
pathElement - a PathElement object.public Set<OnmsIpInterface> getIpInterfaces()
Set object.public void setIpInterfaces(Set<OnmsIpInterface> ipinterfaces)
setIpInterfaces
ipinterfaces - a Set object.public void addIpInterface(OnmsIpInterface iface)
addIpInterface
iface - a OnmsIpInterface object.public Set<OnmsSnmpInterface> getSnmpInterfaces()
Set object.public void setSnmpInterfaces(Set<OnmsSnmpInterface> snmpinterfaces)
setSnmpInterfaces
snmpinterfaces - a Set object.public Set<OnmsArpInterface> getArpInterfaces()
Set object.public void setArpInterfaces(Set<OnmsArpInterface> arpInterfaces)
setArpInterfaces
arpInterfaces - a Set object.public void addArpInterface(OnmsArpInterface iface)
addArpInterface
iface - a OnmsArpInterface object.public Set<OnmsCategory> getCategories()
getCategories
Set object.public void setCategories(Set<OnmsCategory> categories)
setCategories
categories - a Set object.public boolean addCategory(OnmsCategory category)
addCategory
category - a OnmsCategory object.
public boolean removeCategory(OnmsCategory category)
removeCategory
category - a OnmsCategory object.
public boolean hasCategory(String categoryName)
hasCategory
categoryName - a String object.
public String toString()
toString
toString in class ObjectString object.public void visit(EntityVisitor visitor)
visit
visit in class OnmsEntityvisitor - a EntityVisitor object.public void addSnmpInterface(OnmsSnmpInterface snmpIface)
addSnmpInterface
snmpIface - a OnmsSnmpInterface object.public boolean isDown()
isDown
public OnmsSnmpInterface getSnmpInterfaceWithIfIndex(int ifIndex)
getSnmpInterfaceWithIfIndex
ifIndex - a int.
OnmsSnmpInterface object.public OnmsIpInterface getIpInterfaceByIpAddress(String ipAddress)
getIpInterfaceByIpAddress
ipAddress - a String object.
OnmsIpInterface object.public int compareTo(OnmsNode o)
compareTo
compareTo in interface Comparable<OnmsNode>o - a OnmsNode object.
public OnmsIpInterface getPrimaryInterface()
getPrimaryInterface
OnmsIpInterface object.public OnmsIpInterface getInterfaceWithService(String svcName)
getInterfaceWithService
svcName - a String object.
OnmsIpInterface object.public OnmsIpInterface getCriticalInterface()
getCriticalInterface
OnmsIpInterface object.public void mergeAgentAttributes(OnmsNode scannedNode)
mergeAgentAttributes
scannedNode - a OnmsNode object.public void mergeNodeAttributes(OnmsNode scannedNode)
mergeNodeAttributes
scannedNode - a OnmsNode object.public void mergeAdditionalCategories(OnmsNode scannedNode)
mergeAdditionalCategories
scannedNode - a OnmsNode object.
public void mergeSnmpInterfaces(OnmsNode scannedNode,
boolean deleteMissing)
mergeSnmpInterfaces
scannedNode - a OnmsNode object.deleteMissing - a boolean.
public void mergeIpInterfaces(OnmsNode scannedNode,
EventForwarder eventForwarder,
boolean deleteMissing)
mergeIpInterfaces
scannedNode - a OnmsNode object.eventForwarder - a EventForwarder object.deleteMissing - a boolean.public void mergeCategorySet(OnmsNode scannedNode)
mergeCategorySet
scannedNode - a OnmsNode object.public void mergeAssets(OnmsNode scannedNode)
scannedNode - a OnmsNode object.public void replaceCurrentAssetRecord(OnmsNode scannedNode)
scannedNode - a OnmsNode object.
public void mergeNode(OnmsNode scannedNode,
EventForwarder eventForwarder,
boolean deleteMissing)
mergeNode
scannedNode - a OnmsNode object.eventForwarder - a EventForwarder object.deleteMissing - a boolean.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||