Package org.opennms.netmgt.model
Class OnmsSnmpInterface
- java.lang.Object
-
- org.opennms.netmgt.model.OnmsEntity
-
- org.opennms.netmgt.model.OnmsSnmpInterface
-
- All Implemented Interfaces:
Serializable
@Entity public class OnmsSnmpInterface extends OnmsEntity implements 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, Integer ifIndex)
Constructor for OnmsSnmpInterface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIpInterface(OnmsIpInterface iface)
addIpInterfaceString
computeLabelForRRD()
computeLabelForRRDString
computeNameForRRD()
computeNameForRRDString
computePhysAddrForRRD()
computePhysAddrForRRDString
getCollect()
getCollectboolean
getHasEgressFlows()
boolean
getHasFlows()
boolean
getHasIngressFlows()
Integer
getId()
Unique identifier for snmpInterface.Integer
getIfAdminStatus()
getIfAdminStatusString
getIfAlias()
getIfAliasString
getIfDescr()
getIfDescrInteger
getIfIndex()
getIfIndexString
getIfName()
getIfNameInteger
getIfOperStatus()
getIfOperStatusLong
getIfSpeed()
getIfSpeedInteger
getIfType()
getIfTypeSet<OnmsIpInterface>
getIpInterfaces()
getIpInterfacesDate
getLastCapsdPoll()
getLastCapsdPollDate
getLastEgressFlow()
Date
getLastIngressFlow()
Date
getLastSnmpPoll()
getLastSnmpPollOnmsNode
getNode()
getNodeInteger
getNodeId()
String
getPhysAddr()
getPhysAddrString
getPoll()
getPollOnmsIpInterface
getPrimaryIpInterface()
getPrimaryIpInterfaceboolean
isCollectionEnabled()
isCollectionEnabledboolean
isCollectionUserSpecified()
isCollectionUserSpecifiedboolean
isPollEnabled()
isPollEnabledvoid
mergeSnmpInterfaceAttributes(OnmsSnmpInterface scannedSnmpIface)
mergeSnmpInterfaceAttributesvoid
setCollect(String collect)
setCollectvoid
setCollectionEnabled(boolean shouldCollect)
setCollectionEnabledvoid
setCollectionEnabled(boolean shouldCollect, boolean userSpecified)
setCollectionEnabledvoid
setId(Integer id)
setIdvoid
setIfAdminStatus(Integer snmpifadminstatus)
setIfAdminStatusvoid
setIfAlias(String snmpifalias)
setIfAliasvoid
setIfDescr(String snmpifdescr)
setIfDescrvoid
setIfIndex(Integer snmpifindex)
setIfIndexvoid
setIfName(String snmpifname)
setIfNamevoid
setIfOperStatus(Integer snmpifoperstatus)
setIfOperStatusvoid
setIfSpeed(Long snmpifspeed)
setIfSpeedvoid
setIfType(Integer snmpiftype)
setIfTypevoid
setIpInterfaces(Set<OnmsIpInterface> ipInterfaces)
setIpInterfacesvoid
setLastCapsdPoll(Date lastCapsdPoll)
setLastCapsdPollvoid
setLastEgressFlow(Date lastEgressFlow)
void
setLastIngressFlow(Date lastIngressFlow)
void
setLastSnmpPoll(Date lastSnmpPoll)
setLastSnmpPollvoid
setNode(OnmsNode node)
setNodevoid
setPhysAddr(String snmpphysaddr)
setPhysAddrvoid
setPoll(String poll)
setPollString
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, Integer ifIndex)
Constructor for OnmsSnmpInterface.
-
OnmsSnmpInterface
public OnmsSnmpInterface()
default constructor
-
-
Method Detail
-
setPhysAddr
public void setPhysAddr(String snmpphysaddr)
setPhysAddr
- Parameters:
snmpphysaddr
- aString
object.
-
setIfIndex
public void setIfIndex(Integer snmpifindex)
setIfIndex
- Parameters:
snmpifindex
- aInteger
object.
-
setIfDescr
public void setIfDescr(String snmpifdescr)
setIfDescr
- Parameters:
snmpifdescr
- aString
object.
-
setIfType
public void setIfType(Integer snmpiftype)
setIfType
- Parameters:
snmpiftype
- aInteger
object.
-
setIfName
public void setIfName(String snmpifname)
setIfName
- Parameters:
snmpifname
- aString
object.
-
setIfSpeed
public void setIfSpeed(Long snmpifspeed)
setIfSpeed
- Parameters:
snmpifspeed
- aLong
object.
-
setIfAdminStatus
public void setIfAdminStatus(Integer snmpifadminstatus)
setIfAdminStatus
- Parameters:
snmpifadminstatus
- aInteger
object.
-
setIfOperStatus
public void setIfOperStatus(Integer snmpifoperstatus)
setIfOperStatus
- Parameters:
snmpifoperstatus
- aInteger
object.
-
setIfAlias
public void setIfAlias(String snmpifalias)
setIfAlias
- Parameters:
snmpifalias
- aString
object.
-
setLastCapsdPoll
public void setLastCapsdPoll(Date lastCapsdPoll)
setLastCapsdPoll
- Parameters:
lastCapsdPoll
- aDate
object.
-
setCollect
public void setCollect(String collect)
setCollect
- Parameters:
collect
- aString
object.
-
setLastSnmpPoll
public void setLastSnmpPoll(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 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)
-
toString
public String toString()
toString
-
visit
public void visit(EntityVisitor visitor)
visit
- Specified by:
visit
in classOnmsEntity
- Parameters:
visitor
- aEntityVisitor
object.
-
getIpInterfaces
public Set<OnmsIpInterface> getIpInterfaces()
getIpInterfaces
- Returns:
- a
Set
object.
-
setIpInterfaces
public void setIpInterfaces(Set<OnmsIpInterface> ipInterfaces)
setIpInterfaces
- Parameters:
ipInterfaces
- aSet
object.
-
getPrimaryIpInterface
public OnmsIpInterface getPrimaryIpInterface()
getPrimaryIpInterface
- Returns:
- an
OnmsIpInterface
object.
-
computePhysAddrForRRD
public String computePhysAddrForRRD()
computePhysAddrForRRD
- 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.
-
-