public class PageCacheStats
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
long |
faults |
int |
files |
long |
freeBytes |
long |
hits |
long |
ios |
long |
lockedBytes |
long |
lookups |
java.lang.String |
name |
long |
sizeMB |
long |
waitHits |
long |
waitHitsTimeMS |
Constructor and Description |
---|
PageCacheStats() |
PageCacheStats(PageCacheStats o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this PageCacheStats.
|
static PageCacheStats |
fromString(java.lang.String s)
String representation of this PageCacheStats.
|
long |
getFaults()
Number of times the page was not available in the cache and had to be fetched synchronously.
|
int |
getFiles() |
long |
getFreeBytes()
Free size of the cache.
This is linked to the number of pages that have never been required and should quickly drop to zero. |
long |
getHits()
Number of times the page was available in the cache.
The page is considered as available even if it was not yet loaded (prefetching). |
long |
getIos()
Number of IO operations performed, either synchronously or asynchronously.
This counts the operations, not the pages. |
long |
getLockedBytes()
Currently "locked" size of the cache.
This is the number of bytes (pages*page size) that are currently used by running queries. This should not go near the cache size. |
long |
getLookups() |
java.lang.String |
getName() |
long |
getSizeMB() |
long |
getWaitHits()
Number of times we had to wait for an available page to actually become available.
This counts the number of times that prefetch was "right" but not fast enough. |
long |
getWaitHitsTimeMS()
Total time in milliseconds waited for an available page to actually become available.
|
PageCacheStats |
makeCopy()
Creates and returns a deep copy of this PageCacheStats.
|
static PageCacheStats |
readFrom(java.io.InputStream is)
Read this PageCacheStats from an XML fragment.
|
void |
setFaults(long faults)
Number of times the page was not available in the cache and had to be fetched synchronously.
|
void |
setFiles(int files) |
void |
setFreeBytes(long freeBytes)
Free size of the cache.
This is linked to the number of pages that have never been required and should quickly drop to zero. |
void |
setHits(long hits)
Number of times the page was available in the cache.
The page is considered as available even if it was not yet loaded (prefetching). |
void |
setIos(long ios)
Number of IO operations performed, either synchronously or asynchronously.
This counts the operations, not the pages. |
void |
setLockedBytes(long lockedBytes)
Currently "locked" size of the cache.
This is the number of bytes (pages*page size) that are currently used by running queries. This should not go near the cache size. |
void |
setLookups(long lookups) |
void |
setName(java.lang.String name) |
void |
setSizeMB(long sizeMB) |
void |
setWaitHits(long waitHits)
Number of times we had to wait for an available page to actually become available.
This counts the number of times that prefetch was "right" but not fast enough. |
void |
setWaitHitsTimeMS(long waitHitsTimeMS)
Total time in milliseconds waited for an available page to actually become available.
|
java.lang.String |
toString()
String representation of this PageCacheStats.
|
PageCacheStats |
withFaults(long faults) |
PageCacheStats |
withFaults(java.lang.Long faults) |
PageCacheStats |
withFiles(int files) |
PageCacheStats |
withFiles(java.lang.Integer files) |
PageCacheStats |
withFreeBytes(long freeBytes) |
PageCacheStats |
withFreeBytes(java.lang.Long freeBytes) |
PageCacheStats |
withHits(long hits) |
PageCacheStats |
withHits(java.lang.Long hits) |
PageCacheStats |
withIos(long ios) |
PageCacheStats |
withIos(java.lang.Long ios) |
PageCacheStats |
withLockedBytes(long lockedBytes) |
PageCacheStats |
withLockedBytes(java.lang.Long lockedBytes) |
PageCacheStats |
withLookups(long lookups) |
PageCacheStats |
withLookups(java.lang.Long lookups) |
PageCacheStats |
withName(java.lang.String name) |
PageCacheStats |
withSizeMB(long sizeMB) |
PageCacheStats |
withSizeMB(java.lang.Long sizeMB) |
PageCacheStats |
withWaitHits(long waitHits) |
PageCacheStats |
withWaitHits(java.lang.Long waitHits) |
PageCacheStats |
withWaitHitsTimeMS(long waitHitsTimeMS) |
PageCacheStats |
withWaitHitsTimeMS(java.lang.Long waitHitsTimeMS) |
void |
writeTo(java.io.OutputStream os)
Write this PageCacheStats as an XML fragment
|
public java.lang.String name
public int files
public long sizeMB
public long lookups
public long hits
public long waitHits
public long waitHitsTimeMS
public long faults
public long ios
public long freeBytes
public long lockedBytes
public PageCacheStats()
public PageCacheStats(PageCacheStats o)
public void setName(java.lang.String name)
public java.lang.String getName()
public PageCacheStats withName(java.lang.String name)
public void setFiles(int files)
public int getFiles()
public PageCacheStats withFiles(int files)
public PageCacheStats withFiles(java.lang.Integer files)
public void setSizeMB(long sizeMB)
public long getSizeMB()
public PageCacheStats withSizeMB(long sizeMB)
public PageCacheStats withSizeMB(java.lang.Long sizeMB)
public void setLookups(long lookups)
public long getLookups()
public PageCacheStats withLookups(long lookups)
public PageCacheStats withLookups(java.lang.Long lookups)
public void setHits(long hits)
public long getHits()
public PageCacheStats withHits(long hits)
public PageCacheStats withHits(java.lang.Long hits)
public void setWaitHits(long waitHits)
public long getWaitHits()
public PageCacheStats withWaitHits(long waitHits)
public PageCacheStats withWaitHits(java.lang.Long waitHits)
public void setWaitHitsTimeMS(long waitHitsTimeMS)
public long getWaitHitsTimeMS()
public PageCacheStats withWaitHitsTimeMS(long waitHitsTimeMS)
public PageCacheStats withWaitHitsTimeMS(java.lang.Long waitHitsTimeMS)
public void setFaults(long faults)
public long getFaults()
public PageCacheStats withFaults(long faults)
public PageCacheStats withFaults(java.lang.Long faults)
public void setIos(long ios)
public long getIos()
public PageCacheStats withIos(long ios)
public PageCacheStats withIos(java.lang.Long ios)
public void setFreeBytes(long freeBytes)
public long getFreeBytes()
public PageCacheStats withFreeBytes(long freeBytes)
public PageCacheStats withFreeBytes(java.lang.Long freeBytes)
public void setLockedBytes(long lockedBytes)
public long getLockedBytes()
public PageCacheStats withLockedBytes(long lockedBytes)
public PageCacheStats withLockedBytes(java.lang.Long lockedBytes)
public PageCacheStats makeCopy()
public static PageCacheStats readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static PageCacheStats fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.