|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.archive.events.GenerateFragsBlkReq
GenerateFragsBlkReq
is an event class that generates
Fragments
for a
block
.
The required fields are
blockId
(CacheableIdentity
of
block
),
numFragments
(number of
Fragments
generated for
block
),
inverseRate
(inverse rate of
encoding
),
erasureType
(code
for the
type of erasure
code to use).
GenerateFragsBlkResp
,
GenerateFragsChkptReq
,
Fragment
,
Erasure
Field Summary | |
---|---|
CacheableIdentity |
blockId
blockId == CacheableIdentity of block. |
int |
blockSize
blockSize stores all the block size of each block, except the topblock can be larger or smaller. |
int |
erasureType
erasureType == code for the type of erasure code to use. |
CacheablePinned |
handle
handle to block itself |
int |
inverseRate
inverseRate == rate of encoding. |
int |
numFragments
numFragments == number of fragments generated for block. |
CacheableIdentity |
parentBlockId
parentBlockId == CacheableIdentity of parent block. |
SinkIF |
sink
Requestor sink to use to return
the response . |
Object |
userData
Requestor defined object to be returned in the response . |
Constructor Summary | |
---|---|
GenerateFragsBlkReq()
Constructor: Initializes instance variables to null. |
|
GenerateFragsBlkReq(CacheableIdentity id,
int numFrags,
int inverseR,
int erasureT,
int bSize,
CacheableIdentity parentId,
CacheablePinned handle,
Object userData,
SinkIF sink)
Constructor. |
|
GenerateFragsBlkReq(InputBuffer buffer)
Constructs a GenerateFragsBlkReq from its
serialized form. |
Method Summary | |
---|---|
void |
serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable |
String |
toString()
Specified by java.lang.Object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public CacheableIdentity blockId
public int numFragments
public int inverseRate
public int erasureType
public int blockSize
public CacheableIdentity parentBlockId
public CacheablePinned handle
public Object userData
response
.
public SinkIF sink
sink
to use to return
the response
.
Constructor Detail |
public GenerateFragsBlkReq()
public GenerateFragsBlkReq(CacheableIdentity id, int numFrags, int inverseR, int erasureT, int bSize, CacheableIdentity parentId, CacheablePinned handle, Object userData, SinkIF sink)
id
- cacheable identity of block.numFrags
- number of fragments generated for block.inverseR
- rate of encoding.erasureT
- code for the type of erasure code to use.bSize
- size of block in bytes.parentId
- CacheableIdentity
for parent blockhandle
- handle
of parent block.userData
- Requestor defined object to be returned with response.sink
- Requestor sink to return resp.public GenerateFragsBlkReq(InputBuffer buffer) throws QSException
GenerateFragsBlkReq
from its
serialized
form.
buffer
- serialized
form of object.Method Detail |
public void serialize(OutputBuffer buffer)
serialize
in interface QuickSerializable
buffer
- the output buffer to add the object topublic String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |