|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.poller.InetNetworkInterface
org.opennms.netmgt.collectd.DefaultCollectionAgent
public class DefaultCollectionAgent
Represents a remote SNMP agent on a specific IPv4 interface.
| Field Summary |
|---|
| Fields inherited from class org.opennms.netmgt.poller.InetNetworkInterface |
|---|
m_address |
| Fields inherited from interface org.opennms.netmgt.poller.NetworkInterface |
|---|
TYPE_INET, TYPE_UNKNOWN |
| Method Summary | |
|---|---|
static CollectionAgent |
create(Integer ifaceId,
IpInterfaceDao ifaceDao,
org.springframework.transaction.PlatformTransactionManager transMgr)
create |
InetAddress |
getAddress()
Returns the address information for the interface. |
SnmpAgentConfig |
getAgentConfig()
getAgentConfig |
String |
getHostAddress()
getHostAddress |
InetAddress |
getInetAddress()
getInetAddress |
int |
getNodeId()
getNodeId |
int |
getSavedIfCount()
getSavedIfCount |
long |
getSavedSysUpTime()
getSavedSysUpTime |
Set<IfInfo> |
getSnmpInterfaceInfo(IfResourceType type)
getSnmpInterfaceInfo |
String |
getSnmpInterfaceLabel(int ifIndex)
getSnmpInterfaceLabel |
String |
getSysObjectId()
getSysObjectId |
void |
setSavedIfCount(int ifCount)
setSavedIfCount |
void |
setSavedSysUpTime(long sysUpTime)
setSavedSysUpTime |
String |
toString()
toString |
void |
validateAgent()
validateAgent |
| Methods inherited from class org.opennms.netmgt.poller.InetNetworkInterface |
|---|
getAttribute, getType, 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 |
|---|
public static CollectionAgent create(Integer ifaceId,
IpInterfaceDao ifaceDao,
org.springframework.transaction.PlatformTransactionManager transMgr)
create
ifaceId - a Integer object.ifaceDao - a IpInterfaceDao object.transMgr - a PlatformTransactionManager object.
CollectionAgent object.public InetAddress getAddress()
Returns the address information for the interface. If the interface then this should be either an InetAddress or an object for specialized address types.
getAddress in interface NetworkInterface<InetAddress>getAddress in class InetNetworkInterfaceObject object.public InetAddress getInetAddress()
getInetAddress
getInetAddress in interface CollectionAgentgetInetAddress in class InetNetworkInterfaceInetAddress object.public String getHostAddress()
getHostAddress
getHostAddress in interface CollectionAgentString object.public void setSavedIfCount(int ifCount)
setSavedIfCount
setSavedIfCount in interface CollectionAgentifCount - a int.public int getSavedIfCount()
getSavedIfCount
getSavedIfCount in interface CollectionAgentpublic int getNodeId()
getNodeId
getNodeId in interface CollectionAgentpublic String getSysObjectId()
getSysObjectId
getSysObjectId in interface CollectionAgentString object.
public void validateAgent()
throws CollectionInitializationException
validateAgent
validateAgent in interface CollectionAgentCollectionInitializationExceptionpublic String toString()
toString
toString in interface CollectionAgenttoString in class ObjectString object.public SnmpAgentConfig getAgentConfig()
getAgentConfig
getAgentConfig in interface CollectionAgentgetAgentConfig in interface StorageStrategyServiceSnmpAgentConfig object.public Set<IfInfo> getSnmpInterfaceInfo(IfResourceType type)
getSnmpInterfaceInfo
getSnmpInterfaceInfo in interface CollectionAgenttype - a IfResourceType object.
Set object.public String getSnmpInterfaceLabel(int ifIndex)
getSnmpInterfaceLabel
getSnmpInterfaceLabel in interface StorageStrategyServiceifIndex - a int.
String object.public long getSavedSysUpTime()
getSavedSysUpTime
getSavedSysUpTime in interface CollectionAgentpublic void setSavedSysUpTime(long sysUpTime)
setSavedSysUpTime
setSavedSysUpTime in interface CollectionAgentsysUpTime - a long.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||