Class SnmpManagedInterface
- java.lang.Object
-
- org.opennms.web.admin.nodeManagement.SnmpManagedInterface
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SnmpManagedInterface>
public class SnmpManagedInterface extends java.lang.Object implements java.io.Serializable, java.lang.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 java.lang.String
m_collectFlag
protected int
m_id
protected java.lang.String
m_ifAlias
protected java.lang.String
m_ifDescr
protected int
m_ifIndex
protected java.lang.String
m_ifName
protected int
m_ifType
protected java.lang.String
m_ipHostname
protected int
m_nodeId
protected java.lang.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(java.lang.Object obj)
java.lang.String
getCollectFlag()
getCollectFlagjava.lang.String
getIfAlias()
getIfAliasjava.lang.String
getIfDescr()
getIfDescrint
getIfIndex()
getIfIndexjava.lang.String
getIfName()
getIfNameint
getIfType()
getIfTypejava.lang.String
getIpHostname()
getIpHostnameint
getNodeid()
getNodeidint
getSnmpInterfaceId()
getSnmpInterfaceIdjava.lang.String
getStatus()
getStatusint
hashCode()
void
setCollectFlag(java.lang.String newCollectFlag)
setCollectFlagvoid
setIfAlias(java.lang.String newIfAlias)
setIfAliasvoid
setIfDescr(java.lang.String newIfDescr)
setIfDescrvoid
setIfIndex(int index)
setIfIndexvoid
setIfName(java.lang.String newIfName)
setIfNamevoid
setIfType(int newIfType)
setIfTypevoid
setIpHostname(java.lang.String newIpHostname)
setIpHostnamevoid
setNodeid(int id)
setNodeidvoid
setSnmpInterfaceId(int newId)
setSnmpInterfaceIdvoid
setStatus(java.lang.String newStatus)
setStatusjava.lang.String
toString()
-
-
-
Field Detail
-
m_id
protected int m_id
-
m_nodeId
protected int m_nodeId
-
m_ifIndex
protected int m_ifIndex
-
m_ipHostname
protected java.lang.String m_ipHostname
-
m_snmpStatus
protected java.lang.String m_snmpStatus
-
m_ifDescr
protected java.lang.String m_ifDescr
-
m_ifType
protected int m_ifType
-
m_ifName
protected java.lang.String m_ifName
-
m_ifAlias
protected java.lang.String m_ifAlias
-
m_collectFlag
protected java.lang.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(java.lang.String newIpHostname)
setIpHostname
- Parameters:
newIpHostname
- aString
object.
-
getIpHostname
public java.lang.String getIpHostname()
getIpHostname
- Returns:
- a
String
object.
-
setStatus
public void setStatus(java.lang.String newStatus)
setStatus
- Parameters:
newStatus
- aString
object.
-
getStatus
public java.lang.String getStatus()
getStatus
- Returns:
- a
String
object.
-
setIfDescr
public void setIfDescr(java.lang.String newIfDescr)
setIfDescr
- Parameters:
newIfDescr
- aString
object.
-
getIfDescr
public java.lang.String getIfDescr()
getIfDescr
- Returns:
- a
String
object.
-
setIfType
public void setIfType(int newIfType)
setIfType
- Parameters:
newIfType
- a int.
-
getIfType
public int getIfType()
getIfType
- Returns:
- a int.
-
setIfName
public void setIfName(java.lang.String newIfName)
setIfName
- Parameters:
newIfName
- aString
object.
-
getIfName
public java.lang.String getIfName()
getIfName
- Returns:
- a
String
object.
-
getIfAlias
public java.lang.String getIfAlias()
getIfAlias
- Returns:
- a
String
object.
-
setIfAlias
public void setIfAlias(java.lang.String newIfAlias)
setIfAlias
- Parameters:
newIfAlias
- aString
object.
-
getCollectFlag
public java.lang.String getCollectFlag()
getCollectFlag
- Returns:
- a
String
object.
-
setCollectFlag
public void setCollectFlag(java.lang.String newCollectFlag)
setCollectFlag
- Parameters:
newCollectFlag
- aString
object.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(SnmpManagedInterface obj)
compareTo
- Specified by:
compareTo
in interfacejava.lang.Comparable<SnmpManagedInterface>
- Parameters:
obj
- aSnmpManagedInterface
object.- Returns:
- a int.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-