Class OnmsIpInterface

    • Constructor Detail

      • OnmsIpInterface

        public OnmsIpInterface()

        Constructor for OnmsIpInterface.

      • OnmsIpInterface

        public OnmsIpInterface​(String ipAddr,
                               OnmsNode node)
        Deprecated.
        Use the InetAddress version instead.
        minimal constructor
        Parameters:
        ipAddr - a String object.
        node - a OnmsNode object.
      • OnmsIpInterface

        public OnmsIpInterface​(InetAddress ipAddr,
                               OnmsNode node)
        minimal constructor
        Parameters:
        ipAddr - a String object.
        node - a OnmsNode object.
    • Method Detail

      • getId

        public Integer getId()
        Unique identifier for ipInterface.
        Returns:
        a Integer object.
      • setId

        public void setId​(Integer id)

        setId

        Parameters:
        id - a Integer object.
      • getInterfaceId

        public String getInterfaceId()

        getInterfaceId

        Returns:
        a String object.
      • setInterfaceId

        public void setInterfaceId​(String id)
      • getLastIngressFlow

        public Date getLastIngressFlow()
      • getLastEgressFlow

        public Date getLastEgressFlow()
      • getIpAddressAsString

        public String getIpAddressAsString()
        Deprecated.

        getIpAddress

        Returns:
        a String object.
      • getIfIndex

        public Integer getIfIndex()

        getIfIndex

        Returns:
        a Integer object.
      • setIfIndex

        public void setIfIndex​(Integer ifindex)

        setIfIndex

        Parameters:
        ifindex - a Integer object.
      • getIpHostName

        public String getIpHostName()

        getIpHostName

        Returns:
        a String object.
      • setIpHostName

        public void setIpHostName​(String iphostname)

        setIpHostName

        Parameters:
        iphostname - a String object.
      • getIsManaged

        public String getIsManaged()

        getIsManaged

        Returns:
        a String object.
      • setIsManaged

        public void setIsManaged​(String ismanaged)

        setIsManaged

        Parameters:
        ismanaged - a String object.
      • isManaged

        public boolean isManaged()

        isManaged

        Returns:
        a boolean.
      • getIpLastCapsdPoll

        public Date getIpLastCapsdPoll()

        getIpLastCapsdPoll

        Returns:
        a Date object.
      • setIpLastCapsdPoll

        public void setIpLastCapsdPoll​(Date iplastcapsdpoll)

        setIpLastCapsdPoll

        Parameters:
        iplastcapsdpoll - a Date object.
      • getSnmpPrimary

        public String getSnmpPrimary()
      • setSnmpPrimary

        public void setSnmpPrimary​(String primary)
      • setIsSnmpPrimary

        public void setIsSnmpPrimary​(PrimaryType issnmpprimary)

        setIsSnmpPrimary

        Parameters:
        issnmpprimary - a PrimaryType object.
      • isPrimary

        public boolean isPrimary()

        isPrimary

        Returns:
        a boolean.
      • getRequisitionedMetaData

        public List<OnmsMetaData> getRequisitionedMetaData()
      • setRequisionedMetaData

        public void setRequisionedMetaData​(List<OnmsMetaData> requisitionedMetaData)
      • addRequisionedMetaData

        public void addRequisionedMetaData​(OnmsMetaData onmsMetaData)
      • removeMetaData

        public void removeMetaData​(String context,
                                   String key)
      • removeMetaData

        public void removeMetaData​(String context)
      • setNode

        public void setNode​(OnmsNode node)

        setNode

        Parameters:
        node - a OnmsNode object.
      • getNodeId

        public Integer getNodeId()
      • getMonitoredServices

        public Set<OnmsMonitoredService> getMonitoredServices()
        The services on this interface
        Returns:
        a Set object.
      • setMonitoredServices

        public void setMonitoredServices​(Set<OnmsMonitoredService> ifServices)

        setMonitoredServices

        Parameters:
        ifServices - a Set object.
      • setIpAddress

        public void setIpAddress​(InetAddress ipaddr)

        setInetAddress

        Parameters:
        ipaddr - a String object.
      • setNetMask

        public void setNetMask​(InetAddress netMask)
      • isDown

        public boolean isDown()

        isDown

        Returns:
        a boolean.
      • getMonitoredServiceCount

        public int getMonitoredServiceCount()
      • mergeInterfaceAttributes

        public void mergeInterfaceAttributes​(OnmsIpInterface scannedIface)

        mergeInterfaceAttributes

        Parameters:
        scannedIface - a OnmsIpInterface object.
      • hasNewCollectionTypeValue

        protected static boolean hasNewCollectionTypeValue​(PrimaryType newVal,
                                                           PrimaryType existingVal)

        hasNewCollectionTypeValue

        Parameters:
        newVal - a PrimaryType object.
        existingVal - a PrimaryType object.
        Returns:
        a boolean.
      • mergeMonitoredServices

        public void mergeMonitoredServices​(OnmsIpInterface scannedIface,
                                           EventForwarder eventForwarder,
                                           boolean deleteMissing)

        mergeMonitoredServices

        Parameters:
        scannedIface - a OnmsIpInterface object.
        eventForwarder - a EventForwarder object.
        deleteMissing - a boolean.
      • updateSnmpInterface

        public void updateSnmpInterface​(OnmsIpInterface scannedIface)

        updateSnmpInterface

        Parameters:
        scannedIface - a OnmsIpInterface object.
      • getForeignSource

        public String getForeignSource()
      • getForeignId

        public String getForeignId()