public class DefaultSnmpCollectionAgent extends DefaultCollectionAgent implements SnmpCollectionAgent
m_agentService
Modifier | Constructor and Description |
---|---|
protected |
DefaultSnmpCollectionAgent(SnmpCollectionAgentService agentService,
String location) |
Modifier and Type | Method and Description |
---|---|
static SnmpCollectionAgent |
create(Integer ifaceId,
IpInterfaceDao ifaceDao,
org.springframework.transaction.PlatformTransactionManager transMgr)
create
|
static SnmpCollectionAgent |
create(Integer ifaceId,
IpInterfaceDao ifaceDao,
org.springframework.transaction.PlatformTransactionManager transMgr,
String location) |
SnmpAgentConfig |
getAgentConfig()
getAgentConfig
|
int |
getSavedIfCount()
getSavedIfCount
|
Set<IfInfo> |
getSnmpInterfaceInfo(IfResourceType type)
getSnmpInterfaceInfo
|
String |
getSnmpInterfaceLabel(int ifIndex)
This method is used on StorageStrategy implementation when the resource index is associated to a
physical interface like frame relay resources.
|
String |
getSysObjectId()
getSysObjectId
|
protected void |
logCollectionParms() |
protected void |
logCompletion() |
void |
setSavedIfCount(int ifCount)
setSavedIfCount
|
void |
validateAgent()
validateAgent
|
getAddress, getAttribute, getAttributeNames, getForeignId, getForeignSource, getHostAddress, getLocationName, getNodeId, getNodeLabel, getSavedSysUpTime, getStorageResourcePath, isStoreByForeignSource, setAttribute, setSavedSysUpTime, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAddress, getAttribute, getAttributeNames, getForeignId, getForeignSource, getHostAddress, getLocationName, getNodeId, getNodeLabel, getSavedSysUpTime, getStorageResourcePath, isStoreByForeignSource, setAttribute, setSavedSysUpTime
protected DefaultSnmpCollectionAgent(SnmpCollectionAgentService agentService, String location)
public static SnmpCollectionAgent 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 static SnmpCollectionAgent create(Integer ifaceId, IpInterfaceDao ifaceDao, org.springframework.transaction.PlatformTransactionManager transMgr, String location)
public void setSavedIfCount(int ifCount)
setSavedIfCount
setSavedIfCount
in interface SnmpCollectionAgent
ifCount
- a int.public int getSavedIfCount()
getSavedIfCount
getSavedIfCount
in interface SnmpCollectionAgent
public String getSysObjectId()
getSysObjectId
getSysObjectId
in interface SnmpCollectionAgent
String
object.protected void logCompletion()
logCompletion
in class DefaultCollectionAgent
protected void logCollectionParms()
logCollectionParms
in class DefaultCollectionAgent
public void validateAgent() throws CollectionInitializationException
validateAgent
validateAgent
in interface SnmpCollectionAgent
CollectionInitializationException
public SnmpAgentConfig getAgentConfig()
StorageStrategyService
getAgentConfig
getAgentConfig
in interface StorageStrategyService
SnmpAgentConfig
object.public Set<IfInfo> getSnmpInterfaceInfo(IfResourceType type)
getSnmpInterfaceInfo
getSnmpInterfaceInfo
in interface SnmpCollectionAgent
type
- a IfResourceType
object.Set
object.public String getSnmpInterfaceLabel(int ifIndex)
getSnmpInterfaceLabel
in interface StorageStrategyService
ifIndex
- a int.String
object.Copyright © 2021. All rights reserved.