| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private boolean | |
| public static final int | KB
1024 (number of bytes in one kibibyte/kilobyte) |
| public static final int | |
| private long | |
| private boolean | |
| private int | |
| private int | |
| private int | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public WindowCacheConfig | Returns: this.configuration to read properties from. rc)Update properties by setting fields from the configuration. |
| public int | Returns: maximum number of bytes to cache in delta base cache for inflated, recently accessed objects, without delta chains. Default 10 MB.Get maximum number of bytes to cache in delta base cache for inflated, recently accessed objects, without delta chains. |
| public boolean | Returns: whether to expose WindowCacheStats statistics via JMX uponinstall()Tell whether the statistics JMX bean should be automatically registered. |
| public long | Returns: maximum number bytes of heap memory to dedicate to caching pack file data. Default is 10 MB.Get maximum number bytes of heap memory to dedicate to caching pack file data. |
| public int | Returns: maximum number of streams to open at a time. Open packs count against the process limits. Default is 128.Get maximum number of streams to open at a time. |
| public int | Returns: size in bytes of a single window mapped or read in from the pack file. Default is 8 KB.Get size in bytes of a single window mapped or read in from the pack file. |
| public int | Returns: the size threshold beyond which objects must be streamed.Get the size threshold beyond which objects must be streamed. |
| public void | |
| public boolean | Returns: true enables use of Java NIO virtual memory mapping for
windows; false reads entire window into a byte[] with standard
read calls. Default false.Whether to use Java NIO virtual memory mapping for windows |
| public boolean | Returns: true if the window cache should use strong references,
otherwise it will use java.sGet whether the window cache should use strong references or SoftReferences |
| public boolean | Returns: true if the cached Pack indices should use strong references,
otherwise it will use java.sGet whether the Pack indices cache should use strong references or SoftReferences |
| public void | setDeltaBaseCacheLimit(int
maximum number of bytes to cache in delta base cache for
inflated, recently accessed objects, without delta chains. newLimit)Set maximum number of bytes to cache in delta base cache for inflated, recently accessed objects, without delta chains. |
| public void | setExposeStatsViaJmx(boolean
whether to register the JMX Bean expose)Defines whether the statistics JMX MBean should be automatically set up. |
| public void | setPackedGitLimit(long
maximum number bytes of heap memory to dedicate to caching
pack file data. newLimit)Set maximum number bytes of heap memory to dedicate to caching pack file data. |
| public void | setPackedGitMMAP(boolean
true enables use of Java NIO virtual memory mapping
for windows; false reads entire window into a byte[] with
standard read calls.Set whether to enable use of Java NIO virtual memory mapping for windows |
| public void | setPackedGitOpenFiles(int
maximum number of streams to open at a time. Open packs count
against the process limits fdLimit)Set maximum number of streams to open at a time. |
| public void | setPackedGitUseStrongRefs(boolean
if @{code true} the cache strongly references cache pages
otherwise it uses useStrongRefs)java.s which
can be evicted by the Java gc if heap is almost fullSet if the cache should use strong refs or soft refs |
| public void | setPackedGitWindowSize(int
size in bytes of a single window read in from the pack file. newSize)Set size in bytes of a single window read in from the pack file. |
| public void | setPackedIndexGitUseStrongRefs(boolean
if @{code true} the Pack strongly references cached indices
otherwise it uses useStrongRefs)java.s which
can be evicted by the Java gc if heap is almost fullSet if the Pack indices cache should use strong refs or soft refs |
| public void | setStreamFileThreshold(int
new byte limit for objects that must be streamed. Objects
smaller than this size can be obtained as a contiguous byte
array, while objects bigger than this size require using an
newLimit)org..Set new byte limit for objects that must be streamed. |
| deltaBaseCacheLimit | back to summary |
|---|---|
| private int deltaBaseCacheLimit | |
| exposeStats | back to summary |
|---|---|
| private boolean exposeStats | |
| KB | back to summary |
|---|---|
| public static final int KB 1024 (number of bytes in one kibibyte/kilobyte) | |
| MB | back to summary |
|---|---|
| public static final int MB 1024 | |
| packedGitLimit | back to summary |
|---|---|
| private long packedGitLimit | |
| packedGitMMAP | back to summary |
|---|---|
| private boolean packedGitMMAP | |
| packedGitOpenFiles | back to summary |
|---|---|
| private int packedGitOpenFiles | |
| packedGitWindowSize | back to summary |
|---|---|
| private int packedGitWindowSize | |
| streamFileThreshold | back to summary |
|---|---|
| private int streamFileThreshold | |
| useStrongIndexRefs | back to summary |
|---|---|
| private boolean useStrongIndexRefs | |
| useStrongRefs | back to summary |
|---|---|
| private boolean useStrongRefs | |
| WindowCacheConfig | back to summary |
|---|---|
| public WindowCacheConfig() Create a default configuration. | |
| fromConfig | back to summary |
|---|---|
| public WindowCacheConfig fromConfig(Config rc) Update properties by setting fields from the configuration. If a property is not defined in the configuration, then it is left unmodified.
| |
| getDeltaBaseCacheLimit | back to summary |
|---|---|
| public int getDeltaBaseCacheLimit() Get maximum number of bytes to cache in delta base cache for inflated, recently accessed objects, without delta chains.
| |
| getExposeStatsViaJmx | back to summary |
|---|---|
| public boolean getExposeStatsViaJmx() Tell whether the statistics JMX bean should be automatically registered.
Registration of that bean via JMX is additionally subject to a boolean
JGit-specific user config "jmx.WindowCacheStats". The bean will be
registered only if this user config is
By default, this returns
| |
| getPackedGitLimit | back to summary |
|---|---|
| public long getPackedGitLimit() Get maximum number bytes of heap memory to dedicate to caching pack file data.
| |
| getPackedGitOpenFiles | back to summary |
|---|---|
| public int getPackedGitOpenFiles() Get maximum number of streams to open at a time.
| |
| getPackedGitWindowSize | back to summary |
|---|---|
| public int getPackedGitWindowSize() Get size in bytes of a single window mapped or read in from the pack file.
| |
| getStreamFileThreshold | back to summary |
|---|---|
| public int getStreamFileThreshold() Get the size threshold beyond which objects must be streamed.
| |
| install | back to summary |
|---|---|
| public void install() Install this configuration as the live settings. The new configuration is applied immediately. If the new limits are smaller than what is currently cached, older entries will be purged as soon as possible to allow the cache to meet the new limit.
| |
| isPackedGitMMAP | back to summary |
|---|---|
| public boolean isPackedGitMMAP() Whether to use Java NIO virtual memory mapping for windows
| |
| isPackedGitUseStrongRefs | back to summary |
|---|---|
| public boolean isPackedGitUseStrongRefs() Get whether the window cache should use strong references or SoftReferences
| |
| isPackedIndexGitUseStrongRefs | back to summary |
|---|---|
| public boolean isPackedIndexGitUseStrongRefs() Get whether the Pack indices cache should use strong references or SoftReferences
| |
| setDeltaBaseCacheLimit | back to summary |
|---|---|
| public void setDeltaBaseCacheLimit(int newLimit) Set maximum number of bytes to cache in delta base cache for inflated, recently accessed objects, without delta chains.
| |
| setExposeStatsViaJmx | back to summary |
|---|---|
| public void setExposeStatsViaJmx(boolean expose) Defines whether the statistics JMX MBean should be automatically set up.
(By default
| |
| setPackedGitLimit | back to summary |
|---|---|
| public void setPackedGitLimit(long newLimit) Set maximum number bytes of heap memory to dedicate to caching pack file data.
| |
| setPackedGitMMAP | back to summary |
|---|---|
| public void setPackedGitMMAP(boolean usemmap) Set whether to enable use of Java NIO virtual memory mapping for windows
| |
| setPackedGitOpenFiles | back to summary |
|---|---|
| public void setPackedGitOpenFiles(int fdLimit) Set maximum number of streams to open at a time.
| |
| setPackedGitUseStrongRefs | back to summary |
|---|---|
| public void setPackedGitUseStrongRefs(boolean useStrongRefs) Set if the cache should use strong refs or soft refs
| |
| setPackedGitWindowSize | back to summary |
|---|---|
| public void setPackedGitWindowSize(int newSize) Set size in bytes of a single window read in from the pack file.
| |
| setPackedIndexGitUseStrongRefs | back to summary |
|---|---|
| public void setPackedIndexGitUseStrongRefs(boolean useStrongRefs) Set if the Pack indices cache should use strong refs or soft refs
| |
| setStreamFileThreshold | back to summary |
|---|---|
| public void setStreamFileThreshold(int newLimit) Set new byte limit for objects that must be streamed.
| |