|
|||||||||
| 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()
|
|
OnmsNode(OnmsDistPoller distPoller)
|
|
| Method Summary | |
|---|---|
void |
addArpInterface(OnmsArpInterface iface)
|
boolean |
addCategory(OnmsCategory category)
|
void |
addIpInterface(OnmsIpInterface iface)
|
void |
addSnmpInterface(OnmsSnmpInterface snmpIface)
|
int |
compareTo(OnmsNode o)
|
Set<OnmsArpInterface> |
getArpInterfaces()
The arp interfaces on this node |
OnmsAssetRecord |
getAssetRecord()
The assert record associated with this node |
Set<OnmsCategory> |
getCategories()
|
Date |
getCreateTime()
Time node was added to the database. |
OnmsDistPoller |
getDistPoller()
Distributed Poller responsible for this node |
String |
getForeignId()
|
String |
getForeignSource()
|
Integer |
getId()
Unique identifier for node. |
OnmsIpInterface |
getInterfaceWithService(String svcName)
|
OnmsIpInterface |
getIpInterfaceByIpAddress(String ipAddress)
|
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 damain name associated with the node. |
String |
getNetBiosName()
NetBIOS workstation name associated with the node. |
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()
|
OnmsIpInterface |
getPrimaryInterface()
|
Set<OnmsSnmpInterface> |
getSnmpInterfaces()
The information from the SNMP interfaces/ipAddrTables for the node |
OnmsSnmpInterface |
getSnmpInterfaceWithIfIndex(int ifIndex)
|
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 |
isDown()
|
boolean |
removeCategory(OnmsCategory category)
|
void |
setArpInterfaces(Set<OnmsArpInterface> arpInterfaces)
|
void |
setAssetRecord(OnmsAssetRecord asset)
|
void |
setCategories(Set<OnmsCategory> categories)
|
void |
setCreateTime(Date nodecreatetime)
|
void |
setDistPoller(OnmsDistPoller distpoller)
|
void |
setForeignId(String foreignId)
|
void |
setForeignSource(String foreignSource)
|
void |
setId(Integer nodeid)
|
void |
setIpInterfaces(Set<OnmsIpInterface> ipinterfaces)
|
void |
setLabel(String nodelabel)
|
void |
setLabelSource(String nodelabelsource)
|
void |
setLastCapsdPoll(Date lastcapsdpoll)
|
void |
setNetBiosDomain(String nodedomainname)
|
void |
setNetBiosName(String nodenetbiosname)
|
void |
setOperatingSystem(String operatingsystem)
|
void |
setParent(OnmsNode parent)
|
void |
setPathElement(PathElement pathElement)
|
void |
setSnmpInterfaces(Set<OnmsSnmpInterface> snmpinterfaces)
|
void |
setSysContact(String nodesyscontact)
|
void |
setSysDescription(String nodesysdescription)
|
void |
setSysLocation(String nodesyslocation)
|
void |
setSysName(String nodesysname)
|
void |
setSysObjectId(String nodesysoid)
|
void |
setType(String nodetype)
|
String |
toString()
|
void |
visit(EntityVisitor visitor)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OnmsNode()
public OnmsNode(OnmsDistPoller distPoller)
| Method Detail |
|---|
public Integer getId()
public void setId(Integer nodeid)
public Date getCreateTime()
public void setCreateTime(Date nodecreatetime)
public OnmsNode getParent()
public void setParent(OnmsNode parent)
public String getType()
public void setType(String nodetype)
public String getSysObjectId()
public void setSysObjectId(String nodesysoid)
public String getSysName()
public void setSysName(String nodesysname)
public String getSysDescription()
public void setSysDescription(String nodesysdescription)
public String getSysLocation()
public void setSysLocation(String nodesyslocation)
public String getSysContact()
public void setSysContact(String nodesyscontact)
public String getLabel()
public void setLabel(String nodelabel)
public String getLabelSource()
public void setLabelSource(String nodelabelsource)
public String getNetBiosName()
public void setNetBiosName(String nodenetbiosname)
public String getNetBiosDomain()
public void setNetBiosDomain(String nodedomainname)
public String getOperatingSystem()
public void setOperatingSystem(String operatingsystem)
public Date getLastCapsdPoll()
public void setLastCapsdPoll(Date lastcapsdpoll)
public String getForeignId()
public void setForeignId(String foreignId)
public String getForeignSource()
public void setForeignSource(String foreignSource)
public OnmsDistPoller getDistPoller()
public void setDistPoller(OnmsDistPoller distpoller)
public OnmsAssetRecord getAssetRecord()
public void setAssetRecord(OnmsAssetRecord asset)
public PathElement getPathElement()
public void setPathElement(PathElement pathElement)
public Set<OnmsIpInterface> getIpInterfaces()
public void setIpInterfaces(Set<OnmsIpInterface> ipinterfaces)
public void addIpInterface(OnmsIpInterface iface)
public Set<OnmsSnmpInterface> getSnmpInterfaces()
public void setSnmpInterfaces(Set<OnmsSnmpInterface> snmpinterfaces)
public Set<OnmsArpInterface> getArpInterfaces()
public void setArpInterfaces(Set<OnmsArpInterface> arpInterfaces)
public void addArpInterface(OnmsArpInterface iface)
public Set<OnmsCategory> getCategories()
public void setCategories(Set<OnmsCategory> categories)
public boolean addCategory(OnmsCategory category)
public boolean removeCategory(OnmsCategory category)
public String toString()
toString in class Objectpublic void visit(EntityVisitor visitor)
visit in class OnmsEntitypublic void addSnmpInterface(OnmsSnmpInterface snmpIface)
public boolean isDown()
public OnmsSnmpInterface getSnmpInterfaceWithIfIndex(int ifIndex)
public OnmsIpInterface getIpInterfaceByIpAddress(String ipAddress)
public int compareTo(OnmsNode o)
compareTo in interface Comparable<OnmsNode>public OnmsIpInterface getPrimaryInterface()
public OnmsIpInterface getInterfaceWithService(String svcName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||