|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jgit.storage.dht.DhtReaderOptions
public class DhtReaderOptions
Options controlling how objects are read from a DHT stored repository.
Field Summary | |
---|---|
static int |
KiB
1024 (number of bytes in one kibibyte/kilobyte) |
static int |
MiB
1024 KiB (number of bytes in one mebibyte/megabyte) |
Constructor Summary | |
---|---|
DhtReaderOptions()
Create a default reader configuration. |
Method Summary | |
---|---|
DhtReaderOptions |
fromConfig(Config rc)
Update properties by setting fields from the configuration. |
int |
getChunkLimit()
|
int |
getDeltaBaseCacheLimit()
|
int |
getDeltaBaseCacheSize()
|
int |
getObjectIndexBatchSize()
|
int |
getObjectIndexConcurrentBatches()
|
int |
getOpenQueuePrefetchRatio()
|
int |
getRecentInfoCacheSize()
|
Timeout |
getTimeout()
|
int |
getWalkCommitsPrefetchRatio()
|
int |
getWalkTreesPrefetchRatio()
|
int |
getWriteObjectsPrefetchRatio()
|
boolean |
isPrefetchFollowEdgeHints()
|
boolean |
isTrackFirstChunkLoad()
|
DhtReaderOptions |
setChunkLimit(int maxBytes)
Set the number of bytes hold within a DhtReader. |
DhtReaderOptions |
setDeltaBaseCacheLimit(int maxBytes)
Set the maximum number of bytes in the DeltaBaseCache. |
DhtReaderOptions |
setDeltaBaseCacheSize(int slotCnt)
Set the size of the delta base cache hash table. |
DhtReaderOptions |
setObjectIndexBatchSize(int objectCnt)
Set the number of objects to lookup at once. |
DhtReaderOptions |
setObjectIndexConcurrentBatches(int batches)
Set the number of concurrent readers on ObjectIndexTable. |
DhtReaderOptions |
setOpenQueuePrefetchRatio(int ratio)
Set the prefetch ratio used by the open object queue. |
DhtReaderOptions |
setPrefetchFollowEdgeHints(boolean follow)
Enable (or disable) the experimental edge following feature. |
DhtReaderOptions |
setRecentInfoCacheSize(int objectCnt)
Set the number of objects to cache information on. |
DhtReaderOptions |
setTimeout(Timeout maxWaitTime)
Set the default timeout to wait on long operations. |
DhtReaderOptions |
setTrackFirstChunkLoad(boolean track)
Set whether or not the initial load of each chunk should be tracked. |
DhtReaderOptions |
setWalkCommitsPrefetchRatio(int ratio)
Set the prefetch ratio used by the open object queue. |
DhtReaderOptions |
setWalkTreesPrefetchRatio(int ratio)
Set the prefetch ratio used by the open object queue. |
DhtReaderOptions |
setWriteObjectsPrefetchRatio(int ratio)
Set the prefetch ratio used by the open object queue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int KiB
public static final int MiB
KiB
(number of bytes in one mebibyte/megabyte)
Constructor Detail |
---|
public DhtReaderOptions()
Method Detail |
---|
public Timeout getTimeout()
public DhtReaderOptions setTimeout(Timeout maxWaitTime)
maxWaitTime
- new wait time.
this
public boolean isPrefetchFollowEdgeHints()
public DhtReaderOptions setPrefetchFollowEdgeHints(boolean follow)
follow
- true to follow the edge hints.
this
public int getChunkLimit()
public DhtReaderOptions setChunkLimit(int maxBytes)
maxBytes
-
this
public int getOpenQueuePrefetchRatio()
getChunkLimit()
used for prefetch, 0..100.public DhtReaderOptions setOpenQueuePrefetchRatio(int ratio)
ratio
- 0..100.
this
public int getWalkCommitsPrefetchRatio()
getChunkLimit()
used for prefetch, 0..100.public DhtReaderOptions setWalkCommitsPrefetchRatio(int ratio)
ratio
- 0..100.
this
public int getWalkTreesPrefetchRatio()
getChunkLimit()
used for prefetch, 0..100.public DhtReaderOptions setWalkTreesPrefetchRatio(int ratio)
ratio
- 0..100.
this
public int getWriteObjectsPrefetchRatio()
getChunkLimit()
used for prefetch, 0..100.public DhtReaderOptions setWriteObjectsPrefetchRatio(int ratio)
ratio
- 0..100.
this
public int getObjectIndexConcurrentBatches()
public DhtReaderOptions setObjectIndexConcurrentBatches(int batches)
batches
- number of batches.
this
public int getObjectIndexBatchSize()
public DhtReaderOptions setObjectIndexBatchSize(int objectCnt)
objectCnt
- the number of objects in a lookup batch.
this
public int getDeltaBaseCacheSize()
public DhtReaderOptions setDeltaBaseCacheSize(int slotCnt)
slotCnt
- number of slots in the hash table.
this
public int getDeltaBaseCacheLimit()
public DhtReaderOptions setDeltaBaseCacheLimit(int maxBytes)
maxBytes
- the new limit.
this
public int getRecentInfoCacheSize()
public DhtReaderOptions setRecentInfoCacheSize(int objectCnt)
objectCnt
- the number of objects to cache.
this
public boolean isTrackFirstChunkLoad()
DhtReader.Statistics
includes the stack trace for
the first time a chunk is loaded. Supports debugging DHT code.public DhtReaderOptions setTrackFirstChunkLoad(boolean track)
track
- true to track the stack trace of the first load.
this
.public DhtReaderOptions fromConfig(Config rc)
If a property is not defined in the configuration, then it is left unmodified.
rc
- configuration to read properties from.
this
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |