com.adventnet.snmp.snmp2
Class SnmpTargetAddrExtEntry

java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.SnmpTargetAddrExtEntry

public class SnmpTargetAddrExtEntry
extends java.lang.Object
implements java.io.Serializable

The SnmpTargetAddrExtEntry holds the information about a particular mask and maximum message size (mms) value. This table augments the SnmpTargetAddrTable with a transport address mask value and a maximum message size value. The mask value is used to select the bits of a transport address which should match with the bits of the corresponding instance of snmpTargetAddrTAddress, by which the former can match a particular entry in the snmpTargetAddrTable.

See Also:
Serialized Form

Constructor Summary
SnmpTargetAddrExtEntry()
          Default Constructor.
SnmpTargetAddrExtEntry(byte[] maskAddr, int mmsVal)
          Constructs a new SnmpTargetAddrExtEntry with the specified snmpTargetAddrTMask and snmpTargetAddrMMS value.
 
Method Summary
 java.lang.Object getKey()
          Retrieves the key for this targetAddrExtEntry.
static java.lang.Object getKey(byte[] addrName)
          Retrieves the key for this address Name object.
 int getSnmpTargetAddrMMS()
          Gets the snmpTargetAddrMMS associated with this object.
 byte[] getSnmpTargetAddrTMask()
          Gets the snmpTargetAddrTMask associated with this object.
 SnmpTargetAddrEntry getTargetAddrEntry()
          Retrieves the SnmpTargetAddrEntry associated with this object.
 void setSnmpTargetAddrMMS(int mmsVal)
          Sets the snmpTargetAddrTMMS value associated with this object.
 void setSnmpTargetAddrTMask(byte[] maskAddr)
          Sets the snmpTargetAddrTMask value associated with this object.
 void setTargetAddrEntry(SnmpTargetAddrEntry tAddrEntry)
          Sets the snmpTargetAddrEntry value associated with this object.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpTargetAddrExtEntry

public SnmpTargetAddrExtEntry(byte[] maskAddr,
                              int mmsVal)
Constructs a new SnmpTargetAddrExtEntry with the specified snmpTargetAddrTMask and snmpTargetAddrMMS value.
Parameters:
maskAddr - The snmpTargetAddrTMask to be used for creating a new SnmpTargetAddrExtEntry.
mmsVal - The snmpTargetAddrMMS to be used for creating a new SnmpTargetAddrExtEntry.

SnmpTargetAddrExtEntry

public SnmpTargetAddrExtEntry()
Default Constructor.
Method Detail

setSnmpTargetAddrTMask

public void setSnmpTargetAddrTMask(byte[] maskAddr)
Sets the snmpTargetAddrTMask value associated with this object. The value of this object must have the same length as the corresponding instance of snmpTargetAddrTAddress, or must have length 0.
Parameters:
maskAddr - The snmpTargetAddrTMask value to be associated with this object.

getSnmpTargetAddrTMask

public byte[] getSnmpTargetAddrTMask()
Gets the snmpTargetAddrTMask associated with this object.
Returns:
the snmpTargetAddrTMask associated with this object.

setSnmpTargetAddrMMS

public void setSnmpTargetAddrMMS(int mmsVal)
Sets the snmpTargetAddrTMMS value associated with this object.
Parameters:
mmsVal - The snmpTargetAddrTMMS value to be associated with this object.

getSnmpTargetAddrMMS

public int getSnmpTargetAddrMMS()
Gets the snmpTargetAddrMMS associated with this object.
Returns:
the snmpTargetAddrMMS associated with this object.

getTargetAddrEntry

public SnmpTargetAddrEntry getTargetAddrEntry()
Retrieves the SnmpTargetAddrEntry associated with this object.
Returns:
The SnmpTargetAddrEntry associated with this object.

setTargetAddrEntry

public void setTargetAddrEntry(SnmpTargetAddrEntry tAddrEntry)
Sets the snmpTargetAddrEntry value associated with this object.
Parameters:
tAddrEntry - The SnmpTargetAddrEntry value to be associated with this object.

getKey

public static java.lang.Object getKey(byte[] addrName)
Retrieves the key for this address Name object.
Returns:
The key as a String Buffer Object.

getKey

public java.lang.Object getKey()
Retrieves the key for this targetAddrExtEntry.
Returns:
the key as a String Buffer Object.