|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGDistConfigRecordHashcode
Record ID and hashcode data.
Field Summary | |
---|---|
static int |
FLAGS_ISAGENTOWNED
Flags field : is agent-owned record |
static int |
FLAGS_ISDELETED
Flags field : is deleted |
static int |
FLAGS_ISGROUP
Flags field : is group record |
static int |
REC_FLAGS_OFF
|
static int |
REC_HASHCODE_OFF
|
static int |
REC_HEADERLEN
|
static int |
REC_LENDATA_OFF
|
static int |
REC_OBJECTID_OFF
|
static int |
REC_OFFDATA_OFF
|
static int |
REC_OFFRECID_OFF
|
static int |
REC_OVERALLLEN_OFF
Byte-encoded record format: unsigned long overall_len; // overall record length unsigned long object_id; // object ID unsigned long flags; // record flags unsigned short off_rec_id; // offset to record ID (UTF8) : also header length unsigned short off_data; // offset to data bytes (0 if none) unsigned long len_data; // length of data bytes (0 if none) unsigned char hashcode[16]; // data record hashcode |
Constructor Summary | |
---|---|
TWGDistConfigRecordHashcode(byte[] rec,
int recoff)
Constructor for object : uses byte-encoded record generated with getByteEncoded() |
|
TWGDistConfigRecordHashcode(java.lang.String rec_id,
long oid,
boolean is_grp)
Constructor for object |
|
TWGDistConfigRecordHashcode(java.lang.String rec_id,
long oid,
boolean is_grp,
boolean is_agt_owned)
Constructor for object |
|
TWGDistConfigRecordHashcode(java.lang.String rec_id,
long oid,
int flgs)
Constructor for object |
Method Summary | |
---|---|
static byte[] |
computeHashcode(java.lang.String rec_id,
byte[] buf,
int off,
int len,
long obj_id,
boolean is_agent_owned)
Compute hashcode, using given record data buffer |
void |
computeRecordHashcode(byte[] buf,
int off,
int len)
Compute hashcode, using given record data buffer |
byte[] |
getByteEncoded()
Get byte-encoded representation of record |
byte[] |
getDataRecord()
Read data record associated with hashcode record : only useable in engine JVM. |
byte[] |
getHashcode()
Get hashcode value |
long |
getObjectID()
Get object ID |
java.lang.String |
getRecordID()
Get record ID |
boolean |
isAgentOwned()
Is object ID a group ID |
boolean |
isDeleted()
Is deleted record |
boolean |
isGroupID()
Is object ID a group ID |
void |
setHashcode(byte[] hash)
Set hashcode value |
void |
setObjectID(long oid)
Set object ID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int FLAGS_ISGROUP
public static final int FLAGS_ISAGENTOWNED
public static final int FLAGS_ISDELETED
public static final int REC_OVERALLLEN_OFF
public static final int REC_OBJECTID_OFF
public static final int REC_FLAGS_OFF
public static final int REC_OFFRECID_OFF
public static final int REC_OFFDATA_OFF
public static final int REC_LENDATA_OFF
public static final int REC_HASHCODE_OFF
public static final int REC_HEADERLEN
Constructor Detail |
public TWGDistConfigRecordHashcode(java.lang.String rec_id, long oid, boolean is_grp)
rec_id
- - record IDoid
- - object IDis_grp
- - true if group id, false if managed object idpublic TWGDistConfigRecordHashcode(java.lang.String rec_id, long oid, boolean is_grp, boolean is_agt_owned)
rec_id
- - record IDoid
- - object IDis_grp
- - true if group id, false if managed object idis_agt_owned
- - true if agent owned, false if server ownedpublic TWGDistConfigRecordHashcode(java.lang.String rec_id, long oid, int flgs)
rec_id
- - record IDoid
- - object IDflgs
- - record flagspublic TWGDistConfigRecordHashcode(byte[] rec, int recoff)
rec
- - record bufferrecoff
- - record offsetMethod Detail |
public java.lang.String getRecordID()
public long getObjectID()
public void setObjectID(long oid)
oid
- - object IDpublic boolean isGroupID()
public boolean isAgentOwned()
public boolean isDeleted()
public byte[] getHashcode()
public void setHashcode(byte[] hash)
hash
- - byte[16] value for hashcode (or null for no hashcode)public void computeRecordHashcode(byte[] buf, int off, int len)
buf
- - buffer containing recordoff
- - offset of record startlen
- - length of recordpublic static byte[] computeHashcode(java.lang.String rec_id, byte[] buf, int off, int len, long obj_id, boolean is_agent_owned)
rec_id
- - record IDbuf
- - buffer containing recordoff
- - offset of record startlen
- - length of recordobj_id
- - object IDis_agent_owned
- - true if agent ownedpublic byte[] getDataRecord()
public byte[] getByteEncoded()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |