org.opennms.netmgt.collectd
Class DefaultCollectionAgent
java.lang.Object
org.opennms.netmgt.poller.IPv4NetworkInterface
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
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.