Class SnmpManagedInterface
- java.lang.Object
-
- org.opennms.web.admin.nodeManagement.SnmpManagedInterface
-
- All Implemented Interfaces:
Serializable
,Comparable<SnmpManagedInterface>
public class SnmpManagedInterface extends Object implements Serializable, Comparable<SnmpManagedInterface>
A servlet that stores interface information used in setting up SNMP Data Collection- Author:
- Tarus Balog, Benjamin Reed, OpenNMS
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
m_collectFlag
protected int
m_id
protected String
m_ifAlias
protected String
m_ifDescr
protected int
m_ifIndex
protected String
m_ifName
protected int
m_ifType
protected String
m_ipHostname
protected int
m_nodeId
protected String
m_snmpStatus
-
Constructor Summary
Constructors Constructor Description SnmpManagedInterface()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SnmpManagedInterface obj)
compareToboolean
equals(Object obj)
String
getCollectFlag()
getCollectFlagString
getIfAlias()
getIfAliasString
getIfDescr()
getIfDescrint
getIfIndex()
getIfIndexString
getIfName()
getIfNameint
getIfType()
getIfTypeString
getIpHostname()
getIpHostnameint
getNodeid()
getNodeidint
getSnmpInterfaceId()
getSnmpInterfaceIdString
getStatus()
getStatusint
hashCode()
void
setCollectFlag(String newCollectFlag)
setCollectFlagvoid
setIfAlias(String newIfAlias)
setIfAliasvoid
setIfDescr(String newIfDescr)
setIfDescrvoid
setIfIndex(int index)
setIfIndexvoid
setIfName(String newIfName)
setIfNamevoid
setIfType(int newIfType)
setIfTypevoid
setIpHostname(String newIpHostname)
setIpHostnamevoid
setNodeid(int id)
setNodeidvoid
setSnmpInterfaceId(int newId)
setSnmpInterfaceIdvoid
setStatus(String newStatus)
setStatusString
toString()
-
-
-
Field Detail
-
m_id
protected int m_id
-
m_nodeId
protected int m_nodeId
-
m_ifIndex
protected int m_ifIndex
-
m_ipHostname
protected String m_ipHostname
-
m_snmpStatus
protected String m_snmpStatus
-
m_ifDescr
protected String m_ifDescr
-
m_ifType
protected int m_ifType
-
m_ifName
protected String m_ifName
-
m_ifAlias
protected String m_ifAlias
-
m_collectFlag
protected String m_collectFlag
-
-
Method Detail
-
setSnmpInterfaceId
public void setSnmpInterfaceId(int newId)
setSnmpInterfaceId
- Parameters:
newId
- a int.
-
getSnmpInterfaceId
public int getSnmpInterfaceId()
getSnmpInterfaceId
- Returns:
- a int.
-
setNodeid
public void setNodeid(int id)
setNodeid
- Parameters:
id
- a int.
-
getNodeid
public int getNodeid()
getNodeid
- Returns:
- a int.
-
setIfIndex
public void setIfIndex(int index)
setIfIndex
- Parameters:
index
- a int.
-
getIfIndex
public int getIfIndex()
getIfIndex
- Returns:
- a int.
-
setIpHostname
public void setIpHostname(String newIpHostname)
setIpHostname
- Parameters:
newIpHostname
- aString
object.
-
setStatus
public void setStatus(String newStatus)
setStatus
- Parameters:
newStatus
- aString
object.
-
setIfDescr
public void setIfDescr(String newIfDescr)
setIfDescr
- Parameters:
newIfDescr
- aString
object.
-
setIfType
public void setIfType(int newIfType)
setIfType
- Parameters:
newIfType
- a int.
-
getIfType
public int getIfType()
getIfType
- Returns:
- a int.
-
setIfName
public void setIfName(String newIfName)
setIfName
- Parameters:
newIfName
- aString
object.
-
setIfAlias
public void setIfAlias(String newIfAlias)
setIfAlias
- Parameters:
newIfAlias
- aString
object.
-
setCollectFlag
public void setCollectFlag(String newCollectFlag)
setCollectFlag
- Parameters:
newCollectFlag
- aString
object.
-
compareTo
public int compareTo(SnmpManagedInterface obj)
compareTo
- Specified by:
compareTo
in interfaceComparable<SnmpManagedInterface>
- Parameters:
obj
- aSnmpManagedInterface
object.- Returns:
- a int.
-
-