- java.lang.Object
-
- org.snmp4j.agent.util.IndexGenerator
-
public class IndexGenerator extends Object
TheIndexGenerator
class can be used to generate a sequence of unique index values.- Version:
- 1.0
- Author:
- Frank Fock
-
-
Constructor Summary
Constructors Constructor Description IndexGenerator(org.snmp4j.smi.Variable seedSubIndex)
Creates a sub-index sequence generator based on a seed value.IndexGenerator(org.snmp4j.smi.Variable seedSubIndex, boolean impliedLength)
Creates a sub-index sequence generator based on a seed value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.snmp4j.smi.OID
getNextSubIndex()
Creates the next sub-index OID value.
-
-
-
Constructor Detail
-
IndexGenerator
public IndexGenerator(org.snmp4j.smi.Variable seedSubIndex)
Creates a sub-index sequence generator based on a seed value.- Parameters:
seedSubIndex
- the seed value to start with (the seed itself will never be returned).
-
IndexGenerator
public IndexGenerator(org.snmp4j.smi.Variable seedSubIndex, boolean impliedLength)
Creates a sub-index sequence generator based on a seed value.- Parameters:
seedSubIndex
- the seed value to start with (the seed itself will never be returned).impliedLength
- iftrue
the length will not be included in the returned sub-index for variable-length types.
-
-