|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jgit.storage.dfs.DfsBlockCacheConfig
public class DfsBlockCacheConfig
Configuration parameters for DfsBlockCache.
| Field Summary | |
|---|---|
static int |
KB
1024 (number of bytes in one kibibyte/kilobyte) |
static int |
MB
1024 KB (number of bytes in one mebibyte/megabyte) |
| Constructor Summary | |
|---|---|
DfsBlockCacheConfig()
Create a default configuration. |
|
| Method Summary | |
|---|---|
DfsBlockCacheConfig |
fromConfig(Config rc)
Update properties by setting fields from the configuration. |
long |
getBlockLimit()
|
int |
getBlockSize()
|
int |
getReadAheadLimit()
|
ThreadPoolExecutor |
getReadAheadService()
|
DfsBlockCacheConfig |
setBlockLimit(long newLimit)
|
DfsBlockCacheConfig |
setBlockSize(int newSize)
|
DfsBlockCacheConfig |
setReadAheadLimit(int newSize)
|
DfsBlockCacheConfig |
setReadAheadService(ThreadPoolExecutor svc)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int KB
public static final int MB
KB (number of bytes in one mebibyte/megabyte)
| Constructor Detail |
|---|
public DfsBlockCacheConfig()
| Method Detail |
|---|
public long getBlockLimit()
public DfsBlockCacheConfig setBlockLimit(long newLimit)
newLimit - maximum number bytes of heap memory to dedicate to caching
pack file data.
thispublic int getBlockSize()
public DfsBlockCacheConfig setBlockSize(int newSize)
newSize - size in bytes of a single window read in from the pack file.
thispublic int getReadAheadLimit()
public DfsBlockCacheConfig setReadAheadLimit(int newSize)
newSize - new read-ahead limit, in bytes.
thispublic ThreadPoolExecutor getReadAheadService()
public DfsBlockCacheConfig setReadAheadService(ThreadPoolExecutor svc)
svc - service to perform read-ahead of sequential blocks with. If
not null the RejectedExecutionHandler must be managed
by the JGit DFS library and not the application.
this.public DfsBlockCacheConfig 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 | |||||||||