Package org.opennms.netmgt.collectd
Class DefaultSnmpCollectionAgentService
- java.lang.Object
-
- org.opennms.netmgt.collection.core.DefaultCollectionAgentService
-
- org.opennms.netmgt.collectd.DefaultSnmpCollectionAgentService
-
- All Implemented Interfaces:
SnmpCollectionAgentService
,CollectionAgentService
public class DefaultSnmpCollectionAgentService extends DefaultCollectionAgentService implements SnmpCollectionAgentService
Represents a remote SNMP agent on a specific IPv4 interface.- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultSnmpCollectionAgentService(Integer ifaceId, IpInterfaceDao ifaceDao)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SnmpCollectionAgentService
create(Integer ifaceId, IpInterfaceDao ifaceDao, org.springframework.transaction.PlatformTransactionManager transMgr)
createSnmpAgentConfig
getAgentConfig()
getAgentConfigint
getIfIndex()
getIfIndexPrimaryType
getIsSnmpPrimary()
getIsSnmpPrimarySet<SnmpIfData>
getSnmpInterfaceData()
getSnmpInterfaceDataString
getSysObjectId()
getSysObjectIdString
toString()
toString-
Methods inherited from class org.opennms.netmgt.collection.core.DefaultCollectionAgentService
createStorageResourcePath, getForeignId, getForeignSource, getHostAddress, getInetAddress, getIpInterface, getLocationName, getNodeId, getNodeLabel, getStorageResourcePath
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.collection.api.CollectionAgentService
getForeignId, getForeignSource, getHostAddress, getInetAddress, getLocationName, getNodeId, getNodeLabel, getStorageResourcePath
-
-
-
-
Constructor Detail
-
DefaultSnmpCollectionAgentService
protected DefaultSnmpCollectionAgentService(Integer ifaceId, IpInterfaceDao ifaceDao)
-
-
Method Detail
-
create
public static SnmpCollectionAgentService create(Integer ifaceId, IpInterfaceDao ifaceDao, org.springframework.transaction.PlatformTransactionManager transMgr)
create
- Parameters:
ifaceId
- aInteger
object.ifaceDao
- aIpInterfaceDao
object.transMgr
- aPlatformTransactionManager
object.- Returns:
- a
CollectionAgentService
object.
-
getIfIndex
public int getIfIndex()
getIfIndex
- Specified by:
getIfIndex
in interfaceSnmpCollectionAgentService
- Returns:
- a int.
-
getSysObjectId
public String getSysObjectId()
getSysObjectId
- Specified by:
getSysObjectId
in interfaceSnmpCollectionAgentService
- Returns:
- a
String
object.
-
getIsSnmpPrimary
public PrimaryType getIsSnmpPrimary()
getIsSnmpPrimary
- Specified by:
getIsSnmpPrimary
in interfaceSnmpCollectionAgentService
- Returns:
- a
PrimaryType
object.
-
toString
public String toString()
toString
- Overrides:
toString
in classDefaultCollectionAgentService
- Returns:
- a
String
object.
-
getAgentConfig
public SnmpAgentConfig getAgentConfig()
getAgentConfig
- Specified by:
getAgentConfig
in interfaceSnmpCollectionAgentService
- Returns:
- a
SnmpAgentConfig
object.
-
getSnmpInterfaceData
public Set<SnmpIfData> getSnmpInterfaceData()
getSnmpInterfaceData
- Specified by:
getSnmpInterfaceData
in interfaceSnmpCollectionAgentService
- Returns:
- a
Set
object.
-
-