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(Map<SnmpObjId,HwEntityAttributeType> vendorAttributes, SnmpObjId[] oids, Map<String,String> replacementMap)The Constructor.EntityPhysicalTableTracker(RowCallback rowProcessor, SnmpObjId[] oids)The Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnmpRowResultcreateRowResult(int columnCount, SnmpInstId instance)OnmsHwEntitygetRootEntity()Gets the root entity.voidrowCompleted(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(Map<SnmpObjId,HwEntityAttributeType> vendorAttributes, SnmpObjId[] oids, Map<String,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:
createRowResultin interfaceRowResultFactory- Overrides:
createRowResultin classTableTracker
-
rowCompleted
public void rowCompleted(SnmpRowResult row)
- Specified by:
rowCompletedin interfaceRowCallback- Overrides:
rowCompletedin classTableTracker
-
getRootEntity
public OnmsHwEntity getRootEntity()
Gets the root entity.- Returns:
- the root entity
-
-