|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.snmp4j.agent.mo.jmx.util.AbstractSyntheticJMXIndexSupport
public abstract class AbstractSyntheticJMXIndexSupport
The 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.
Field Summary | |
---|---|
protected KeyIndexRelation |
keyIndexRelation
|
Constructor Summary | |
---|---|
AbstractSyntheticJMXIndexSupport()
|
|
AbstractSyntheticJMXIndexSupport(int initialSize)
|
Method Summary | |
---|---|
protected org.snmp4j.smi.OID |
allocateNewIndex(java.lang.Object rowIdentifier)
|
java.lang.Object |
getRowIdentifier(java.lang.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(java.lang.Object rowIdentifier)
Maps a row identifier (i.e., an Object returned by JMXIndexSupport.getRowIdentifier(java.lang.Object, int) ) to a row index. |
java.lang.Object |
mapToRowIdentifier(org.snmp4j.smi.OID rowIndex)
Maps a row index OID to an object describing a row index internally. |
abstract javax.management.ObjectName |
mapToRowMBean(java.lang.Object rowIdentifier)
Maps a row identifier to a MBean object name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected KeyIndexRelation keyIndexRelation
Constructor Detail |
---|
public AbstractSyntheticJMXIndexSupport()
public AbstractSyntheticJMXIndexSupport(int initialSize)
Method Detail |
---|
public org.snmp4j.smi.OID mapToIndex(java.lang.Object rowIdentifier)
JMXIndexSupport
JMXIndexSupport.getRowIdentifier(java.lang.Object, int)
) to a row index.
mapToIndex
in interface JMXIndexSupport
rowIdentifier
- an Object describing a row index.
protected org.snmp4j.smi.OID allocateNewIndex(java.lang.Object rowIdentifier)
public abstract javax.management.ObjectName mapToRowMBean(java.lang.Object rowIdentifier)
JMXIndexSupport
null
is returned.
mapToRowMBean
in interface JMXIndexSupport
rowIdentifier
- 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 java.lang.Object mapToRowIdentifier(org.snmp4j.smi.OID rowIndex)
JMXIndexSupport
mapToRowIdentifier
in interface JMXIndexSupport
rowIndex
- a row index OID.
public java.lang.Object getRowIdentifier(java.lang.Object nativeRowId, int nativeRowIndex)
JMXIndexSupport
getRowIdentifier
in interface JMXIndexSupport
nativeRowId
- an Object identifying a row.nativeRowIndex
- optionally the index of the row into an internal array.
|
Copyright 2006-2007 Frank Fock (SNMP4J.org) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |