|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jgit.lib.WindowCacheConfig
public class WindowCacheConfig
Configuration parameters for WindowCache.
| 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 | |
|---|---|
WindowCacheConfig()
Create a default configuration. |
|
| Method Summary | |
|---|---|
void |
fromConfig(Config rc)
Update properties by setting fields from the configuration. |
int |
getDeltaBaseCacheLimit()
|
long |
getPackedGitLimit()
|
int |
getPackedGitOpenFiles()
|
int |
getPackedGitWindowSize()
|
boolean |
isPackedGitMMAP()
|
void |
setDeltaBaseCacheLimit(int newLimit)
|
void |
setPackedGitLimit(long newLimit)
|
void |
setPackedGitMMAP(boolean usemmap)
|
void |
setPackedGitOpenFiles(int fdLimit)
|
void |
setPackedGitWindowSize(int newSize)
|
| 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 WindowCacheConfig()
| Method Detail |
|---|
public int getPackedGitOpenFiles()
public void setPackedGitOpenFiles(int fdLimit)
fdLimit - maximum number of streams to open at a time. Open packs count
against the process limitspublic long getPackedGitLimit()
public void setPackedGitLimit(long newLimit)
newLimit - maximum number bytes of heap memory to dedicate to caching
pack file data.public int getPackedGitWindowSize()
public void setPackedGitWindowSize(int newSize)
newSize - size in bytes of a single window read in from the pack file.public boolean isPackedGitMMAP()
public void setPackedGitMMAP(boolean usemmap)
usemmap - true enables use of Java NIO virtual memory mapping for
windows; false reads entire window into a byte[] with standard
read calls.public int getDeltaBaseCacheLimit()
UnpackedObjectCache
for inflated, recently accessed objects, without delta chains.
Default 10 MB.public void setDeltaBaseCacheLimit(int newLimit)
newLimit - maximum number of bytes to cache in
UnpackedObjectCache for inflated, recently accessed
objects, without delta chains.public void fromConfig(Config rc)
If a property is not defined in the configuration, then it is left unmodified.
rc - configuration to read properties from.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||