Class AbstractSnmpScanner
- java.lang.Object
-
- org.opennms.netmgt.provision.scan.snmp.AbstractSnmpScanner
-
- All Implemented Interfaces:
Scanner
- Direct Known Subclasses:
SnmpNodeScanner
public class AbstractSnmpScanner extends java.lang.Object implements Scanner
AbstractSnmpScanner class.
- Version:
- $Id: $
- Author:
- brozow
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AbstractSnmpScanner.SnmpExchange
static interface
AbstractSnmpScanner.Storer
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSnmpScanner(java.lang.String name)
Constructor for AbstractSnmpScanner.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
getNameprotected AbstractSnmpScanner.SnmpExchange
getSingleInstance(java.lang.String base, java.lang.String inst)
getSingleInstancevoid
init()
initprotected void
onInit()
onInitvoid
scan(ScanContext context)
scanvoid
setSnmpAgentConfigFactory(SnmpAgentConfigFactory snmpPeerFactory)
setSnmpAgentConfigFactory
-
-
-
Method Detail
-
getName
public java.lang.String getName()
getName
- Returns:
- a
String
object.
-
setSnmpAgentConfigFactory
public void setSnmpAgentConfigFactory(SnmpAgentConfigFactory snmpPeerFactory)
setSnmpAgentConfigFactory
- Parameters:
snmpPeerFactory
- aSnmpAgentConfigFactory
object.
-
onInit
protected void onInit()
onInit
-
scan
public void scan(ScanContext context) throws java.lang.InterruptedException
scan
- Specified by:
scan
in interfaceScanner
- Parameters:
context
- aScanContext
object.- Throws:
java.lang.InterruptedException
-
getSingleInstance
protected AbstractSnmpScanner.SnmpExchange getSingleInstance(java.lang.String base, java.lang.String inst)
getSingleInstance
- Parameters:
base
- aString
object.inst
- aString
object.- Returns:
- a
AbstractSnmpScanner.SnmpExchange
object.
-
-