|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.archive.ArchiveObjBucket
The ArchiveObjBucket
is a hashtable bucket that stores
the necessary references to archive or recoalesce a DataObject
.
GenerateChkptStage
Constructor Summary | |
---|---|
ArchiveObjBucket()
Default constructor |
|
ArchiveObjBucket(NodeId selfNodeId)
Constructor. |
|
ArchiveObjBucket(SecureHash reqVersion,
int numFrags,
int inverseR,
int erasureT,
NodeId selfNodeId,
HandleStore store)
Constructor. |
|
ArchiveObjBucket(SecureHash reqVersion,
int offset,
int length,
NodeId selfNodeId,
HandleStore store)
Constructor. |
Method Summary | |
---|---|
void |
addObjSize(int size)
addObjSize add the obj size to the total size of the
archival or recoalescing process. |
SecureHash |
get(SecureHash key)
get returns an entry from the block map that matches the
key. |
Map |
getBlkBuckets()
getBlkBuckets returns the block map. |
Map |
getBlockIds()
getBlockIds returns a map of
fhash's created from the GenerateFragsStage . |
int |
getBlockSize()
getBlockSize returns the block size used for each block,
except the topblock can be larger or smaller. |
SecureHash |
getChkpt()
getChkpt returns the guid of the checkpoint. |
long |
getCodeHandlerTimeSquareSum()
getCodeTimeSquareSum return total square sum time coding the
current object. |
long |
getCodeHandlerTimeSum()
getCodeTimeSum return total sum time coding the
current object. |
long |
getCodeMethodTimeSquareSum()
getCodeTimeSquareSum return total square sum time coding the
current object. |
long |
getCodeMethodTimeSum()
getCodeTimeSum return total sum time coding the
current object. |
long |
getCodeTime()
getCodeTime return total coding time of the
current object. |
long |
getCodeTimeCount()
getCodeTimeCount return total count of times summed
together. |
long |
getCodeTimeSquareSum()
getCodeTimeSquareSum return total square sum time coding the
current object. |
long |
getCodeTimeSum()
getCodeTimeSum return total sum time coding the
current object. |
long |
getCodeTotalTimeSquareSum()
getCodeTimeSquareSum return total square sum time coding the
current object. |
long |
getCodeTotalTimeSum()
getCodeTimeSum return total sum time coding the
current object. |
long |
getCodeVHashTreeTimeSquareSum()
getCodeTimeSquareSum return total square sum time coding the
current object. |
long |
getCodeVHashTreeTimeSum()
getCodeTimeSum return total sum time coding the
current object. |
boolean |
getCommit()
|
Map |
getDisseminateBucket()
getDisseminateBucket returns a map of
dissemination buckets to disseminate. |
Map |
getDisseminateGuid()
getDisseminateGuid returns a map of guid's for
dissemination buckets to disseminate and their block types. |
long |
getEndTime()
getEndTime return the endTime of the archiving
or recoalescing process. |
int |
getErasureType()
getErasureType returns the type of erasure code to use. |
HandleStore |
getHandleStore()
getHandleStore returns the handleStore that stores all the
handles for blocks being archived. |
int |
getInverseRate()
getInverseRate returns the inverse rate of encoding. |
int |
getLength()
getLength returns the number of data bytes to read.
|
Object |
getModifiedVHash(SecureHash key)
getModifiedVHash returns the Object (i.e. pending block)
associated with guid. |
Map |
getModifiedVHashes()
getModifiedVHashes returns a map of modified
vhashes. |
int |
getNumFragments()
getNumFragments returns the number of fragments
to generate for each block. |
int |
getNumPendingBlk()
getNumPendingBlk returns number of pending blocks. |
int |
getOffset()
getOffset returns the position in data byte sequence to
start reconstruction. |
Object |
getPendingBlk(SecureHash guid)
getPendingBlk returns the Object (i.e. pending block)
associated with guid. |
Iterator |
getPendingBlks()
getPendingBlks returns the GUIDs of the blks which
have been requested, but which have yet to be encoded or recoalesced |
SecureHash |
getReqVersion()
getReqVersion returns the guid of the requested obj. |
long |
getStartTime()
getStartTime return the startTime of the archiving
or recoalescing process. |
CacheableIdentity |
getTopBlockId()
|
int |
getTotalBlockSizes()
getTotalBlockSizes returns the total size of all
VerifiableBlocks being archived or
reconstructed. |
int |
getTotalDisseminateSizes()
getTotalDisseminateSizes returns the total disseminate size
of all VerifiableBlocks being
archived or reconstructed. |
int |
getTotalErasureBlockSizes()
getTotalErasureBlockSizes returns the total Erasure
size of all VerifiableBlocks being
archived or reconstructed. |
int |
getTotalObjSizes()
getTotalObjSizes returns the total size of object that
includes all VerifiableBlocks being
archived or reconstructed. |
long |
getType(SecureHash guid)
getType returns type of block associated with
guid. |
SecureHash |
getVGuid()
|
void |
incrCodeHandlerTimeSquareSum(long timeSq)
incrCodeTimeSquareSum increment the total squared sum
time coding the current object. |
void |
incrCodeHandlerTimeSum(long time)
incrCodeTimeSum increment the total sum time coding the
current object. |
void |
incrCodeMethodTimeSquareSum(long timeSq)
incrCodeTimeSquareSum increment the total squared sum
time coding the current object. |
void |
incrCodeMethodTimeSum(long time)
incrCodeTimeSum increment the total sum time coding the
current object. |
void |
incrCodeTimeCount()
incrCodeTimeCount increment the total count of
coding times summed by one. |
void |
incrCodeTimeCount(long count)
incrCodeTimeCount increment the total count of times summed
together by count . |
void |
incrCodeTimeSquareSum(long timeSq)
incrCodeTimeSquareSum increment the total squared sum
time coding the current object. |
void |
incrCodeTimeSum(long time)
incrCodeTimeSum increment the total sum time coding the
current object. |
void |
incrCodeTotalTimeSquareSum(long timeSq)
incrCodeTimeSquareSum increment the total squared sum
time coding the current object. |
void |
incrCodeTotalTimeSum(long time)
incrCodeTimeSum increment the total sum time coding the
current object. |
void |
incrCodeVHashTreeTimeSquareSum(long timeSq)
incrCodeTimeSquareSum increment the total squared sum
time coding the current object. |
void |
incrCodeVHashTreeTimeSum(long time)
incrCodeTimeSum increment the total sum time coding the
current object. |
void |
incrTotalBlockSizes(int size)
incrTotalBlockSizes add the size to the total block size of
the archival or recoalescing process. |
void |
incrTotalDisseminateSizes(int size)
incrTotalDisseminateSizes add the size to the total
disseminate size of the archival or recoalescing process. |
void |
incrTotalErasureBlockSizes(int size)
incrTotalErasureBlockSizes add the size to the total
erasure block of the archival or recoalescing process. |
Object |
removePendingBlk(SecureHash guid)
removePendingBlk removes the block associated with the
block GUID from the list of pending blks. |
long |
removeType(SecureHash guid)
removeType removes the block type associated with the
block GUID. |
void |
reset()
reset state and incorporate specified
parameters. |
void |
reset(SecureHash reqVersion,
int numFrags,
int inverseR,
int erasureT,
NodeId selfNodeId,
HandleStore store)
reset state and incorporate specified
parameters. |
SecureHash |
set(SecureHash chkptGuid,
SecureHash vGuid)
set adds a recoalesced obj to the growing obj hash table. |
Object |
setBlockId(Object blkVHash,
Object fhash)
setDisseminateGuid adds a map entry of fhash
associated to blkVHash of block just archived. |
void |
setBlockSize(int size)
setBlockSize sets the block size used for each block,
except the topblock can be larger or smaller. |
void |
setChkpt(SecureHash chkpt)
getChkpt sets the guid of the checkpoint. |
void |
setCommit(boolean commit)
|
Object |
setDisseminateBucket(Object guid,
DisseminatableBucket db)
setDisseminateBucket adds a map entry of blkVHash to
Dissemination Bucket. |
Object |
setDisseminateGuid(Object guid,
Object type)
setDisseminateGuid adds a map entry of Guid of
Dissemination Bucket to disseminate and that block type. |
void |
setEndTime(long time)
setEndTime set the endTime of the archiving
or recoalescing process. |
Object |
setModifiedVHash(Object key,
Object element)
sets a map entry of a modified
blocks vhash and corresponding guid or
|
Object |
setPendingBlk(SecureHash guid,
Object ancestor)
setPendingBlk adds an entry block GUID=>parent block
to the list of pending blks. |
void |
setReqVersion(SecureHash reqVersion)
getReqVersion sets the guid of the requested obj. |
void |
setStartTime(long time)
setStartTime set the startTime of the archiving
or recoalescing process. |
void |
setTopBlockId(CacheableIdentity topBlockId)
|
long |
setType(SecureHash guid,
long type)
setType add type of block associated with guid. |
void |
setVGuid(SecureHash vguid)
|
int |
sizeType()
sizeType returns the size of the the type map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ArchiveObjBucket()
public ArchiveObjBucket(NodeId selfNodeId)
ArchiveObjBucket
from specified
parameters.
selfNodeId
- NodeId of local machine. needed for current time.public ArchiveObjBucket(SecureHash reqVersion, int numFrags, int inverseR, int erasureT, NodeId selfNodeId, HandleStore store)
ArchiveObjBucket
from specified
parameters.
reqVersion
- Guid of requested version, a.k.a. V-GUID.numFrags
- number of fragments generated for block.inverseR
- inverse rate of encoding.erasureT
- type of erasure code to use.selfNodeId
- NodeId of local machine. needed for current time.public ArchiveObjBucket(SecureHash reqVersion, int offset, int length, NodeId selfNodeId, HandleStore store)
ArchiveObjBucket
from specified
parameters.
reqVersion
- Guid of requested version, a.k.a. V-GUID.length
- number of data bytes to read.
Set to -1 if want all bytes.offset
- position in data byte sequence to start reconstruction.selfNodeId
- NodeId of local machine. needed for current time.Method Detail |
public void reset(SecureHash reqVersion, int numFrags, int inverseR, int erasureT, NodeId selfNodeId, HandleStore store)
reset
state and incorporate specified
parameters.
reqVersion
- Guid of requested version, a.k.a. V-GUID.numFrags
- number of fragments generated for block.inverseR
- inverse rate of encoding.erasureT
- type of erasure code to use.selfNodeId
- NodeId of local machine. needed for current time.public void reset()
reset
state and incorporate specified
parameters.
public CacheableIdentity getTopBlockId()
public void setTopBlockId(CacheableIdentity topBlockId)
public SecureHash getVGuid()
public void setVGuid(SecureHash vguid)
public boolean getCommit()
public void setCommit(boolean commit)
public int sizeType()
sizeType
returns the size of the the type map.
public int getBlockSize()
getBlockSize
returns the block size used for each block,
except the topblock can be larger or smaller. This piece of information
is either retrieved from the version metadata on archive or from a
fragment on reconstruct.
public int getNumFragments()
getNumFragments
returns the number of fragments
to generate for each block.
public int getInverseRate()
getInverseRate
returns the inverse rate of encoding.
public int getErasureType()
getErasureType
returns the type of erasure code to use.
public int getOffset()
getOffset
returns the position in data byte sequence to
start reconstruction.
public int getLength()
getLength
returns the number of data bytes to read.
Set to -1 if want all bytes.
public HandleStore getHandleStore()
getHandleStore
returns the handleStore that stores all the
handles for blocks being archived.
public int getTotalBlockSizes()
getTotalBlockSizes
returns the total size of all
VerifiableBlocks
being archived or
reconstructed.
VerifiableBlocks
being archived or
reconstructed.public int getTotalErasureBlockSizes()
getTotalErasureBlockSizes
returns the total Erasure
size of all VerifiableBlocks
being
archived or reconstructed.
Erasure
VerifiableBlocks
being archived or
reconstructed.public int getTotalDisseminateSizes()
getTotalDisseminateSizes
returns the total disseminate size
of all VerifiableBlocks
being
archived or reconstructed.
VerifiableBlocks
being archived or
reconstructed.public int getTotalObjSizes()
getTotalObjSizes
returns the total size of object that
includes all VerifiableBlocks
being
archived or reconstructed.
VerifiableBlocks
being archived or
reconstructed.public SecureHash getReqVersion()
getReqVersion
returns the guid of the requested obj.
public SecureHash getChkpt()
getChkpt
returns the guid of the checkpoint.
public SecureHash get(SecureHash key)
get
returns an entry from the block map that matches the
key.
key
- guid of block.
public Map getBlkBuckets()
getBlkBuckets
returns the block map.
public Iterator getPendingBlks()
getPendingBlks
returns the GUIDs of the blks which
have been requested, but which have yet to be encoded or recoalesced
public Object getPendingBlk(SecureHash guid)
getPendingBlk
returns the Object (i.e. pending block)
associated with guid.
guid
- guid of pending block.
public int getNumPendingBlk()
getNumPendingBlk
returns number of pending blocks.
public long getType(SecureHash guid)
getType
returns type of block associated with
guid. (e.g. DataObject
, Btree.InteriorNode
,
or DataObject.DataBlock
).
public Map getDisseminateGuid()
getDisseminateGuid
returns a map of guid's for
dissemination buckets to disseminate and their block types.
public Map getDisseminateBucket()
getDisseminateBucket
returns a map of
dissemination buckets to disseminate.
public Map getBlockIds()
getBlockIds
returns a map of
fhash's created from the GenerateFragsStage
.
GenerateFragsStage
.public Map getModifiedVHashes()
getModifiedVHashes
returns a map of modified
vhashes. Map associates vhashes to there respective guid or
vhashes to a Collection
of interested blocks.
public Object getModifiedVHash(SecureHash key)
getModifiedVHash
returns the Object (i.e. pending block)
associated with guid.
key
- vhash of modified block.
Collection
of interested blocks.public void addObjSize(int size)
addObjSize
add the obj size to the total size of the
archival or recoalescing process.
size
- to be added to total size.
and their types.public void setBlockSize(int size)
setBlockSize
sets the block size used for each block,
except the topblock can be larger or smaller. This piece of
information is either retrieved from the version metadata on archive
or from a fragment on reconstruct.
size
- block size used for each block, except the
topblock can be larger or smaller.public void setReqVersion(SecureHash reqVersion)
getReqVersion
sets the guid of the requested obj.
public void setChkpt(SecureHash chkpt)
getChkpt
sets the guid of the checkpoint.
public SecureHash set(SecureHash chkptGuid, SecureHash vGuid)
set
adds a recoalesced obj to the growing obj hash table.
chkptGuid
- guid of last checkpoint.vGuid
- version guid (i.e. V-GUID) that was just recoalesced
public Object setPendingBlk(SecureHash guid, Object ancestor)
setPendingBlk
adds an entry block GUID=>parent block
to the list of pending blks. If block GUID is top block, then
block GUID equals parent block GUID.
guid
- guid of pending block.ancestor
- parent block.
public Object setDisseminateGuid(Object guid, Object type)
setDisseminateGuid
adds a map entry of Guid of
Dissemination Bucket to disseminate and that block type.
guid
- guid of Dissemination Bucket to disseminate.type
- type of block.
public Object setDisseminateBucket(Object guid, DisseminatableBucket db)
setDisseminateBucket
adds a map entry of blkVHash to
Dissemination Bucket.
guid
- guid of Dissemination Bucket to disseminate.db
- DisseminatableBucket
.
DisseminatableBucket
of block associated with guid
to disseminate.public Object setBlockId(Object blkVHash, Object fhash)
setDisseminateGuid
adds a map entry of fhash
associated to blkVHash of block just archived.
blkVHash
- vhash of block.fhash
- fhash used to generate guid.
public Object setModifiedVHash(Object key, Object element)
sets a map entry of a modified
blocks vhash and corresponding guid or
Collection
of interested blocks.
- Parameters:
key
- vhash of modified block.element
- Either corresponding guid or corresponding
Collection
of interested blocks.
- Returns:
- element that was associated with key before
insert.
public long setType(SecureHash guid, long type)
setType
add type of block associated with guid.
guid
- guid of block.type
- type of block.
public Object removePendingBlk(SecureHash guid)
removePendingBlk
removes the block associated with the
block GUID from the list of pending blks.
guid
- guid of block.
public long removeType(SecureHash guid)
removeType
removes the block type associated with the
block GUID.
guid
- guid of block.
public void incrTotalBlockSizes(int size)
incrTotalBlockSizes
add the size to the total block size of
the archival or recoalescing process.
size
- size to to be added to total block size.public void incrTotalErasureBlockSizes(int size)
incrTotalErasureBlockSizes
add the size to the total
erasure block of the archival or recoalescing process.
size
- size to to be added to total erasure block size.public void incrTotalDisseminateSizes(int size)
incrTotalDisseminateSizes
add the size to the total
disseminate size of the archival or recoalescing process.
size
- size to to be added to total disseminate size.public long getStartTime()
getStartTime
return the startTime of the archiving
or recoalescing process.
public long getEndTime()
getEndTime
return the endTime of the archiving
or recoalescing process.
public long getCodeTimeSum()
getCodeTimeSum
return total sum time coding the
current object.
public long getCodeTimeSquareSum()
getCodeTimeSquareSum
return total square sum time coding the
current object.
public long getCodeVHashTreeTimeSum()
getCodeTimeSum
return total sum time coding the
current object.
public long getCodeVHashTreeTimeSquareSum()
getCodeTimeSquareSum
return total square sum time coding the
current object.
public long getCodeMethodTimeSum()
getCodeTimeSum
return total sum time coding the
current object.
public long getCodeMethodTimeSquareSum()
getCodeTimeSquareSum
return total square sum time coding the
current object.
public long getCodeHandlerTimeSum()
getCodeTimeSum
return total sum time coding the
current object.
public long getCodeHandlerTimeSquareSum()
getCodeTimeSquareSum
return total square sum time coding the
current object.
public long getCodeTotalTimeSum()
getCodeTimeSum
return total sum time coding the
current object.
public long getCodeTotalTimeSquareSum()
getCodeTimeSquareSum
return total square sum time coding the
current object.
public long getCodeTimeCount()
getCodeTimeCount
return total count of times summed
together.
public long getCodeTime()
getCodeTime
return total coding time of the
current object.
public void incrCodeTimeCount()
incrCodeTimeCount
increment the total count of
coding times summed by one.
public void incrCodeTimeCount(long count)
incrCodeTimeCount
increment the total count of times summed
together by count
.
count
- increment amount to be added to the total count of
times summed together.public void incrCodeTimeSum(long time)
incrCodeTimeSum
increment the total sum time coding the
current object.
time
- time amount to increment the total sum time coding the
current object.public void incrCodeTimeSquareSum(long timeSq)
incrCodeTimeSquareSum
increment the total squared sum
time coding the current object.
timeSq
- time amount to increment the total squared sum time
coding the current object.public void incrCodeVHashTreeTimeSum(long time)
incrCodeTimeSum
increment the total sum time coding the
current object.
time
- time amount to increment the total sum time coding the
current object.public void incrCodeVHashTreeTimeSquareSum(long timeSq)
incrCodeTimeSquareSum
increment the total squared sum
time coding the current object.
timeSq
- time amount to increment the total squared sum time
coding the current object.public void incrCodeMethodTimeSum(long time)
incrCodeTimeSum
increment the total sum time coding the
current object.
time
- time amount to increment the total sum time coding the
current object.public void incrCodeMethodTimeSquareSum(long timeSq)
incrCodeTimeSquareSum
increment the total squared sum
time coding the current object.
timeSq
- time amount to increment the total squared sum time
coding the current object.public void incrCodeHandlerTimeSum(long time)
incrCodeTimeSum
increment the total sum time coding the
current object.
time
- time amount to increment the total sum time coding the
current object.public void incrCodeHandlerTimeSquareSum(long timeSq)
incrCodeTimeSquareSum
increment the total squared sum
time coding the current object.
timeSq
- time amount to increment the total squared sum time
coding the current object.public void incrCodeTotalTimeSum(long time)
incrCodeTimeSum
increment the total sum time coding the
current object.
time
- time amount to increment the total sum time coding the
current object.public void incrCodeTotalTimeSquareSum(long timeSq)
incrCodeTimeSquareSum
increment the total squared sum
time coding the current object.
timeSq
- time amount to increment the total squared sum time
coding the current object.public void setStartTime(long time)
setStartTime
set the startTime of the archiving
or recoalescing process.
time
- the startTime of the archiving or recoalescing process.public void setEndTime(long time)
setEndTime
set the endTime of the archiving
or recoalescing process.
time
- the endTime of the archiving or recoalescing process.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |