org.opennms.netmgt.model
Class OnmsIpInterface
java.lang.Object
org.opennms.netmgt.model.OnmsEntity
org.opennms.netmgt.model.OnmsIpInterface
- All Implemented Interfaces:
- Serializable
public class OnmsIpInterface
- extends OnmsEntity
- implements Serializable
- See Also:
- Serialized Form
OnmsIpInterface
public OnmsIpInterface()
OnmsIpInterface
public OnmsIpInterface(String ipAddr,
OnmsNode node)
- minimal constructor
getId
public Integer getId()
- Unique identifier for ipInterface.
getInterfaceId
public String getInterfaceId()
setId
public void setId(Integer id)
getIpAddress
public String getIpAddress()
setIpAddress
public void setIpAddress(String ipaddr)
getIfIndex
public Integer getIfIndex()
setIfIndex
public void setIfIndex(Integer ifindex)
getIpHostName
public String getIpHostName()
setIpHostName
public void setIpHostName(String iphostname)
getIsManaged
public String getIsManaged()
setIsManaged
public void setIsManaged(String ismanaged)
isManaged
public boolean isManaged()
getIpLastCapsdPoll
public Date getIpLastCapsdPoll()
setIpLastCapsdPoll
public void setIpLastCapsdPoll(Date iplastcapsdpoll)
getIsSnmpPrimary
public OnmsIpInterface.PrimaryType getIsSnmpPrimary()
setIsSnmpPrimary
public void setIsSnmpPrimary(OnmsIpInterface.PrimaryType issnmpprimary)
getNode
public OnmsNode getNode()
setNode
public void setNode(OnmsNode node)
getMonitoredServices
public Set<OnmsMonitoredService> getMonitoredServices()
- The services on this node
setMonitoredServices
public void setMonitoredServices(Set<OnmsMonitoredService> ifServices)
getSnmpInterface
public OnmsSnmpInterface getSnmpInterface()
- The SnmpInterface associated with this interface if any
setSnmpInterface
public void setSnmpInterface(OnmsSnmpInterface snmpInterface)
toString
public String toString()
- Overrides:
toString in class Object
visit
public void visit(EntityVisitor visitor)
- Specified by:
visit in class OnmsEntity
getInetAddress
public InetAddress getInetAddress()
isDown
public boolean isDown()
getMonitoredServiceByServiceType
public OnmsMonitoredService getMonitoredServiceByServiceType(String svcName)
mergeInterfaceAttributes
public void mergeInterfaceAttributes(OnmsIpInterface scannedIface)
hasNewCollectionTypeValue
protected static boolean hasNewCollectionTypeValue(OnmsIpInterface.PrimaryType newVal,
OnmsIpInterface.PrimaryType existingVal)
mergeMonitoredServices
public void mergeMonitoredServices(OnmsIpInterface scannedIface,
EventForwarder eventForwarder,
boolean deleteMissing)
updateSnmpInterface
public void updateSnmpInterface(OnmsIpInterface scannedIface)
mergeInterface
public void mergeInterface(OnmsIpInterface scannedIface,
EventForwarder eventForwarder,
boolean deleteMissing)
Copyright © 2009. All Rights Reserved.