com.tivoli.twg.snmp
Class TWGSNMPAddressEntryShadow

java.lang.Object
  extended bycom.tivoli.twg.snmp.TWGSNMPAddressEntryShadow
All Implemented Interfaces:
AddressEntryShadow
Direct Known Subclasses:
TWGRMONAddressEntryShadow

public class TWGSNMPAddressEntryShadow
extends java.lang.Object
implements AddressEntryShadow

Implementation of address entry shadow for TWGSNMPDevice.


Field Summary
static int MAGIC_NUMBER
           
static int MAGIC_NUMBER_V2
           
static int MAGIC_NUMBER_V3
           
static int OLD_MAGIC_NUMBER
           
 
Constructor Summary
TWGSNMPAddressEntryShadow()
          Default constructor
 
Method Summary
 java.lang.String GetAddress()
           
 java.lang.String getAddressAttribute(java.lang.String symname)
          Get string representation of attribute with given symbolic name
 java.lang.String[] getAddressAttributeIDs()
          Get symbolic names for all attributes supported
 java.lang.String getAddressAttributeLabel(java.lang.String symname, java.util.Locale loc)
          Get label for attribute with given symbolic name
 com.tivoli.twg.snmp.SNMPAddressBlock[] getAddressBlocks()
           
 java.lang.String GetContext()
           
 long GetID()
           
 java.lang.String GetTitle()
           
 int getVersion()
           
 void initAddressEntry(byte[] buf, int start, int len)
          Deliver address entry record to initialize AddressEntryShadow data content
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAGIC_NUMBER

public static final int MAGIC_NUMBER
See Also:
Constant Field Values

MAGIC_NUMBER_V3

public static final int MAGIC_NUMBER_V3
See Also:
Constant Field Values

MAGIC_NUMBER_V2

public static final int MAGIC_NUMBER_V2
See Also:
Constant Field Values

OLD_MAGIC_NUMBER

public static final int OLD_MAGIC_NUMBER
See Also:
Constant Field Values
Constructor Detail

TWGSNMPAddressEntryShadow

public TWGSNMPAddressEntryShadow()
Default constructor

Method Detail

initAddressEntry

public void initAddressEntry(byte[] buf,
                             int start,
                             int len)
                      throws AddressEntryFormatException
Deliver address entry record to initialize AddressEntryShadow data content

Specified by:
initAddressEntry in interface AddressEntryShadow
Parameters:
buf - - buffer containing address entry record
start - - offset of start of record in buffer
len - - length of record in buffer
Throws:
AddressEntryFormatException - if improper address record

getAddressAttributeIDs

public java.lang.String[] getAddressAttributeIDs()
Get symbolic names for all attributes supported

Specified by:
getAddressAttributeIDs in interface AddressEntryShadow
Returns:
string array of address attribute symbol names

getAddressAttribute

public java.lang.String getAddressAttribute(java.lang.String symname)
Get string representation of attribute with given symbolic name

Specified by:
getAddressAttribute in interface AddressEntryShadow
Parameters:
symname - - symbolic name of attribute to request
Returns:
string value of attribute (null if no value)

getAddressAttributeLabel

public java.lang.String getAddressAttributeLabel(java.lang.String symname,
                                                 java.util.Locale loc)
Get label for attribute with given symbolic name

Specified by:
getAddressAttributeLabel in interface AddressEntryShadow
Parameters:
symname - - symbolic name of attribute to get label
loc - - locale to use for label information
Returns:
label string

GetAddress

public java.lang.String GetAddress()

getVersion

public int getVersion()

GetContext

public java.lang.String GetContext()

GetTitle

public java.lang.String GetTitle()

GetID

public long GetID()

getAddressBlocks

public com.tivoli.twg.snmp.SNMPAddressBlock[] getAddressBlocks()