|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.server.mon.SrvMonIntSeries
@Generated(value="com.neeve.adm.AdmXbufGenerator", date="Wed Mar 28 10:54:31 EDT 2018") @AdmGenerated(encoding="Xbuf", 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)") @AdmFactoryInfo(factoryClass=SrvMonFactory.class, vfid=32, ofid=32, typeId=105) public final class SrvMonIntSeries
Holds raw and histographical data on a series of integer data points.
SrvMonIntSeries reports interval and running histogram data for a series of integer data points. It may also be used to report the captured datapoints, but ecause reporting the raw data is costly both in terms of collection and size/bandwith the captured values are typically not reported. SrvMonIntSeries is frequently used to capture measured latency timings, but can also be used to capture any integer data series.
Nested Class Summary | |
---|---|
static class |
SrvMonIntSeries.Field
The SrvMonIntSeries xbuf field (used internally when this entity is used as a field of another entity). |
static class |
SrvMonIntSeries.ListField
The SrvMonIntSeries list field (used internally when this entity is used as an array field of another entity). |
Field Summary | |
---|---|
static SrvMonIntSeries[] |
EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays of this type. |
Constructor Summary | |
---|---|
SrvMonIntSeries()
|
|
SrvMonIntSeries(int initialBackingBufferSize)
|
Method Summary | |
---|---|
SrvMonIntSeries |
acquire()
|
void |
addDataPoints(int val)
Adds the provided value to the list of 'dataPoints' values. |
void |
clearContent()
|
void |
clearDataPoints()
Clears the value of 'dataPoints' Field Description Holds the collected raw data points (when reported). |
void |
clearIntervalStats()
Clears the value of 'intervalStats' Field Description Computed latency statistics for the collection period corresponding to this heartbeat. |
void |
clearLastSequenceNumber()
Clears the value of 'lastSequenceNumber' Field Description The sequence number of the last data point collected or 0 if no data points have been collected. |
void |
clearNumDataPoints()
Clears the value of 'numDataPoints' Field Description The number of data points collected in this interval. |
void |
clearRunningStats()
Clears the value of 'runningStats' Field Description Computed latency statistics over the lifetime of the metric being collected. |
void |
clearSkippedDatapoints()
Clears the value of 'skippedDatapoints' Field Description The number of data points skipped due to undersampling The runtime only holds on to a fixed number of data points for any particular statistic. |
void |
clearXRogType()
|
Object |
clone()
Creates a clone of this object. |
SrvMonIntSeries |
copy()
Creates a copy of this SrvMonIntSeries. |
void |
copyInto(SrvMonIntSeries copy)
Copies the contents of this SrvMonIntSeries into the target. |
static SrvMonIntSeries |
create()
|
static com.neeve.xbuf.XbufRepeatedIntFieldBuffer |
createDataPointsFieldBuffer(int initialBufferLength,
boolean isNative)
Returns a wrapped buffer that can be used for doing an efficient bulk copy from an XIterator returned for this field. |
static SrvMonIntSeries |
createFrom(byte[] serializedContainer)
|
static SrvMonIntSeries |
createFrom(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
static SrvMonIntSeries |
createFromSerializedXbufContainer(byte[] serializedContainer)
|
static SrvMonIntSeries |
createFromSerializedXbufContainer(byte[] serializedContainer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
static com.neeve.xbuf.XbufSchema |
createSchema()
|
SrvMonIntSeries |
deserializeFromByteArray(byte[] array)
|
SrvMonIntSeries |
deserializeFromByteArray(byte[] array,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
SrvMonIntSeries |
deserializeFromByteBuffer(ByteBuffer buffer)
|
SrvMonIntSeries |
deserializeFromByteBuffer(ByteBuffer buffer,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
SrvMonIntSeries |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length)
|
SrvMonIntSeries |
deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
int offset,
int length,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
SrvMonIntSeries |
deserializeFromNative(long address,
int offset,
int length)
|
SrvMonIntSeries |
deserializeFromNative(long address,
int offset,
int length,
com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
|
int |
desync(PktBuffer buffer,
int pos,
boolean frameOnly)
|
void |
desyncFieldBitmask()
|
void |
dispose()
|
PktBuffer |
getBackingBuffer()
|
int[] |
getDataPoints()
Gets the value of 'dataPoints' If the field is not set this method will return null . |
int[] |
getDataPointsEmptyIfNull()
Gets the value of 'dataPoints' or an empty array if the value is null or not set. |
static int |
getDataPointsFieldId()
Get the field id for 'dataPoints' This method can be used to set field interests. |
XIntIterator |
getDataPointsIterator()
Gets the value of 'dataPoints' as iterator of values. |
static com.neeve.xbuf.XbufDesyncPolicy |
getDesyncPolicy()
|
SrvMonIntHistogram |
getIntervalStats()
Gets the value of 'intervalStats' Field Description Computed latency statistics for the collection period corresponding to this heartbeat. |
static int |
getIntervalStatsFieldId()
Get the field id for 'intervalStats' This method can be used to set field interests. |
void |
getIntervalStatsTo(SrvMonIntHistogram to)
Copies the value of SrvMonIntHistogram into the provided value. |
boolean |
getIsReadOnly()
|
long |
getLastSequenceNumber()
Gets the value of 'lastSequenceNumber' Field Description The sequence number of the last data point collected or 0 if no data points have been collected. |
com.neeve.xbuf.XbufVariableLongField |
getLastSequenceNumberField()
|
static int |
getLastSequenceNumberFieldId()
Get the field id for 'lastSequenceNumber' This method can be used to set field interests. |
int |
getNumDataPoints()
Gets the value of 'numDataPoints' Field Description The number of data points collected in this interval. |
com.neeve.xbuf.XbufVariableIntField |
getNumDataPointsField()
|
static int |
getNumDataPointsFieldId()
Get the field id for 'numDataPoints' This method can be used to set field interests. |
int |
getOwnerCount()
|
UtlPool<SrvMonIntSeries> |
getPool()
Get a pool item's pool. |
SrvMonIntHistogram |
getRunningStats()
Gets the value of 'runningStats' Field Description Computed latency statistics over the lifetime of the metric being collected. |
static int |
getRunningStatsFieldId()
Get the field id for 'runningStats' This method can be used to set field interests. |
void |
getRunningStatsTo(SrvMonIntHistogram to)
Copies the value of SrvMonIntHistogram into the provided value. |
int |
getSerializeToNativeLength()
|
long |
getSkippedDatapoints()
Gets the value of 'skippedDatapoints' Field Description The number of data points skipped due to undersampling The runtime only holds on to a fixed number of data points for any particular statistic. |
com.neeve.xbuf.XbufVariableLongField |
getSkippedDatapointsField()
|
static int |
getSkippedDatapointsFieldId()
Get the field id for 'skippedDatapoints' This method can be used to set field interests. |
void |
getValidationErrors(List<XString> results,
String errorPrefix)
Collects validation errors into the provided list. |
short |
getXRogType()
|
com.neeve.xbuf.XbufVariableShortField |
getXRogTypeField()
|
static int |
getXRogTypeFieldId()
Get the field id for 'xRogType' This method can be used to set field interests. |
boolean |
hasIntervalStats()
Checks for the presence of 'intervalStats' Field Description Computed latency statistics for the collection period corresponding to this heartbeat. |
boolean |
hasLastSequenceNumber()
Checks for the presence of 'lastSequenceNumber' Field Description The sequence number of the last data point collected or 0 if no data points have been collected. |
boolean |
hasNumDataPoints()
Checks for the presence of 'numDataPoints' Field Description The number of data points collected in this interval. |
boolean |
hasRunningStats()
Checks for the presence of 'runningStats' Field Description Computed latency statistics over the lifetime of the metric being collected. |
boolean |
hasSkippedDatapoints()
Checks for the presence of 'skippedDatapoints' Field Description The number of data points skipped due to undersampling The runtime only holds on to a fixed number of data points for any particular statistic. |
boolean |
hasXRogType()
|
SrvMonIntSeries |
init()
Initialize an item. |
boolean |
isBufferBacked()
|
boolean |
isDirty()
|
boolean |
isReferenceCounted()
|
boolean |
isValid()
Tests if this object has any validation errors. |
void |
lendIntervalStats(SrvMonIntHistogram val)
'Lends' a reference of the SrvMonIntHistogram to the message for this field. |
void |
lendRunningStats(SrvMonIntHistogram val)
'Lends' a reference of the SrvMonIntHistogram to the message for this field. |
static void |
optimizeFor(int val)
|
byte[] |
serializeToByteArray()
|
ByteBuffer |
serializeToByteBuffer()
|
com.neeve.io.IOBuffer |
serializeToIOBuffer(boolean useNative)
|
int |
serializeToNative(long address,
int addressOffset)
|
void |
setAsReadOnly()
|
void |
setDataPoints(int[] val)
Sets the value of 'dataPoints' Field Description Holds the collected raw data points (when reported). |
void |
setDataPointsFrom(XIntIterator val)
Sets the value of 'dataPoints' using the values from the provided iterator. |
static void |
setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)
|
static void |
setFieldInterest(List<Integer> fieldIds)
|
void |
setIntervalStats(SrvMonIntHistogram val)
Sets the value of 'intervalStats' Field Description Computed latency statistics for the collection period corresponding to this heartbeat. |
void |
setLastSequenceNumber(long val)
Sets the value of 'lastSequenceNumber' Field Description The sequence number of the last data point collected or 0 if no data points have been collected. |
void |
setLastSequenceNumberFrom(com.neeve.xbuf.XbufVariableLongField val)
|
void |
setNumDataPoints(int val)
Sets the value of 'numDataPoints' Field Description The number of data points collected in this interval. |
void |
setNumDataPointsFrom(com.neeve.xbuf.XbufVariableIntField val)
|
SrvMonIntSeries |
setPool(UtlPool<SrvMonIntSeries> pool)
Set a pool item's pool. |
void |
setRunningStats(SrvMonIntHistogram val)
Sets the value of 'runningStats' Field Description Computed latency statistics over the lifetime of the metric being collected. |
void |
setSkippedDatapoints(long val)
Sets the value of 'skippedDatapoints' Field Description The number of data points skipped due to undersampling The runtime only holds on to a fixed number of data points for any particular statistic. |
void |
setSkippedDatapointsFrom(com.neeve.xbuf.XbufVariableLongField val)
|
void |
setXRogType(short val)
|
void |
setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val)
|
void |
sync()
|
void |
syncFieldBitmask()
|
SrvMonIntHistogram |
takeIntervalStats()
'Takes' a reference to the intervalStats field from the message. |
SrvMonIntHistogram |
takeRunningStats()
'Takes' a reference to the runningStats field from the message. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final SrvMonIntSeries[] EMPTY_ARRAY
Constructor Detail |
---|
public SrvMonIntSeries()
public SrvMonIntSeries(int initialBackingBufferSize)
Method Detail |
---|
public static SrvMonIntSeries create()
public static SrvMonIntSeries createFromSerializedXbufContainer(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonIntSeries createFromSerializedXbufContainer(byte[] serializedContainer)
public static SrvMonIntSeries createFrom(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public static SrvMonIntSeries createFrom(byte[] serializedContainer)
public static final void setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)
public static final com.neeve.xbuf.XbufDesyncPolicy getDesyncPolicy()
public static final void setFieldInterest(List<Integer> fieldIds)
public final void clearContent()
public final void syncFieldBitmask()
public final void desyncFieldBitmask()
public final PktBuffer getBackingBuffer()
public static final void optimizeFor(int val)
public final void setAsReadOnly()
public final boolean getIsReadOnly()
public static final int getXRogTypeFieldId()
This method can be used to set field interests.
getXRogType()
public final void setXRogType(short val)
public final short getXRogType()
public final void setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val)
public final com.neeve.xbuf.XbufVariableShortField getXRogTypeField()
public final boolean hasXRogType()
public final void clearXRogType()
public static final int getLastSequenceNumberFieldId()
This method can be used to set field interests.
getLastSequenceNumber()
public final void setLastSequenceNumber(long val)
ISrvMonIntSeries
Sequence numbers for collected data points start at 1, a value of 0 indicates that no data points have been collected. The Sequence Number always indicates the number or data points that have been collected since the statistic has been created or was last reset. If the statistic is reset then this value will reset to 0, when
setLastSequenceNumber
in interface ISrvMonIntSeries
val
- The value to set.public final long getLastSequenceNumber()
ISrvMonIntSeries
Sequence numbers for collected data points start at 1, a value of 0 indicates that no data points have been collected. The Sequence Number always indicates the number or data points that have been collected since the statistic has been created or was last reset. If the statistic is reset then this value will reset to 0, when
getLastSequenceNumber
in interface ISrvMonIntSeries
public final void setLastSequenceNumberFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getLastSequenceNumberField()
public final boolean hasLastSequenceNumber()
ISrvMonIntSeries
Sequence numbers for collected data points start at 1, a value of 0 indicates that no data points have been collected. The Sequence Number always indicates the number or data points that have been collected since the statistic has been created or was last reset. If the statistic is reset then this value will reset to 0, when
hasLastSequenceNumber
in interface ISrvMonIntSeries
ISrvMonIntSeries.getLastSequenceNumber()
public final void clearLastSequenceNumber()
ISrvMonIntSeries
Sequence numbers for collected data points start at 1, a value of 0 indicates that no data points have been collected. The Sequence Number always indicates the number or data points that have been collected since the statistic has been created or was last reset. If the statistic is reset then this value will reset to 0, when
clearLastSequenceNumber
in interface ISrvMonIntSeries
ISrvMonIntSeries.setLastSequenceNumber(long)
public static final int getNumDataPointsFieldId()
This method can be used to set field interests.
getNumDataPoints()
public final void setNumDataPoints(int val)
ISrvMonIntSeries
Indicates the number of data points collected in this interval. If no data points were collected numDataPoints will be 0. The sequence number of the first value collected in this interval can be determined by subtracting numDataPoints from lastSequenceNumber. This can be used to determine if two consecutive datapoints have skipped data points due to under sampling or a missing heartbeat.
setNumDataPoints
in interface ISrvMonIntSeries
val
- The value to set.public final int getNumDataPoints()
ISrvMonIntSeries
Indicates the number of data points collected in this interval. If no data points were collected numDataPoints will be 0. The sequence number of the first value collected in this interval can be determined by subtracting numDataPoints from lastSequenceNumber. This can be used to determine if two consecutive datapoints have skipped data points due to under sampling or a missing heartbeat.
getNumDataPoints
in interface ISrvMonIntSeries
public final void setNumDataPointsFrom(com.neeve.xbuf.XbufVariableIntField val)
public final com.neeve.xbuf.XbufVariableIntField getNumDataPointsField()
public final boolean hasNumDataPoints()
ISrvMonIntSeries
Indicates the number of data points collected in this interval. If no data points were collected numDataPoints will be 0. The sequence number of the first value collected in this interval can be determined by subtracting numDataPoints from lastSequenceNumber. This can be used to determine if two consecutive datapoints have skipped data points due to under sampling or a missing heartbeat.
hasNumDataPoints
in interface ISrvMonIntSeries
ISrvMonIntSeries.getNumDataPoints()
public final void clearNumDataPoints()
ISrvMonIntSeries
Indicates the number of data points collected in this interval. If no data points were collected numDataPoints will be 0. The sequence number of the first value collected in this interval can be determined by subtracting numDataPoints from lastSequenceNumber. This can be used to determine if two consecutive datapoints have skipped data points due to under sampling or a missing heartbeat.
clearNumDataPoints
in interface ISrvMonIntSeries
ISrvMonIntSeries.setNumDataPoints(int)
public static final int getSkippedDatapointsFieldId()
This method can be used to set field interests.
getSkippedDatapoints()
public final void setSkippedDatapoints(long val)
ISrvMonIntSeries
The runtime only holds on to a fixed number of data points for any particular statistic. If the sampling interval is too high then some datapoints may be skipped. For example let's say Latency stats are configured to hold on to a sample size of 1000 datapoints. If the number of data points being captured per second is 2000, and the stats collection interval is 1 second then on each collection, 1000 datapoints will be missed which will skew results. The skipped data points counter thus indicates how many datapoints have been missed in the reported runningStats. And if the count grows over two successive heartbeats indicates that the values the intervalStats don't reflect all the activity since the last interval. The skipped data points counter is a running counter ... it tracks the total number of data points that have been skipped since the underlying statistic was last reset.
setSkippedDatapoints
in interface ISrvMonIntSeries
val
- The value to set.public final long getSkippedDatapoints()
ISrvMonIntSeries
The runtime only holds on to a fixed number of data points for any particular statistic. If the sampling interval is too high then some datapoints may be skipped. For example let's say Latency stats are configured to hold on to a sample size of 1000 datapoints. If the number of data points being captured per second is 2000, and the stats collection interval is 1 second then on each collection, 1000 datapoints will be missed which will skew results. The skipped data points counter thus indicates how many datapoints have been missed in the reported runningStats. And if the count grows over two successive heartbeats indicates that the values the intervalStats don't reflect all the activity since the last interval. The skipped data points counter is a running counter ... it tracks the total number of data points that have been skipped since the underlying statistic was last reset.
getSkippedDatapoints
in interface ISrvMonIntSeries
public final void setSkippedDatapointsFrom(com.neeve.xbuf.XbufVariableLongField val)
public final com.neeve.xbuf.XbufVariableLongField getSkippedDatapointsField()
public final boolean hasSkippedDatapoints()
ISrvMonIntSeries
The runtime only holds on to a fixed number of data points for any particular statistic. If the sampling interval is too high then some datapoints may be skipped. For example let's say Latency stats are configured to hold on to a sample size of 1000 datapoints. If the number of data points being captured per second is 2000, and the stats collection interval is 1 second then on each collection, 1000 datapoints will be missed which will skew results. The skipped data points counter thus indicates how many datapoints have been missed in the reported runningStats. And if the count grows over two successive heartbeats indicates that the values the intervalStats don't reflect all the activity since the last interval. The skipped data points counter is a running counter ... it tracks the total number of data points that have been skipped since the underlying statistic was last reset.
hasSkippedDatapoints
in interface ISrvMonIntSeries
ISrvMonIntSeries.getSkippedDatapoints()
public final void clearSkippedDatapoints()
ISrvMonIntSeries
The runtime only holds on to a fixed number of data points for any particular statistic. If the sampling interval is too high then some datapoints may be skipped. For example let's say Latency stats are configured to hold on to a sample size of 1000 datapoints. If the number of data points being captured per second is 2000, and the stats collection interval is 1 second then on each collection, 1000 datapoints will be missed which will skew results. The skipped data points counter thus indicates how many datapoints have been missed in the reported runningStats. And if the count grows over two successive heartbeats indicates that the values the intervalStats don't reflect all the activity since the last interval. The skipped data points counter is a running counter ... it tracks the total number of data points that have been skipped since the underlying statistic was last reset.
clearSkippedDatapoints
in interface ISrvMonIntSeries
ISrvMonIntSeries.setSkippedDatapoints(long)
public static final int getDataPointsFieldId()
This method can be used to set field interests.
getDataPoints()
public static final com.neeve.xbuf.XbufRepeatedIntFieldBuffer createDataPointsFieldBuffer(int initialBufferLength, boolean isNative)
For example the following would result in a bulk transfer from this message
XbufRepeatedIntFieldBuffer preallocated = SrvMonIntSeries.createDataPointsFieldBuffer(1024, true); // The following would then result in a buffer copy without any iteration: preallocated.setValue(inboundMessage.getDataPointsIterator()); // The preallocated bulk copied values can then be transfered to an outbound message: outboundMessage.setDataPoints.setValueFrom(preallocated);
Bulk transfer from the backing buffer may only possible between two fields with the same id (protobuf tag) because the bulk transfered bytes are in protobuf wire format which for most repeated fields encode the field's tag for each element.
initialBufferLength
- the initial size of the underlying backing buffer.isNative
- Whether the backing buffer should be a native or heap buffer.public final void setDataPoints(int[] val)
ISrvMonIntSeries
When the server is configured to include the capture data points for the statistic, the returned array will include the values collected during this interval. This allows monitoring tools to perform non lossy calculation of percentiles providing now data points were skipped due to under sampling or a missed heartbeat. Then number of valid values in the returned array is dicated by numDataPoints, if the length of the values array is longer than numDataPoints subsequent values in the array should be ignored.
setDataPoints
in interface ISrvMonIntSeries
val
- The value to set.public final void setDataPointsFrom(XIntIterator val)
ISrvMonIntSeries
This method will call XIntIterator.toFirst()
before and after setting the values, meaning
that all values from the iterator will be set and the iterator will be reset on return.
This method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'dataPoints' accessor can copy the values without iteration.
When the server is configured to include the capture data points for the statistic, the returned array will include the values collected during this interval. This allows monitoring tools to perform non lossy calculation of percentiles providing now data points were skipped due to under sampling or a missed heartbeat. Then number of valid values in the returned array is dicated by numDataPoints, if the length of the values array is longer than numDataPoints subsequent values in the array should be ignored.
NOTE:
Passing a null
or empty iterator has the same affect as calling ISrvMonIntSeries.setDataPoints(int[])
with
a value of null
.
setDataPointsFrom
in interface ISrvMonIntSeries
val
- the values to set.public final void addDataPoints(int val)
ISrvMonIntSeries
This method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'dataPoints' accessor can copy the values without iteration.
For objects generated with json encoding, or transactional state entities, using this method is currently efficient than doing a bulk set. For xbuf generated messages however, this method is optimized to directly serialize to an encoded backing buffer.
When the server is configured to include the capture data points for the statistic, the returned array will include the values collected during this interval. This allows monitoring tools to perform non lossy calculation of percentiles providing now data points were skipped due to under sampling or a missed heartbeat. Then number of valid values in the returned array is dicated by numDataPoints, if the length of the values array is longer than numDataPoints subsequent values in the array should be ignored.
addDataPoints
in interface ISrvMonIntSeries
val
- the value to add.public final int[] getDataPoints()
ISrvMonIntSeries
If the field is not set this method will return null
.
When the server is configured to include the capture data points for the statistic, the returned array will include the values collected during this interval. This allows monitoring tools to perform non lossy calculation of percentiles providing now data points were skipped due to under sampling or a missed heartbeat. Then number of valid values in the returned array is dicated by numDataPoints, if the length of the values array is longer than numDataPoints subsequent values in the array should be ignored.
getDataPoints
in interface ISrvMonIntSeries
null
.public final int[] getDataPointsEmptyIfNull()
ISrvMonIntSeries
null
or not set.
When the server is configured to include the capture data points for the statistic, the returned array will include the values collected during this interval. This allows monitoring tools to perform non lossy calculation of percentiles providing now data points were skipped due to under sampling or a missed heartbeat. Then number of valid values in the returned array is dicated by numDataPoints, if the length of the values array is longer than numDataPoints subsequent values in the array should be ignored.
getDataPointsEmptyIfNull
in interface ISrvMonIntSeries
null
if not set.ISrvMonIntSeries.getDataPoints()
public final XIntIterator getDataPointsIterator()
ISrvMonIntSeries
This method will always return a non null iterator value. The returned iterator is not threadsafe, and the caller may not hold on to it beyond the pooling lifespan of this object. Depending on the implementation, the same iterator instance may be returned by this object on each call to avoid garbage. Each time this method is called the iterator is reset by calling its toFirst() method. Callers should therefore be especially careful about calling this method while iterating on the iterator returned by this method.
This method is zero garbage for Xbuf generated classes, and this method is optimized such that
passing the returned iterator to another object's setXXX(com.neeve.lang.XIntIterator)
method
can perform a direct copy of the underlying values without iteration.
When the server is configured to include the capture data points for the statistic, the returned array will include the values collected during this interval. This allows monitoring tools to perform non lossy calculation of percentiles providing now data points were skipped due to under sampling or a missed heartbeat. Then number of valid values in the returned array is dicated by numDataPoints, if the length of the values array is longer than numDataPoints subsequent values in the array should be ignored.
getDataPointsIterator
in interface ISrvMonIntSeries
public final void clearDataPoints()
ISrvMonIntSeries
When the server is configured to include the capture data points for the statistic, the returned array will include the values collected during this interval. This allows monitoring tools to perform non lossy calculation of percentiles providing now data points were skipped due to under sampling or a missed heartbeat. Then number of valid values in the returned array is dicated by numDataPoints, if the length of the values array is longer than numDataPoints subsequent values in the array should be ignored.
clearDataPoints
in interface ISrvMonIntSeries
ISrvMonIntSeries.setDataPoints(int[])
public static final int getIntervalStatsFieldId()
This method can be used to set field interests.
getIntervalStats()
public final void setIntervalStats(SrvMonIntHistogram val)
ISrvMonIntSeries
Hold computed results for the datpoints captured for this heartbeat (e.g. for the numDataPoints captured). This field may not be set if numDataPoints is 0 or if interval computations are not done on the server.
setIntervalStats
in interface ISrvMonIntSeries
val
- The value to set.public final void lendIntervalStats(SrvMonIntHistogram val)
ISrvMonIntSeries
Hold computed results for the datpoints captured for this heartbeat (e.g. for the numDataPoints captured). This field may not be set if numDataPoints is 0 or if interval computations are not done on the server.
NOTE:
It is illegal to hold onto an entity 'set' on a message post the disposal of the container message.
This is true even if a reference to the entity is explicitly 'acquired' by the application via acquire().
To hold onto the reference of an entity beyond the lifecycle of its container message, an application must own a reference to the entity (via, for example, 'taking' the entity off an inbound message) and then 'lend' the entity to the message for sending. The act of 'lending' an entity to a message implies that the application continues to own the entity even though the message is holding a reference to it for the duration of the send.
lendIntervalStats
in interface ISrvMonIntSeries
val
- the value to 'lend' to lend.public final SrvMonIntHistogram getIntervalStats()
ISrvMonIntSeries
Hold computed results for the datpoints captured for this heartbeat (e.g. for the numDataPoints captured). This field may not be set if numDataPoints is 0 or if interval computations are not done on the server.
getIntervalStats
in interface ISrvMonIntSeries
public final void getIntervalStatsTo(SrvMonIntHistogram to)
ISrvMonIntSeries
IF the value is not set, then the contents of the provided SrvMonIntHistogram are cleared.
getIntervalStatsTo
in interface ISrvMonIntSeries
to
- the value to copy intoSrvMonIntHistogram.copyInto(SrvMonIntHistogram)
public final SrvMonIntHistogram takeIntervalStats()
ISrvMonIntSeries
Hold computed results for the datpoints captured for this heartbeat (e.g. for the numDataPoints captured). This field may not be set if numDataPoints is 0 or if interval computations are not done on the server.
NOTE:
A nested entity reference returned by getXXX() is only valid until the entity is disposed
i.e. the act of getting an entity does not transfer ownership of the entity to the application
A message disposes of its reference to its contained entities when it is disposed itself.
An AEP engine disposes a message on return from its message handler. Therefore, applications working with AEP engines that wish to hold onto a nested entity reference post return from its containing message's handler must either acquire a reference to the container message or 'take' the nested entity itself from the container message. The act of 'taking' an entity differs from 'getting' an entity in that 'take' does what is necessary to ensure that the entity contents are not cleared and the entity not disposed when the message itself is disposed. For a taken entity to be disposed, the application must explicitly dispose it when done working with it.
takeIntervalStats
in interface ISrvMonIntSeries
null
if the field is not set.public final boolean hasIntervalStats()
ISrvMonIntSeries
Hold computed results for the datpoints captured for this heartbeat (e.g. for the numDataPoints captured). This field may not be set if numDataPoints is 0 or if interval computations are not done on the server.
hasIntervalStats
in interface ISrvMonIntSeries
ISrvMonIntSeries.getIntervalStats()
public final void clearIntervalStats()
ISrvMonIntSeries
Hold computed results for the datpoints captured for this heartbeat (e.g. for the numDataPoints captured). This field may not be set if numDataPoints is 0 or if interval computations are not done on the server.
clearIntervalStats
in interface ISrvMonIntSeries
ISrvMonIntSeries.setIntervalStats(SrvMonIntHistogram)
public static final int getRunningStatsFieldId()
This method can be used to set field interests.
getRunningStats()
public final void setRunningStats(SrvMonIntHistogram val)
ISrvMonIntSeries
Hold computed results for the datpoints over the lifetime of this statistics (e.g. since seqNo 1). If the underlying statistic is reset then the running stats are also corresponding reset.
setRunningStats
in interface ISrvMonIntSeries
val
- The value to set.public final void lendRunningStats(SrvMonIntHistogram val)
ISrvMonIntSeries
Hold computed results for the datpoints over the lifetime of this statistics (e.g. since seqNo 1). If the underlying statistic is reset then the running stats are also corresponding reset.
NOTE:
It is illegal to hold onto an entity 'set' on a message post the disposal of the container message.
This is true even if a reference to the entity is explicitly 'acquired' by the application via acquire().
To hold onto the reference of an entity beyond the lifecycle of its container message, an application must own a reference to the entity (via, for example, 'taking' the entity off an inbound message) and then 'lend' the entity to the message for sending. The act of 'lending' an entity to a message implies that the application continues to own the entity even though the message is holding a reference to it for the duration of the send.
lendRunningStats
in interface ISrvMonIntSeries
val
- the value to 'lend' to lend.public final SrvMonIntHistogram getRunningStats()
ISrvMonIntSeries
Hold computed results for the datpoints over the lifetime of this statistics (e.g. since seqNo 1). If the underlying statistic is reset then the running stats are also corresponding reset.
getRunningStats
in interface ISrvMonIntSeries
public final void getRunningStatsTo(SrvMonIntHistogram to)
ISrvMonIntSeries
IF the value is not set, then the contents of the provided SrvMonIntHistogram are cleared.
getRunningStatsTo
in interface ISrvMonIntSeries
to
- the value to copy intoSrvMonIntHistogram.copyInto(SrvMonIntHistogram)
public final SrvMonIntHistogram takeRunningStats()
ISrvMonIntSeries
Hold computed results for the datpoints over the lifetime of this statistics (e.g. since seqNo 1). If the underlying statistic is reset then the running stats are also corresponding reset.
NOTE:
A nested entity reference returned by getXXX() is only valid until the entity is disposed
i.e. the act of getting an entity does not transfer ownership of the entity to the application
A message disposes of its reference to its contained entities when it is disposed itself.
An AEP engine disposes a message on return from its message handler. Therefore, applications working with AEP engines that wish to hold onto a nested entity reference post return from its containing message's handler must either acquire a reference to the container message or 'take' the nested entity itself from the container message. The act of 'taking' an entity differs from 'getting' an entity in that 'take' does what is necessary to ensure that the entity contents are not cleared and the entity not disposed when the message itself is disposed. For a taken entity to be disposed, the application must explicitly dispose it when done working with it.
takeRunningStats
in interface ISrvMonIntSeries
null
if the field is not set.public final boolean hasRunningStats()
ISrvMonIntSeries
Hold computed results for the datpoints over the lifetime of this statistics (e.g. since seqNo 1). If the underlying statistic is reset then the running stats are also corresponding reset.
hasRunningStats
in interface ISrvMonIntSeries
ISrvMonIntSeries.getRunningStats()
public final void clearRunningStats()
ISrvMonIntSeries
Hold computed results for the datpoints over the lifetime of this statistics (e.g. since seqNo 1). If the underlying statistic is reset then the running stats are also corresponding reset.
clearRunningStats
in interface ISrvMonIntSeries
ISrvMonIntSeries.setRunningStats(SrvMonIntHistogram)
public final boolean isDirty()
public static final com.neeve.xbuf.XbufSchema createSchema()
public final byte[] serializeToByteArray()
public final ByteBuffer serializeToByteBuffer()
public final com.neeve.io.IOBuffer serializeToIOBuffer(boolean useNative)
public final boolean isBufferBacked()
public final int getSerializeToNativeLength()
public final int serializeToNative(long address, int addressOffset)
public final SrvMonIntSeries deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonIntSeries deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length)
public final SrvMonIntSeries deserializeFromByteArray(byte[] array, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonIntSeries deserializeFromByteArray(byte[] array)
public final SrvMonIntSeries deserializeFromByteBuffer(ByteBuffer buffer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonIntSeries deserializeFromByteBuffer(ByteBuffer buffer)
public final SrvMonIntSeries deserializeFromNative(long address, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
public final SrvMonIntSeries deserializeFromNative(long address, int offset, int length)
public final void sync()
public final int desync(PktBuffer buffer, int pos, boolean frameOnly)
desync
in interface com.neeve.xbuf.IXbufDesyncer
public final SrvMonIntSeries init()
UtlPool.Item
This method is invoked by an item pool very time an item is put into the pool. The method should wipe the contents of the item so as to present a fresh instance of the item to the caller when retrieved from the pool.
init
in interface UtlPool.Item<SrvMonIntSeries>
public final SrvMonIntSeries setPool(UtlPool<SrvMonIntSeries> pool)
UtlPool.Item
This method is invoked by an item pool at the time an item is added to the pool. The intent is to record the item's source pool in the item so it can be disposed back into the pool when the user is done working with it.
setPool
in interface UtlPool.Item<SrvMonIntSeries>
public final UtlPool<SrvMonIntSeries> getPool()
UtlPool.Item
This method should return the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool
getPool
in interface UtlPool.Item<SrvMonIntSeries>
UtlPool.Item.setPool(com.neeve.util.UtlPool)
public final boolean isReferenceCounted()
public final SrvMonIntSeries acquire()
public final int getOwnerCount()
public final void dispose()
public final Object clone()
This method differs from the copy()
method in that:
clone
in class Object
public final SrvMonIntSeries copy()
The copy copies primitive, enum and embedded entity fields into the returned copy. Each embedded entity field is cloned so that modifications made to the copy's embedded entity fields do not affect this SrvMonIntSeries's embedded entity fields.
The returned copy will be writeable even if this SrvMonIntSeries is read only.
public final void copyInto(SrvMonIntSeries copy)
The copy clears the target's contents and copies primitive, enum and embedded entity fields into the provided copy. Each embedded entity field is cloned so that modifications made to the copy's embedded entity fields do not affect this SrvMonIntSeries's embedded entity fields.
The returned copy will be writeable even if this SrvMonIntSeries is read only.
copy
- The target into which to copy.public final boolean isValid()
IRogValidatable
isValid
in interface IRogValidatable
public final void getValidationErrors(List<XString> results, String errorPrefix)
IRogValidatable
getValidationErrors
in interface IRogValidatable
results
- A results list into which validation errors will be collected.errorPrefix
- The bean path prefix to use when identifying invalid fields or null if validating a top level entity.public final String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |