Class OnmsSnmpInterface

  • All Implemented Interfaces:
    java.io.Serializable

    @Entity
    public class OnmsSnmpInterface
    extends OnmsEntity
    implements java.io.Serializable

    OnmsSnmpInterface class.

    See Also:
    Serialized Form
    • 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,
                                 java.lang.Integer ifIndex)

        Constructor for OnmsSnmpInterface.

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

        public OnmsSnmpInterface()
        default constructor
    • Method Detail

      • getId

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

        public void setId​(java.lang.Integer id)

        setId

        Parameters:
        id - a Integer object.
      • getPhysAddr

        public java.lang.String getPhysAddr()

        getPhysAddr

        Returns:
        a String object.
      • setPhysAddr

        public void setPhysAddr​(java.lang.String snmpphysaddr)

        setPhysAddr

        Parameters:
        snmpphysaddr - a String object.
      • getIfIndex

        public java.lang.Integer getIfIndex()

        getIfIndex

        Returns:
        a Integer object.
      • setIfIndex

        public void setIfIndex​(java.lang.Integer snmpifindex)

        setIfIndex

        Parameters:
        snmpifindex - a Integer object.
      • getIfDescr

        public java.lang.String getIfDescr()

        getIfDescr

        Returns:
        a String object.
      • setIfDescr

        public void setIfDescr​(java.lang.String snmpifdescr)

        setIfDescr

        Parameters:
        snmpifdescr - a String object.
      • getIfType

        public java.lang.Integer getIfType()

        getIfType

        Returns:
        a Integer object.
      • setIfType

        public void setIfType​(java.lang.Integer snmpiftype)

        setIfType

        Parameters:
        snmpiftype - a Integer object.
      • getIfName

        public java.lang.String getIfName()

        getIfName

        Returns:
        a String object.
      • setIfName

        public void setIfName​(java.lang.String snmpifname)

        setIfName

        Parameters:
        snmpifname - a String object.
      • getIfSpeed

        public java.lang.Long getIfSpeed()

        getIfSpeed

        Returns:
        a Long object.
      • setIfSpeed

        public void setIfSpeed​(java.lang.Long snmpifspeed)

        setIfSpeed

        Parameters:
        snmpifspeed - a Long object.
      • getIfAdminStatus

        public java.lang.Integer getIfAdminStatus()

        getIfAdminStatus

        Returns:
        a Integer object.
      • setIfAdminStatus

        public void setIfAdminStatus​(java.lang.Integer snmpifadminstatus)

        setIfAdminStatus

        Parameters:
        snmpifadminstatus - a Integer object.
      • getIfOperStatus

        public java.lang.Integer getIfOperStatus()

        getIfOperStatus

        Returns:
        a Integer object.
      • setIfOperStatus

        public void setIfOperStatus​(java.lang.Integer snmpifoperstatus)

        setIfOperStatus

        Parameters:
        snmpifoperstatus - a Integer object.
      • getIfAlias

        public java.lang.String getIfAlias()

        getIfAlias

        Returns:
        a String object.
      • setIfAlias

        public void setIfAlias​(java.lang.String snmpifalias)

        setIfAlias

        Parameters:
        snmpifalias - a String object.
      • getLastCapsdPoll

        public java.util.Date getLastCapsdPoll()

        getLastCapsdPoll

        Returns:
        a Date object.
      • setLastCapsdPoll

        public void setLastCapsdPoll​(java.util.Date lastCapsdPoll)

        setLastCapsdPoll

        Parameters:
        lastCapsdPoll - a Date object.
      • getCollect

        public java.lang.String getCollect()

        getCollect

        Returns:
        a String object.
      • setCollect

        public void setCollect​(java.lang.String collect)

        setCollect

        Parameters:
        collect - a String object.
      • getPoll

        public java.lang.String getPoll()

        getPoll

        Returns:
        a String object.
      • setPoll

        public void setPoll​(java.lang.String poll)

        setPoll

        Parameters:
        poll - a String object.
      • getLastSnmpPoll

        public java.util.Date getLastSnmpPoll()

        getLastSnmpPoll

        Returns:
        a Date object.
      • setLastSnmpPoll

        public void setLastSnmpPoll​(java.util.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 java.lang.Integer getNodeId()
      • getHasFlows

        public boolean getHasFlows()
      • getHasIngressFlows

        public boolean getHasIngressFlows()
      • getHasEgressFlows

        public boolean getHasEgressFlows()
      • getLastIngressFlow

        public java.util.Date getLastIngressFlow()
      • setLastIngressFlow

        public void setLastIngressFlow​(java.util.Date lastIngressFlow)
      • getLastEgressFlow

        public java.util.Date getLastEgressFlow()
      • setLastEgressFlow

        public void setLastEgressFlow​(java.util.Date lastEgressFlow)
      • toString

        public java.lang.String toString()

        toString

        Overrides:
        toString in class java.lang.Object
        Returns:
        a String object.
      • getIpInterfaces

        public java.util.Set<OnmsIpInterface> getIpInterfaces()

        getIpInterfaces

        Returns:
        a Set object.
      • setIpInterfaces

        public void setIpInterfaces​(java.util.Set<OnmsIpInterface> ipInterfaces)

        setIpInterfaces

        Parameters:
        ipInterfaces - a Set object.
      • computePhysAddrForRRD

        public java.lang.String computePhysAddrForRRD()

        computePhysAddrForRRD

        Returns:
        a String object.
      • computeNameForRRD

        public java.lang.String computeNameForRRD()

        computeNameForRRD

        Returns:
        a String object.
      • computeLabelForRRD

        public java.lang.String computeLabelForRRD()

        computeLabelForRRD

        Returns:
        a String object.
      • mergeSnmpInterfaceAttributes

        public void mergeSnmpInterfaceAttributes​(OnmsSnmpInterface scannedSnmpIface)

        mergeSnmpInterfaceAttributes

        Parameters:
        scannedSnmpIface - a OnmsSnmpInterface object.