@Generated(value="com.neeve.adm.AdmGenerator", date="Thu May 07 15:37:32 EDT 2020") @AdmGenerated(compatLevel="4.0.0", admVersion="nvx-rumi-adm v3.14 (build 29)", date="5/7/20 3:37 PM", buildInfo="nvx-talon-3.14.19 (nvx-codegen-plugin)") public interface ISrvMonPoolStats extends IRogValidatable
To keep heartbeat size under control, stats for a given pool are only included in a heartbeat if their have been pool misses in the last collection interval. Otherwise pool stats may be emitted periodically even without misses based on other criteria as well.
ADM Type | Embedded Entity |
Factory | SrvMonFactory |
ADM Field Summary |
---|
Field | Type | Id | Description |
---|---|---|---|
capacity | Integer | 10 | The current number of slots in the pool to hold elements that are not in use. |
detachedWashes | Long | 8 | The number of elements initialized by the detached pool washer thread. |
evicts | Long | 7 | The number of elements that have been evicted from the pool because the pool doesn't have capacity. |
gets | Long | 3 | The number of times an element has been requested from the pool. |
growths | Long | 6 | The number of times the pool capacity has been increased to accomodate free elements. |
hits | Long | 4 | The number of times an element has been requested from the pool without needing to allocate a new object. |
key | String | 1 | The name of the pool. |
misses | Long | 5 | The number of times an element has been requested from the pool which required allocating a new object. |
preallocated | Integer | 11 | The number of elements initially preallocated in the pool. |
puts | Long | 2 | The number of times an element has been put (returned) to the pool. |
size | Integer | 9 |
The number of elements currently available in the pool to satisfy gets.
Note that a value of 0 does not necessarily indicate that there is a pooling issue: a healthy pool in which elements are continuously being recycled will have a size of zero frequently while the elements have been checked out by the thread using them. |
Modifier and Type | Method and Description |
---|---|
void |
clearCapacity()
Clears the value of 'capacity'.
|
void |
clearDetachedWashes()
Clears the value of 'detachedWashes'.
|
void |
clearEvicts()
Clears the value of 'evicts'.
|
void |
clearGets()
Clears the value of 'gets'.
|
void |
clearGrowths()
Clears the value of 'growths'.
|
void |
clearHits()
Clears the value of 'hits'.
|
void |
clearKey()
Clears the value of 'key'.
|
void |
clearMisses()
Clears the value of 'misses'.
|
void |
clearPreallocated()
Clears the value of 'preallocated'.
|
void |
clearPuts()
Clears the value of 'puts'.
|
void |
clearSize()
Clears the value of 'size'.
|
int |
getCapacity()
Gets the value of 'capacity'.
|
long |
getDetachedWashes()
Gets the value of 'detachedWashes'.
|
long |
getEvicts()
Gets the value of 'evicts'.
|
long |
getGets()
Gets the value of 'gets'.
|
long |
getGrowths()
Gets the value of 'growths'.
|
long |
getHits()
Gets the value of 'hits'.
|
String |
getKey()
Gets the value of 'key'.
|
<T extends XString> |
getKeyTo(XString.Factory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getKeyTo(XString val)
Copies the value of 'key' into the provided XString.
|
XString |
getKeyUnsafe()
Gets the raw value of 'key'.
|
long |
getMisses()
Gets the value of 'misses'.
|
int |
getPreallocated()
Gets the value of 'preallocated'.
|
long |
getPuts()
Gets the value of 'puts'.
|
int |
getSize()
Gets the value of 'size'.
|
boolean |
hasCapacity()
Checks for the presence of 'capacity'.
|
boolean |
hasDetachedWashes()
Checks for the presence of 'detachedWashes'.
|
boolean |
hasEvicts()
Checks for the presence of 'evicts'.
|
boolean |
hasGets()
Checks for the presence of 'gets'.
|
boolean |
hasGrowths()
Checks for the presence of 'growths'.
|
boolean |
hasHits()
Checks for the presence of 'hits'.
|
boolean |
hasKey()
Checks for the presence of 'key'.
|
boolean |
hasMisses()
Checks for the presence of 'misses'.
|
boolean |
hasPreallocated()
Checks for the presence of 'preallocated'.
|
boolean |
hasPuts()
Checks for the presence of 'puts'.
|
boolean |
hasSize()
Checks for the presence of 'size'.
|
void |
lendKey(XString val)
Lends the value of 'key' to this object.
|
void |
setCapacity(int val)
Sets the value of 'capacity'.
|
void |
setDetachedWashes(long val)
Sets the value of 'detachedWashes'.
|
void |
setEvicts(long val)
Sets the value of 'evicts'.
|
void |
setGets(long val)
Sets the value of 'gets'.
|
void |
setGrowths(long val)
Sets the value of 'growths'.
|
void |
setHits(long val)
Sets the value of 'hits'.
|
void |
setKey(String val)
Sets the value of 'key'.
|
void |
setKeyFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setKeyFrom(XString val)
Copies the provided XString value into this object's 'key'.
|
void |
setMisses(long val)
Sets the value of 'misses'.
|
void |
setPreallocated(int val)
Sets the value of 'preallocated'.
|
void |
setPuts(long val)
Sets the value of 'puts'.
|
void |
setSize(int val)
Sets the value of 'size'.
|
getValidationErrors, isValid
void setPuts(long val)
val
- The value to set.long getPuts()
void clearPuts()
setPuts(long)
boolean hasPuts()
getPuts()
void setGets(long val)
val
- The value to set.long getGets()
void clearGets()
setGets(long)
boolean hasGets()
getGets()
void setHits(long val)
val
- The value to set.long getHits()
void clearHits()
setHits(long)
boolean hasHits()
getHits()
void setMisses(long val)
val
- The value to set.long getMisses()
void clearMisses()
setMisses(long)
boolean hasMisses()
getMisses()
void setGrowths(long val)
val
- The value to set.long getGrowths()
void clearGrowths()
setGrowths(long)
boolean hasGrowths()
getGrowths()
void setEvicts(long val)
val
- The value to set.long getEvicts()
void clearEvicts()
setEvicts(long)
boolean hasEvicts()
getEvicts()
void setDetachedWashes(long val)
val
- The value to set.long getDetachedWashes()
void clearDetachedWashes()
setDetachedWashes(long)
boolean hasDetachedWashes()
getDetachedWashes()
void setSize(int val)
Note that a value of 0 does not necessarily indicate that there is a pooling issue: a healthy pool in which elements are continuously being recycled will have a size of zero frequently while the elements have been checked out by the thread using them.
val
- The value to set.int getSize()
Note that a value of 0 does not necessarily indicate that there is a pooling issue: a healthy pool in which elements are continuously being recycled will have a size of zero frequently while the elements have been checked out by the thread using them.
void clearSize()
Note that a value of 0 does not necessarily indicate that there is a pooling issue: a healthy pool in which elements are continuously being recycled will have a size of zero frequently while the elements have been checked out by the thread using them.
setSize(int)
boolean hasSize()
Note that a value of 0 does not necessarily indicate that there is a pooling issue: a healthy pool in which elements are continuously being recycled will have a size of zero frequently while the elements have been checked out by the thread using them.
getSize()
void setCapacity(int val)
val
- The value to set.int getCapacity()
void clearCapacity()
setCapacity(int)
boolean hasCapacity()
getCapacity()
void setPreallocated(int val)
val
- The value to set.int getPreallocated()
void clearPreallocated()
setPreallocated(int)
boolean hasPreallocated()
getPreallocated()
void setKey(String val)
val
- The value to set.String getKey()
void lendKey(XString val)
This method is equivalent to setKey except that it allows this object to defer copying the value until this object is next serialized. This means that the caller must not modify or dispose the value being passed in to this method.
Note, also, that unlike lendXXX methods for embedded entities, this method does not attempt to acquire or dispose of the value passed in even if the value is poolable.
val
- The value to set.IllegalArgumentException
- If the value is mutable.void setKeyFrom(long val)
NOTE:
This is the same as calling setKey(String)
.
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
<T extends XString> T getKeyTo(XString.Factory<T> factory)
If the value of this field is not null
this method creates an XString from
the provided Factory, copies this field's value into the type, and returns the new
XString.);
This is a zero garbage operation if the provided factory is backed by a pool and the pool; has available instances;
factory
- The factory from which to get the XString to copy into and returnnull
.NullPointerException
- if the provided factory is nullvoid setKeyFrom(XString val)
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than setKey(String)
because it avoids encoding the value into a String
if the given XString
is already encoded.
void getKeyTo(XString val)
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than getKey()
bec
because it can avoid decoding the value into an String
.
getKey()
XString getKeyUnsafe()
NOTE:
This method retrieves the raw value backed by this object's buffer. This is a useful operation
when copying this field value to another object because it avoids copying the data into an intermediate
XString and instead allows direct byte transfer from the raw value to the target object.
However, this accessor is inherently unsafe because the buffer backing this object can be changed which would consequently invalidate the XString returned by this method. Consequently, the caller must not retain the returned raw value beyond the scope of this object's lifespan and access to the raw value follows the same threading rules as access to this object.
Additionally, the caller must not in any way mutate or modify the returned value as doing so could corrupt this object's backing buffer.
getKey()
void clearKey()
setKey(String)
boolean hasKey()
getKey()
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.