|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Generated(value="com.neeve.adm.AdmGenerator", date="Wed Mar 28 10:54:31 EDT 2018") @AdmGenerated(compatLevel="3.8.0", admVersion="nvx-adm v3.7.265 (build 0)", date="3/28/18 10:54 AM", buildInfo="nvx-talon-3.7.265 (nvx-codegen-plugin)") public interface ISrvMonPoolStats
Holds stats for a pool
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.
Method Summary | ||
---|---|---|
void |
clearCapacity()
Clears the value of 'capacity' Field Description The current number of slots in the pool to hold elements that are not in use. |
|
void |
clearDetachedWashes()
Clears the value of 'detachedWashes' Field Description The number of elements initialized by the detached pool washer thread. |
|
void |
clearEvicts()
Clears the value of 'evicts' Field Description The number of elements that have been evicted from the pool because the pool doesn't have capcity. |
|
void |
clearGets()
Clears the value of 'gets' Field Description The number of times an element has been requested from the pool. |
|
void |
clearGrowths()
Clears the value of 'growths' Field Description The number of times the pool capacity has been increased to accomodate free elements. |
|
void |
clearHits()
Clears the value of 'hits' Field Description The number of times an element has been requested from the pool without needing to allocate a new object. |
|
void |
clearKey()
Clears the value of 'key' Field Description The name of the pool. |
|
void |
clearMisses()
Clears the value of 'misses' Field Description The number of times an element has been requested from the pool which required allocating a new object. |
|
void |
clearPreallocated()
Clears the value of 'preallocated' Field Description The number of elements initially preallocated in the pool. |
|
void |
clearPuts()
Clears the value of 'puts' Field Description The number of times an element has been put (returned) to the pool. |
|
void |
clearSize()
Clears the value of 'size' Field Description The number of elements currently available in the pool to satisfy gets. |
|
int |
getCapacity()
Gets the value of 'capacity' Field Description The current number of slots in the pool to hold elements that are not in use. |
|
long |
getDetachedWashes()
Gets the value of 'detachedWashes' Field Description The number of elements initialized by the detached pool washer thread. |
|
long |
getEvicts()
Gets the value of 'evicts' Field Description The number of elements that have been evicted from the pool because the pool doesn't have capcity. |
|
long |
getGets()
Gets the value of 'gets' Field Description The number of times an element has been requested from the pool. |
|
long |
getGrowths()
Gets the value of 'growths' Field Description The number of times the pool capacity has been increased to accomodate free elements. |
|
long |
getHits()
Gets the value of 'hits' Field Description The number of times an element has been requested from the pool without needing to allocate a new object. |
|
String |
getKey()
Gets the value of 'key' Field Description The name of the pool. |
|
|
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' Field Description The number of times an element has been requested from the pool which required allocating a new object. |
|
int |
getPreallocated()
Gets the value of 'preallocated' Field Description The number of elements initially preallocated in the pool. |
|
long |
getPuts()
Gets the value of 'puts' Field Description The number of times an element has been put (returned) to the pool. |
|
int |
getSize()
Gets the value of 'size' Field Description The number of elements currently available in the pool to satisfy gets. |
|
boolean |
hasCapacity()
Checks for the presence of 'capacity' Field Description The current number of slots in the pool to hold elements that are not in use. |
|
boolean |
hasDetachedWashes()
Checks for the presence of 'detachedWashes' Field Description The number of elements initialized by the detached pool washer thread. |
|
boolean |
hasEvicts()
Checks for the presence of 'evicts' Field Description The number of elements that have been evicted from the pool because the pool doesn't have capcity. |
|
boolean |
hasGets()
Checks for the presence of 'gets' Field Description The number of times an element has been requested from the pool. |
|
boolean |
hasGrowths()
Checks for the presence of 'growths' Field Description The number of times the pool capacity has been increased to accomodate free elements. |
|
boolean |
hasHits()
Checks for the presence of 'hits' Field Description The number of times an element has been requested from the pool without needing to allocate a new object. |
|
boolean |
hasKey()
Checks for the presence of 'key' Field Description The name of the pool. |
|
boolean |
hasMisses()
Checks for the presence of 'misses' Field Description The number of times an element has been requested from the pool which required allocating a new object. |
|
boolean |
hasPreallocated()
Checks for the presence of 'preallocated' Field Description The number of elements initially preallocated in the pool. |
|
boolean |
hasPuts()
Checks for the presence of 'puts' Field Description The number of times an element has been put (returned) to the pool. |
|
boolean |
hasSize()
Checks for the presence of 'size' Field Description The number of elements currently available in the pool to satisfy gets. |
|
void |
lendKey(XString val)
Sets the value of 'key' Field Description The name of the pool. |
|
void |
setCapacity(int val)
Sets the value of 'capacity' Field Description The current number of slots in the pool to hold elements that are not in use. |
|
void |
setDetachedWashes(long val)
Sets the value of 'detachedWashes' Field Description The number of elements initialized by the detached pool washer thread. |
|
void |
setEvicts(long val)
Sets the value of 'evicts' Field Description The number of elements that have been evicted from the pool because the pool doesn't have capcity. |
|
void |
setGets(long val)
Sets the value of 'gets' Field Description The number of times an element has been requested from the pool. |
|
void |
setGrowths(long val)
Sets the value of 'growths' Field Description The number of times the pool capacity has been increased to accomodate free elements. |
|
void |
setHits(long val)
Sets the value of 'hits' Field Description The number of times an element has been requested from the pool without needing to allocate a new object. |
|
void |
setKey(String val)
Sets the value of 'key' Field Description The name of the pool. |
|
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' Field Description The number of times an element has been requested from the pool which required allocating a new object. |
|
void |
setPreallocated(int val)
Sets the value of 'preallocated' Field Description The number of elements initially preallocated in the pool. |
|
void |
setPuts(long val)
Sets the value of 'puts' Field Description The number of times an element has been put (returned) to the pool. |
|
void |
setSize(int val)
Sets the value of 'size' Field Description The number of elements currently available in the pool to satisfy gets. |
Methods inherited from interface com.neeve.rog.IRogValidatable |
---|
getValidationErrors, isValid |
Method Detail |
---|
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)
val
- The value to set.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 return
null
.
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |