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(java.lang.Integer ifaceId, IpInterfaceDao ifaceDao)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SnmpCollectionAgentService
create(java.lang.Integer ifaceId, IpInterfaceDao ifaceDao, org.springframework.transaction.PlatformTransactionManager transMgr)
createSnmpAgentConfig
getAgentConfig()
getAgentConfigint
getIfIndex()
getIfIndexPrimaryType
getIsSnmpPrimary()
getIsSnmpPrimaryjava.util.Set<SnmpIfData>
getSnmpInterfaceData()
getSnmpInterfaceDatajava.lang.String
getSysObjectId()
getSysObjectIdjava.lang.String
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(java.lang.Integer ifaceId, IpInterfaceDao ifaceDao)
-
-
Method Detail
-
create
public static SnmpCollectionAgentService create(java.lang.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 java.lang.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 java.lang.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 java.util.Set<SnmpIfData> getSnmpInterfaceData()
getSnmpInterfaceData
- Specified by:
getSnmpInterfaceData
in interfaceSnmpCollectionAgentService
- Returns:
- a
Set
object.
-
-