|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.cache.TestBlock
Constructor Summary | |
---|---|
TestBlock()
create an empty test block with no guid and vhash. |
|
TestBlock(InputBuffer buffer)
convert a byte[] into the object byte[] will have the following format: | id | bool haveGuid | guid if haveGuid==true | bool haveVHash | vhash if haveVHash==true |
|
TestBlock(SecureHash guid,
SecureHash vhash)
create a TestBlock with the specified guid and vhash |
|
TestBlock(SecureHash guid,
SecureHash vhash,
int count)
create a TestBlock with the specified guid and vhash reset the count (debugging purposes) |
Method Summary | |
---|---|
SecureHash |
getDiss()
|
SecureHash |
getDissBucket()
|
SecureHash |
getGuid()
|
SecureHash |
getVHash()
|
void |
serialize(OutputBuffer buffer)
Add the object to the buffer . |
void |
setDiss(SecureHash guid)
|
void |
setDissBucket(SecureHash guid)
|
void |
setGuid(SecureHash guid)
|
void |
setVHash(SecureHash vhash)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TestBlock()
public TestBlock(SecureHash guid, SecureHash vhash)
public TestBlock(SecureHash guid, SecureHash vhash, int count)
public TestBlock(InputBuffer buffer) throws QSException
Method Detail |
public SecureHash getGuid()
public SecureHash getVHash()
public void setGuid(SecureHash guid)
public void setVHash(SecureHash vhash)
public SecureHash getDiss()
public SecureHash getDissBucket()
public void setDiss(SecureHash guid)
public void setDissBucket(SecureHash guid)
public void serialize(OutputBuffer buffer)
QuickSerializable
buffer
.
serialize
in interface QuickSerializable
buffer
- the output buffer to add the object to
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |