public abstract class AbstractSyntheticJMXIndexSupport extends Object implements JMXIndexSupport
AbstractSyntheticJMXIndexSupport maps a synthtically
generated index to a JMX row identifier and vice versa. The synthetic
index is generated by using the hash code of the JMX row identifier
converted to a String.| Modifier and Type | Field and Description |
|---|---|
protected KeyIndexRelation |
keyIndexRelation |
| Constructor and Description |
|---|
AbstractSyntheticJMXIndexSupport() |
AbstractSyntheticJMXIndexSupport(int initialSize) |
| Modifier and Type | Method and Description |
|---|---|
protected org.snmp4j.smi.OID |
allocateNewIndex(Object rowIdentifier) |
Object |
getRowIdentifier(Object nativeRowId,
int nativeRowIndex)
Maps a native object identifying a row or alternatively the row's index
into an internal array (e.g., an array returned by a MBean method).
|
org.snmp4j.smi.OID |
mapToIndex(Object rowIdentifier)
Maps a row identifier (i.e., an Object returned by
JMXIndexSupport.getRowIdentifier(java.lang.Object, int)) to a row index. |
Object |
mapToRowIdentifier(org.snmp4j.smi.OID rowIndex)
Maps a row index OID to an object describing a row index internally.
|
abstract ObjectName |
mapToRowMBean(Object rowIdentifier)
Maps a row identifier to a MBean object name.
|
protected KeyIndexRelation keyIndexRelation
public AbstractSyntheticJMXIndexSupport()
public AbstractSyntheticJMXIndexSupport(int initialSize)
public org.snmp4j.smi.OID mapToIndex(Object rowIdentifier)
JMXIndexSupportJMXIndexSupport.getRowIdentifier(java.lang.Object, int)) to a row index.mapToIndex in interface JMXIndexSupportrowIdentifier - an Object describing a row index.protected org.snmp4j.smi.OID allocateNewIndex(Object rowIdentifier)
public abstract ObjectName mapToRowMBean(Object rowIdentifier)
JMXIndexSupportnull is returned.mapToRowMBean in interface JMXIndexSupportrowIdentifier - the row identifier which may be also a native index value into an
array or list of MBean attribute values.rowIdentifier. If rowIdentifier is a
Integer and null is returned, the caller
should use the rowIdentifier value as index into the value list.public Object mapToRowIdentifier(org.snmp4j.smi.OID rowIndex)
JMXIndexSupportmapToRowIdentifier in interface JMXIndexSupportrowIndex - a row index OID.public Object getRowIdentifier(Object nativeRowId, int nativeRowIndex)
JMXIndexSupportgetRowIdentifier in interface JMXIndexSupportnativeRowId - an Object identifying a row.nativeRowIndex - optionally the index of the row into an internal array.Copyright © 2015 SNMP4J.org. All rights reserved.