Class EntityPhysicalTableTracker
- java.lang.Object
-
- org.opennms.netmgt.snmp.CollectionTracker
-
- org.opennms.netmgt.snmp.TableTracker
-
- org.opennms.netmgt.provision.snmp.EntityPhysicalTableTracker
-
- All Implemented Interfaces:
Collectable
,ProxiableTracker
,RowCallback
,RowResultFactory
public class EntityPhysicalTableTracker extends TableTracker
The Class EntityPhysicalTableTracker.- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description EntityPhysicalTableTracker(java.util.Map<SnmpObjId,HwEntityAttributeType> vendorAttributes, SnmpObjId[] oids, java.util.Map<java.lang.String,java.lang.String> replacementMap)
The Constructor.EntityPhysicalTableTracker(RowCallback rowProcessor, SnmpObjId[] oids)
The Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnmpRowResult
createRowResult(int columnCount, SnmpInstId instance)
OnmsHwEntity
getRootEntity()
Gets the root entity.void
rowCompleted(SnmpRowResult row)
-
Methods inherited from class org.opennms.netmgt.snmp.TableTracker
buildNextPdu, getWalkRequests, handleWalkResponses, isFinished, setMaxRepetitions, setMaxRetries, storeResult
-
Methods inherited from class org.opennms.netmgt.snmp.CollectionTracker
failed, getCollectionTracker, getParent, reportFatalErr, reportGenErr, reportNonFatalErr, reportNoSuchNameErr, reportTooBigErr, setFailed, setFinished, setParent, setTimedOut, timedOut
-
-
-
-
Constructor Detail
-
EntityPhysicalTableTracker
public EntityPhysicalTableTracker(java.util.Map<SnmpObjId,HwEntityAttributeType> vendorAttributes, SnmpObjId[] oids, java.util.Map<java.lang.String,java.lang.String> replacementMap)
The Constructor.- Parameters:
vendorAttributes
- the vendor attributesoids
- the SNMP OIDs to collectreplacementMap
- the replacement map
-
EntityPhysicalTableTracker
public EntityPhysicalTableTracker(RowCallback rowProcessor, SnmpObjId[] oids)
The Constructor.- Parameters:
rowProcessor
- the row processoroids
- the OIDs
-
-
Method Detail
-
createRowResult
public SnmpRowResult createRowResult(int columnCount, SnmpInstId instance)
- Specified by:
createRowResult
in interfaceRowResultFactory
- Overrides:
createRowResult
in classTableTracker
-
rowCompleted
public void rowCompleted(SnmpRowResult row)
- Specified by:
rowCompleted
in interfaceRowCallback
- Overrides:
rowCompleted
in classTableTracker
-
getRootEntity
public OnmsHwEntity getRootEntity()
Gets the root entity.- Returns:
- the root entity
-
-