org.opennms.netmgt.model
Class OnmsIpInterface

java.lang.Object
  extended by org.opennms.netmgt.model.OnmsEntity
      extended by org.opennms.netmgt.model.OnmsIpInterface
All Implemented Interfaces:
Serializable

public class OnmsIpInterface
extends OnmsEntity
implements Serializable

See Also:
Serialized Form

Nested Class Summary
static class OnmsIpInterface.CollectionType
           
 
Constructor Summary
OnmsIpInterface()
           
OnmsIpInterface(String ipAddr, OnmsNode node)
          minimal constructor
 
Method Summary
 Integer getId()
          Unique identifier for ipInterface.
 Integer getIfIndex()
           
 InetAddress getInetAddress()
           
 String getIpAddress()
           
 String getIpHostName()
           
 Date getIpLastCapsdPoll()
           
 Integer getIpStatus()
           
 String getIsManaged()
           
 OnmsIpInterface.CollectionType getIsSnmpPrimary()
           
 OnmsMonitoredService getMonitoredServiceByServiceType(String svcName)
           
 Set<OnmsMonitoredService> getMonitoredServices()
          The services on this node
 OnmsNode getNode()
           
 OnmsSnmpInterface getSnmpInterface()
          The SnmpInterface associated with this interface if any
 boolean isDown()
           
 void setId(Integer id)
           
 void setIfIndex(Integer ifindex)
           
 void setIpAddress(String ipaddr)
           
 void setIpHostName(String iphostname)
           
 void setIpLastCapsdPoll(Date iplastcapsdpoll)
           
 void setIpStatus(Integer ipstatus)
           
 void setIsManaged(String ismanaged)
           
 void setIsSnmpPrimary(OnmsIpInterface.CollectionType issnmpprimary)
           
 void setMonitoredServices(Set<OnmsMonitoredService> ifServices)
           
 void setNode(OnmsNode node)
           
 void setSnmpInterface(OnmsSnmpInterface snmpInterface)
           
 String toString()
           
 void visit(EntityVisitor visitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OnmsIpInterface

public OnmsIpInterface()

OnmsIpInterface

public OnmsIpInterface(String ipAddr,
                       OnmsNode node)
minimal constructor

Method Detail

getId

public Integer getId()
Unique identifier for ipInterface.


setId

public void setId(Integer id)

getIpAddress

public String getIpAddress()

setIpAddress

public void setIpAddress(String ipaddr)

getIfIndex

public Integer getIfIndex()

setIfIndex

public void setIfIndex(Integer ifindex)

getIpHostName

public String getIpHostName()

setIpHostName

public void setIpHostName(String iphostname)

getIsManaged

public String getIsManaged()

setIsManaged

public void setIsManaged(String ismanaged)

getIpStatus

public Integer getIpStatus()

setIpStatus

public void setIpStatus(Integer ipstatus)

getIpLastCapsdPoll

public Date getIpLastCapsdPoll()

setIpLastCapsdPoll

public void setIpLastCapsdPoll(Date iplastcapsdpoll)

getIsSnmpPrimary

public OnmsIpInterface.CollectionType getIsSnmpPrimary()

setIsSnmpPrimary

public void setIsSnmpPrimary(OnmsIpInterface.CollectionType issnmpprimary)

getNode

public OnmsNode getNode()

setNode

public void setNode(OnmsNode node)

getMonitoredServices

public Set<OnmsMonitoredService> getMonitoredServices()
The services on this node


setMonitoredServices

public void setMonitoredServices(Set<OnmsMonitoredService> ifServices)

getSnmpInterface

public OnmsSnmpInterface getSnmpInterface()
The SnmpInterface associated with this interface if any


setSnmpInterface

public void setSnmpInterface(OnmsSnmpInterface snmpInterface)

toString

public String toString()
Overrides:
toString in class Object

visit

public void visit(EntityVisitor visitor)
Specified by:
visit in class OnmsEntity

getInetAddress

public InetAddress getInetAddress()

isDown

public boolean isDown()

getMonitoredServiceByServiceType

public OnmsMonitoredService getMonitoredServiceByServiceType(String svcName)


Copyright © 2009. All Rights Reserved.