com.tivoli.twg.engine
Class TWGDistConfigRecord

java.lang.Object
  extended bycom.tivoli.twg.engine.TWGDistConfigRecordHashcode
      extended bycom.tivoli.twg.engine.TWGDistConfigRecord

public class TWGDistConfigRecord
extends TWGDistConfigRecordHashcode

Containter for distributed configuration record data


Field Summary
 
Fields inherited from class com.tivoli.twg.engine.TWGDistConfigRecordHashcode
FLAGS_ISAGENTOWNED, FLAGS_ISDELETED, FLAGS_ISGROUP, REC_FLAGS_OFF, REC_HASHCODE_OFF, REC_HEADERLEN, REC_LENDATA_OFF, REC_OBJECTID_OFF, REC_OFFDATA_OFF, REC_OFFRECID_OFF, REC_OVERALLLEN_OFF
 
Constructor Summary
TWGDistConfigRecord(java.lang.String rec_id, long oid, boolean is_grp, byte[] buf, int buf_off, int buf_len)
          Constructor for record
TWGDistConfigRecord(java.lang.String rec_id, long oid, int flgs, byte[] buf, int buf_off, int buf_len)
          Constructor for record
 
Method Summary
 byte[] getByteEncoded()
          Get byte-encoded representation of record
 byte[] getRecordData()
          Get record data
 int getRecordLength()
          Get record length
 void replaceRecordData(byte[] buf, int buf_off, int buf_len)
          Replace record data : updates hashcode
 
Methods inherited from class com.tivoli.twg.engine.TWGDistConfigRecordHashcode
computeHashcode, computeRecordHashcode, getDataRecord, getHashcode, getObjectID, getRecordID, isAgentOwned, isDeleted, isGroupID, setHashcode, setObjectID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TWGDistConfigRecord

public TWGDistConfigRecord(java.lang.String rec_id,
                           long oid,
                           boolean is_grp,
                           byte[] buf,
                           int buf_off,
                           int buf_len)
Constructor for record

Parameters:
rec_id - - record ID
oid - - object ID
is_grp - - true if group id, false if managed object id
buf - - buffer containing record
buf_off - - offset of record in buffer
buf_len - - length of record in buffer;

TWGDistConfigRecord

public TWGDistConfigRecord(java.lang.String rec_id,
                           long oid,
                           int flgs,
                           byte[] buf,
                           int buf_off,
                           int buf_len)
Constructor for record

Parameters:
rec_id - - record ID
oid - - object ID
flgs - - record flags
buf - - buffer containing record
buf_off - - offset of record in buffer
buf_len - - length of record in buffer;
Method Detail

getRecordLength

public int getRecordLength()
Get record length


getRecordData

public byte[] getRecordData()
Get record data


replaceRecordData

public void replaceRecordData(byte[] buf,
                              int buf_off,
                              int buf_len)
Replace record data : updates hashcode

Parameters:
buf - - buffer containing record
buf_off - - offset of record in buffer
buf_len - - length of record in buffer;

getByteEncoded

public byte[] getByteEncoded()
Get byte-encoded representation of record

Overrides:
getByteEncoded in class TWGDistConfigRecordHashcode