Package org.opennms.netmgt.model
Class OnmsSnmpInterface
- java.lang.Object
-
- org.opennms.netmgt.model.OnmsEntity
-
- org.opennms.netmgt.model.OnmsSnmpInterface
-
- All Implemented Interfaces:
java.io.Serializable
@Entity public class OnmsSnmpInterface extends OnmsEntity implements java.io.Serializable
OnmsSnmpInterface class.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
INGRESS_AND_EGRESS_REQUIRED
static int
MAX_FLOW_AGE
-
Constructor Summary
Constructors Constructor Description OnmsSnmpInterface()
default constructorOnmsSnmpInterface(OnmsNode node, int ifIndex)
Constructor for OnmsSnmpInterface.OnmsSnmpInterface(OnmsNode node, java.lang.Integer ifIndex)
Constructor for OnmsSnmpInterface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIpInterface(OnmsIpInterface iface)
addIpInterfacejava.lang.String
computeLabelForRRD()
computeLabelForRRDjava.lang.String
computeNameForRRD()
computeNameForRRDjava.lang.String
computePhysAddrForRRD()
computePhysAddrForRRDjava.lang.String
getCollect()
getCollectboolean
getHasEgressFlows()
boolean
getHasFlows()
boolean
getHasIngressFlows()
java.lang.Integer
getId()
Unique identifier for snmpInterface.java.lang.Integer
getIfAdminStatus()
getIfAdminStatusjava.lang.String
getIfAlias()
getIfAliasjava.lang.String
getIfDescr()
getIfDescrjava.lang.Integer
getIfIndex()
getIfIndexjava.lang.String
getIfName()
getIfNamejava.lang.Integer
getIfOperStatus()
getIfOperStatusjava.lang.Long
getIfSpeed()
getIfSpeedjava.lang.Integer
getIfType()
getIfTypejava.util.Set<OnmsIpInterface>
getIpInterfaces()
getIpInterfacesjava.util.Date
getLastCapsdPoll()
getLastCapsdPolljava.util.Date
getLastEgressFlow()
java.util.Date
getLastIngressFlow()
java.util.Date
getLastSnmpPoll()
getLastSnmpPollOnmsNode
getNode()
getNodejava.lang.Integer
getNodeId()
java.lang.String
getPhysAddr()
getPhysAddrjava.lang.String
getPoll()
getPollOnmsIpInterface
getPrimaryIpInterface()
getPrimaryIpInterfaceboolean
isCollectionEnabled()
isCollectionEnabledboolean
isCollectionUserSpecified()
isCollectionUserSpecifiedboolean
isPollEnabled()
isPollEnabledvoid
mergeSnmpInterfaceAttributes(OnmsSnmpInterface scannedSnmpIface)
mergeSnmpInterfaceAttributesvoid
setCollect(java.lang.String collect)
setCollectvoid
setCollectionEnabled(boolean shouldCollect)
setCollectionEnabledvoid
setCollectionEnabled(boolean shouldCollect, boolean userSpecified)
setCollectionEnabledvoid
setId(java.lang.Integer id)
setIdvoid
setIfAdminStatus(java.lang.Integer snmpifadminstatus)
setIfAdminStatusvoid
setIfAlias(java.lang.String snmpifalias)
setIfAliasvoid
setIfDescr(java.lang.String snmpifdescr)
setIfDescrvoid
setIfIndex(java.lang.Integer snmpifindex)
setIfIndexvoid
setIfName(java.lang.String snmpifname)
setIfNamevoid
setIfOperStatus(java.lang.Integer snmpifoperstatus)
setIfOperStatusvoid
setIfSpeed(java.lang.Long snmpifspeed)
setIfSpeedvoid
setIfType(java.lang.Integer snmpiftype)
setIfTypevoid
setIpInterfaces(java.util.Set<OnmsIpInterface> ipInterfaces)
setIpInterfacesvoid
setLastCapsdPoll(java.util.Date lastCapsdPoll)
setLastCapsdPollvoid
setLastEgressFlow(java.util.Date lastEgressFlow)
void
setLastIngressFlow(java.util.Date lastIngressFlow)
void
setLastSnmpPoll(java.util.Date lastSnmpPoll)
setLastSnmpPollvoid
setNode(OnmsNode node)
setNodevoid
setPhysAddr(java.lang.String snmpphysaddr)
setPhysAddrvoid
setPoll(java.lang.String poll)
setPolljava.lang.String
toString()
toStringvoid
visit(EntityVisitor visitor)
visit-
Methods inherited from class org.opennms.netmgt.model.OnmsEntity
hasNewValue
-
-
-
-
Constructor Detail
-
OnmsSnmpInterface
public OnmsSnmpInterface(OnmsNode node, int ifIndex)
Constructor for OnmsSnmpInterface.
- Parameters:
node
- aOnmsNode
object.ifIndex
- a int.
-
OnmsSnmpInterface
public OnmsSnmpInterface(OnmsNode node, java.lang.Integer ifIndex)
Constructor for OnmsSnmpInterface.
- Parameters:
node
- aOnmsNode
object.ifIndex
- aInteger
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
- aInteger
object.
-
getPhysAddr
public java.lang.String getPhysAddr()
getPhysAddr
- Returns:
- a
String
object.
-
setPhysAddr
public void setPhysAddr(java.lang.String snmpphysaddr)
setPhysAddr
- Parameters:
snmpphysaddr
- aString
object.
-
getIfIndex
public java.lang.Integer getIfIndex()
getIfIndex
- Returns:
- a
Integer
object.
-
setIfIndex
public void setIfIndex(java.lang.Integer snmpifindex)
setIfIndex
- Parameters:
snmpifindex
- aInteger
object.
-
getIfDescr
public java.lang.String getIfDescr()
getIfDescr
- Returns:
- a
String
object.
-
setIfDescr
public void setIfDescr(java.lang.String snmpifdescr)
setIfDescr
- Parameters:
snmpifdescr
- aString
object.
-
getIfType
public java.lang.Integer getIfType()
getIfType
- Returns:
- a
Integer
object.
-
setIfType
public void setIfType(java.lang.Integer snmpiftype)
setIfType
- Parameters:
snmpiftype
- aInteger
object.
-
getIfName
public java.lang.String getIfName()
getIfName
- Returns:
- a
String
object.
-
setIfName
public void setIfName(java.lang.String snmpifname)
setIfName
- Parameters:
snmpifname
- aString
object.
-
getIfSpeed
public java.lang.Long getIfSpeed()
getIfSpeed
- Returns:
- a
Long
object.
-
setIfSpeed
public void setIfSpeed(java.lang.Long snmpifspeed)
setIfSpeed
- Parameters:
snmpifspeed
- aLong
object.
-
getIfAdminStatus
public java.lang.Integer getIfAdminStatus()
getIfAdminStatus
- Returns:
- a
Integer
object.
-
setIfAdminStatus
public void setIfAdminStatus(java.lang.Integer snmpifadminstatus)
setIfAdminStatus
- Parameters:
snmpifadminstatus
- aInteger
object.
-
getIfOperStatus
public java.lang.Integer getIfOperStatus()
getIfOperStatus
- Returns:
- a
Integer
object.
-
setIfOperStatus
public void setIfOperStatus(java.lang.Integer snmpifoperstatus)
setIfOperStatus
- Parameters:
snmpifoperstatus
- aInteger
object.
-
getIfAlias
public java.lang.String getIfAlias()
getIfAlias
- Returns:
- a
String
object.
-
setIfAlias
public void setIfAlias(java.lang.String snmpifalias)
setIfAlias
- Parameters:
snmpifalias
- aString
object.
-
getLastCapsdPoll
public java.util.Date getLastCapsdPoll()
getLastCapsdPoll
- Returns:
- a
Date
object.
-
setLastCapsdPoll
public void setLastCapsdPoll(java.util.Date lastCapsdPoll)
setLastCapsdPoll
- Parameters:
lastCapsdPoll
- aDate
object.
-
getCollect
public java.lang.String getCollect()
getCollect
- Returns:
- a
String
object.
-
setCollect
public void setCollect(java.lang.String collect)
setCollect
- Parameters:
collect
- aString
object.
-
getPoll
public java.lang.String getPoll()
getPoll
- Returns:
- a
String
object.
-
setPoll
public void setPoll(java.lang.String poll)
setPoll
- Parameters:
poll
- aString
object.
-
getLastSnmpPoll
public java.util.Date getLastSnmpPoll()
getLastSnmpPoll
- Returns:
- a
Date
object.
-
setLastSnmpPoll
public void setLastSnmpPoll(java.util.Date lastSnmpPoll)
setLastSnmpPoll
- Parameters:
lastSnmpPoll
- aDate
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.
-
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 classjava.lang.Object
- Returns:
- a
String
object.
-
visit
public void visit(EntityVisitor visitor)
visit
- Specified by:
visit
in classOnmsEntity
- Parameters:
visitor
- aEntityVisitor
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
- aSet
object.
-
getPrimaryIpInterface
public OnmsIpInterface getPrimaryIpInterface()
getPrimaryIpInterface
- Returns:
- an
OnmsIpInterface
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.
-
addIpInterface
public void addIpInterface(OnmsIpInterface iface)
addIpInterface
- Parameters:
iface
- aOnmsIpInterface
object.
-
mergeSnmpInterfaceAttributes
public void mergeSnmpInterfaceAttributes(OnmsSnmpInterface scannedSnmpIface)
mergeSnmpInterfaceAttributes
- Parameters:
scannedSnmpIface
- aOnmsSnmpInterface
object.
-
-