org.opennms.netmgt.collectd
Class DefaultCollectionAgent

java.lang.Object
  extended by org.opennms.netmgt.poller.IPv4NetworkInterface
      extended by org.opennms.netmgt.collectd.DefaultCollectionAgent
All Implemented Interfaces:
Serializable, CollectionAgent, NetworkInterface

public class DefaultCollectionAgent
extends IPv4NetworkInterface
implements CollectionAgent

Represents a remote SNMP agent on a specific IPv4 interface.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.opennms.netmgt.poller.IPv4NetworkInterface
m_address
 
Fields inherited from interface org.opennms.netmgt.poller.NetworkInterface
TYPE_IPV4, TYPE_UNKNOWN
 
Method Summary
static CollectionAgent create(Integer ifaceId, IpInterfaceDao ifaceDao, org.springframework.transaction.PlatformTransactionManager transMgr)
           
 Object getAddress()
           Returns the address information for the interface.
 SnmpAgentConfig getAgentConfig()
           
 String getHostAddress()
           
 InetAddress getInetAddress()
           
 int getNodeId()
           
 int getSavedIfCount()
           
 long getSavedSysUpTime()
           
 Set<org.opennms.netmgt.collectd.IfInfo> getSnmpInterfaceInfo(IfResourceType type)
           
 String getSysObjectId()
           
 void setSavedIfCount(int ifCount)
           
 void setSavedSysUpTime(long sysUpTime)
           
 String toString()
           
 void validateAgent()
           
 
Methods inherited from class org.opennms.netmgt.poller.IPv4NetworkInterface
getAttribute, getType, log, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opennms.netmgt.poller.NetworkInterface
getAttribute, getType, setAttribute
 

Method Detail

create

public static CollectionAgent create(Integer ifaceId,
                                     IpInterfaceDao ifaceDao,
                                     org.springframework.transaction.PlatformTransactionManager transMgr)

getAddress

public Object getAddress()
Description copied from class: IPv4NetworkInterface

Returns the address information for the interface. If the interface then this should be either an InetAddress or an object for specialized address types.

Specified by:
getAddress in interface NetworkInterface
Overrides:
getAddress in class IPv4NetworkInterface

getInetAddress

public InetAddress getInetAddress()
Specified by:
getInetAddress in interface CollectionAgent
Overrides:
getInetAddress in class IPv4NetworkInterface

getHostAddress

public String getHostAddress()
Specified by:
getHostAddress in interface CollectionAgent

setSavedIfCount

public void setSavedIfCount(int ifCount)
Specified by:
setSavedIfCount in interface CollectionAgent

getSavedIfCount

public int getSavedIfCount()
Specified by:
getSavedIfCount in interface CollectionAgent

getNodeId

public int getNodeId()
Specified by:
getNodeId in interface CollectionAgent

getSysObjectId

public String getSysObjectId()
Specified by:
getSysObjectId in interface CollectionAgent

validateAgent

public void validateAgent()
Specified by:
validateAgent in interface CollectionAgent

toString

public String toString()
Specified by:
toString in interface CollectionAgent
Overrides:
toString in class Object

getAgentConfig

public SnmpAgentConfig getAgentConfig()
Specified by:
getAgentConfig in interface CollectionAgent

getSnmpInterfaceInfo

public Set<org.opennms.netmgt.collectd.IfInfo> getSnmpInterfaceInfo(IfResourceType type)
Specified by:
getSnmpInterfaceInfo in interface CollectionAgent

getSavedSysUpTime

public long getSavedSysUpTime()
Specified by:
getSavedSysUpTime in interface CollectionAgent

setSavedSysUpTime

public void setSavedSysUpTime(long sysUpTime)
Specified by:
setSavedSysUpTime in interface CollectionAgent


Copyright © 2009. All Rights Reserved.