Class OnmsSnmpInterface

    • Field Detail

      • MAX_FLOW_AGE

        public static final int MAX_FLOW_AGE
      • INGRESS_AND_EGRESS_REQUIRED

        public static final boolean INGRESS_AND_EGRESS_REQUIRED
    • Constructor Detail

      • OnmsSnmpInterface

        public OnmsSnmpInterface​(OnmsNode node,
                                 int ifIndex)

        Constructor for OnmsSnmpInterface.

        Parameters:
        node - a OnmsNode object.
        ifIndex - a int.
      • OnmsSnmpInterface

        public OnmsSnmpInterface​(OnmsNode node,
                                 Integer ifIndex)

        Constructor for OnmsSnmpInterface.

        Parameters:
        node - a OnmsNode object.
        ifIndex - a Integer object.
      • OnmsSnmpInterface

        public OnmsSnmpInterface()
        default constructor
    • Method Detail

      • getId

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

        public void setId​(Integer id)

        setId

        Parameters:
        id - a Integer object.
      • getPhysAddr

        public String getPhysAddr()

        getPhysAddr

        Returns:
        a String object.
      • setPhysAddr

        public void setPhysAddr​(String snmpphysaddr)

        setPhysAddr

        Parameters:
        snmpphysaddr - a String object.
      • getIfIndex

        public Integer getIfIndex()

        getIfIndex

        Returns:
        a Integer object.
      • setIfIndex

        public void setIfIndex​(Integer snmpifindex)

        setIfIndex

        Parameters:
        snmpifindex - a Integer object.
      • getIfDescr

        public String getIfDescr()

        getIfDescr

        Returns:
        a String object.
      • setIfDescr

        public void setIfDescr​(String snmpifdescr)

        setIfDescr

        Parameters:
        snmpifdescr - a String object.
      • getIfType

        public Integer getIfType()

        getIfType

        Returns:
        a Integer object.
      • setIfType

        public void setIfType​(Integer snmpiftype)

        setIfType

        Parameters:
        snmpiftype - a Integer object.
      • getIfName

        public String getIfName()

        getIfName

        Returns:
        a String object.
      • setIfName

        public void setIfName​(String snmpifname)

        setIfName

        Parameters:
        snmpifname - a String object.
      • getIfSpeed

        public Long getIfSpeed()

        getIfSpeed

        Returns:
        a Long object.
      • setIfSpeed

        public void setIfSpeed​(Long snmpifspeed)

        setIfSpeed

        Parameters:
        snmpifspeed - a Long object.
      • getIfAdminStatus

        public Integer getIfAdminStatus()

        getIfAdminStatus

        Returns:
        a Integer object.
      • setIfAdminStatus

        public void setIfAdminStatus​(Integer snmpifadminstatus)

        setIfAdminStatus

        Parameters:
        snmpifadminstatus - a Integer object.
      • getIfOperStatus

        public Integer getIfOperStatus()

        getIfOperStatus

        Returns:
        a Integer object.
      • setIfOperStatus

        public void setIfOperStatus​(Integer snmpifoperstatus)

        setIfOperStatus

        Parameters:
        snmpifoperstatus - a Integer object.
      • getIfAlias

        public String getIfAlias()

        getIfAlias

        Returns:
        a String object.
      • setIfAlias

        public void setIfAlias​(String snmpifalias)

        setIfAlias

        Parameters:
        snmpifalias - a String object.
      • getLastCapsdPoll

        public Date getLastCapsdPoll()

        getLastCapsdPoll

        Returns:
        a Date object.
      • setLastCapsdPoll

        public void setLastCapsdPoll​(Date lastCapsdPoll)

        setLastCapsdPoll

        Parameters:
        lastCapsdPoll - a Date object.
      • getCollect

        public String getCollect()

        getCollect

        Returns:
        a String object.
      • setCollect

        public void setCollect​(String collect)

        setCollect

        Parameters:
        collect - a String object.
      • getPoll

        public String getPoll()

        getPoll

        Returns:
        a String object.
      • setPoll

        public void setPoll​(String poll)

        setPoll

        Parameters:
        poll - a String object.
      • getLastSnmpPoll

        public Date getLastSnmpPoll()

        getLastSnmpPoll

        Returns:
        a Date object.
      • setLastSnmpPoll

        public void setLastSnmpPoll​(Date lastSnmpPoll)

        setLastSnmpPoll

        Parameters:
        lastSnmpPoll - a Date object.
      • isCollectionUserSpecified

        public boolean isCollectionUserSpecified()

        isCollectionUserSpecified

        Returns:
        a boolean.
      • isCollectionEnabled

        public boolean isCollectionEnabled()

        isCollectionEnabled

        Returns:
        a boolean.
      • setCollectionEnabled

        public void setCollectionEnabled​(boolean shouldCollect)

        setCollectionEnabled

        Parameters:
        shouldCollect - a boolean.
      • setCollectionEnabled

        public void setCollectionEnabled​(boolean shouldCollect,
                                         boolean userSpecified)

        setCollectionEnabled

        Parameters:
        shouldCollect - a boolean.
        userSpecified - a boolean.
      • isPollEnabled

        public boolean isPollEnabled()

        isPollEnabled

        Returns:
        a boolean.
      • setNode

        public void setNode​(OnmsNode node)

        setNode

        Parameters:
        node - a OnmsNode object.
      • getNodeId

        public Integer getNodeId()
      • getHasFlows

        public boolean getHasFlows()
      • getHasIngressFlows

        public boolean getHasIngressFlows()
      • getHasEgressFlows

        public boolean getHasEgressFlows()
      • getLastIngressFlow

        public Date getLastIngressFlow()
      • setLastIngressFlow

        public void setLastIngressFlow​(Date lastIngressFlow)
      • getLastEgressFlow

        public Date getLastEgressFlow()
      • setLastEgressFlow

        public void setLastEgressFlow​(Date lastEgressFlow)
      • setIpInterfaces

        public void setIpInterfaces​(Set<OnmsIpInterface> ipInterfaces)

        setIpInterfaces

        Parameters:
        ipInterfaces - a Set object.
      • computePhysAddrForRRD

        public String computePhysAddrForRRD()

        computePhysAddrForRRD

        Returns:
        a String object.
      • computeNameForRRD

        public String computeNameForRRD()

        computeNameForRRD

        Returns:
        a String object.
      • computeLabelForRRD

        public String computeLabelForRRD()

        computeLabelForRRD

        Returns:
        a String object.
      • mergeSnmpInterfaceAttributes

        public void mergeSnmpInterfaceAttributes​(OnmsSnmpInterface scannedSnmpIface)

        mergeSnmpInterfaceAttributes

        Parameters:
        scannedSnmpIface - a OnmsSnmpInterface object.