com.neeve.server.mon
Class SrvMonAppFlowInfo

java.lang.Object
  extended by com.neeve.server.mon.SrvMonAppFlowInfo
All Implemented Interfaces:
IRogValidatable, ISrvMonAppFlowInfo, UtlPool.Item<SrvMonAppFlowInfo>, com.neeve.xbuf.IXbufDesyncer

@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=104)
public final class SrvMonAppFlowInfo
extends Object
implements com.neeve.xbuf.IXbufDesyncer, UtlPool.Item<SrvMonAppFlowInfo>, ISrvMonAppFlowInfo

Holds information about a application flow.


Nested Class Summary
static class SrvMonAppFlowInfo.Field
          The SrvMonAppFlowInfo xbuf field (used internally when this entity is used as a field of another entity).
static class SrvMonAppFlowInfo.ListField
          The SrvMonAppFlowInfo list field (used internally when this entity is used as an array field of another entity).
 
Field Summary
static SrvMonAppFlowInfo[] EMPTY_ARRAY
          A preallocated empty array used to avoid garbage when returning empty arrays of this type.
 
Constructor Summary
SrvMonAppFlowInfo()
           
SrvMonAppFlowInfo(int initialBackingBufferSize)
           
 
Method Summary
 SrvMonAppFlowInfo acquire()
           
 void clearContent()
           
 void clearId()
          Clears the value of 'id' Field Description The flow id.
 void clearXRogType()
           
 Object clone()
          Creates a clone of this object.
 SrvMonAppFlowInfo copy()
          Creates a copy of this SrvMonAppFlowInfo.
 void copyInto(SrvMonAppFlowInfo copy)
          Copies the contents of this SrvMonAppFlowInfo into the target.
static SrvMonAppFlowInfo create()
           
static SrvMonAppFlowInfo createFrom(byte[] serializedContainer)
           
static SrvMonAppFlowInfo createFrom(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
           
static SrvMonAppFlowInfo createFromSerializedXbufContainer(byte[] serializedContainer)
           
static SrvMonAppFlowInfo createFromSerializedXbufContainer(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
           
static com.neeve.xbuf.XbufSchema createSchema()
           
 SrvMonAppFlowInfo deserializeFromByteArray(byte[] array)
           
 SrvMonAppFlowInfo deserializeFromByteArray(byte[] array, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
           
 SrvMonAppFlowInfo deserializeFromByteBuffer(ByteBuffer buffer)
           
 SrvMonAppFlowInfo deserializeFromByteBuffer(ByteBuffer buffer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
           
 SrvMonAppFlowInfo deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length)
           
 SrvMonAppFlowInfo deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
           
 SrvMonAppFlowInfo deserializeFromNative(long address, int offset, int length)
           
 SrvMonAppFlowInfo 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()
           
static com.neeve.xbuf.XbufDesyncPolicy getDesyncPolicy()
           
 int getId()
          Gets the value of 'id' Field Description The flow id.
 com.neeve.xbuf.XbufVariableIntField getIdField()
           
static int getIdFieldId()
          Get the field id for 'id' This method can be used to set field interests.
 boolean getIsReadOnly()
           
 int getOwnerCount()
           
 UtlPool<SrvMonAppFlowInfo> getPool()
          Get a pool item's pool.
 int getSerializeToNativeLength()
           
 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 hasId()
          Checks for the presence of 'id' Field Description The flow id.
 boolean hasXRogType()
           
 SrvMonAppFlowInfo init()
          Initialize an item.
 boolean isBufferBacked()
           
 boolean isDirty()
           
 boolean isReferenceCounted()
           
 boolean isValid()
          Tests if this object has any validation errors.
static void optimizeFor(int val)
           
 byte[] serializeToByteArray()
           
 ByteBuffer serializeToByteBuffer()
           
 com.neeve.io.IOBuffer serializeToIOBuffer(boolean useNative)
           
 int serializeToNative(long address, int addressOffset)
           
 void setAsReadOnly()
           
static void setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)
           
static void setFieldInterest(List<Integer> fieldIds)
           
 void setId(int val)
          Sets the value of 'id' Field Description The flow id.
 void setIdFrom(com.neeve.xbuf.XbufVariableIntField val)
           
 SrvMonAppFlowInfo setPool(UtlPool<SrvMonAppFlowInfo> pool)
          Set a pool item's pool.
 void setXRogType(short val)
           
 void setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val)
           
 void sync()
           
 void syncFieldBitmask()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_ARRAY

public static final SrvMonAppFlowInfo[] EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays of this type.

Constructor Detail

SrvMonAppFlowInfo

public SrvMonAppFlowInfo()

SrvMonAppFlowInfo

public SrvMonAppFlowInfo(int initialBackingBufferSize)
Method Detail

create

public static SrvMonAppFlowInfo create()

createFromSerializedXbufContainer

public static SrvMonAppFlowInfo createFromSerializedXbufContainer(byte[] serializedContainer,
                                                                  com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

createFromSerializedXbufContainer

public static SrvMonAppFlowInfo createFromSerializedXbufContainer(byte[] serializedContainer)

createFrom

public static SrvMonAppFlowInfo createFrom(byte[] serializedContainer,
                                           com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

createFrom

public static SrvMonAppFlowInfo createFrom(byte[] serializedContainer)

setDesyncPolicy

public static final void setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)

getDesyncPolicy

public static final com.neeve.xbuf.XbufDesyncPolicy getDesyncPolicy()

setFieldInterest

public static final void setFieldInterest(List<Integer> fieldIds)

clearContent

public final void clearContent()

syncFieldBitmask

public final void syncFieldBitmask()

desyncFieldBitmask

public final void desyncFieldBitmask()

getBackingBuffer

public final PktBuffer getBackingBuffer()

optimizeFor

public static final void optimizeFor(int val)

setAsReadOnly

public final void setAsReadOnly()

getIsReadOnly

public final boolean getIsReadOnly()

getXRogTypeFieldId

public static final int getXRogTypeFieldId()
Get the field id for 'xRogType'

This method can be used to set field interests.

See Also:
getXRogType()

setXRogType

public final void setXRogType(short val)

getXRogType

public final short getXRogType()

setXRogTypeFrom

public final void setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val)

getXRogTypeField

public final com.neeve.xbuf.XbufVariableShortField getXRogTypeField()

hasXRogType

public final boolean hasXRogType()

clearXRogType

public final void clearXRogType()

getIdFieldId

public static final int getIdFieldId()
Get the field id for 'id'

This method can be used to set field interests.

See Also:
getId()

setId

public final void setId(int val)
Description copied from interface: ISrvMonAppFlowInfo
Sets the value of 'id'

Field Description

The flow id.

Specified by:
setId in interface ISrvMonAppFlowInfo
Parameters:
val - The value to set.

getId

public final int getId()
Description copied from interface: ISrvMonAppFlowInfo
Gets the value of 'id'

Field Description

The flow id.

Specified by:
getId in interface ISrvMonAppFlowInfo
Returns:
The flow id.

setIdFrom

public final void setIdFrom(com.neeve.xbuf.XbufVariableIntField val)

getIdField

public final com.neeve.xbuf.XbufVariableIntField getIdField()

hasId

public final boolean hasId()
Description copied from interface: ISrvMonAppFlowInfo
Checks for the presence of 'id'

Field Description

The flow id.

Specified by:
hasId in interface ISrvMonAppFlowInfo
See Also:
ISrvMonAppFlowInfo.getId()

clearId

public final void clearId()
Description copied from interface: ISrvMonAppFlowInfo
Clears the value of 'id'

Field Description

The flow id.

Specified by:
clearId in interface ISrvMonAppFlowInfo
See Also:
ISrvMonAppFlowInfo.setId(int)

isDirty

public final boolean isDirty()

createSchema

public static final com.neeve.xbuf.XbufSchema createSchema()

serializeToByteArray

public final byte[] serializeToByteArray()

serializeToByteBuffer

public final ByteBuffer serializeToByteBuffer()

serializeToIOBuffer

public final com.neeve.io.IOBuffer serializeToIOBuffer(boolean useNative)

isBufferBacked

public final boolean isBufferBacked()

getSerializeToNativeLength

public final int getSerializeToNativeLength()

serializeToNative

public final int serializeToNative(long address,
                                   int addressOffset)

deserializeFromIOElasticBuffer

public final SrvMonAppFlowInfo deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
                                                              int offset,
                                                              int length,
                                                              com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

deserializeFromIOElasticBuffer

public final SrvMonAppFlowInfo deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
                                                              int offset,
                                                              int length)

deserializeFromByteArray

public final SrvMonAppFlowInfo deserializeFromByteArray(byte[] array,
                                                        com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

deserializeFromByteArray

public final SrvMonAppFlowInfo deserializeFromByteArray(byte[] array)

deserializeFromByteBuffer

public final SrvMonAppFlowInfo deserializeFromByteBuffer(ByteBuffer buffer,
                                                         com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

deserializeFromByteBuffer

public final SrvMonAppFlowInfo deserializeFromByteBuffer(ByteBuffer buffer)

deserializeFromNative

public final SrvMonAppFlowInfo deserializeFromNative(long address,
                                                     int offset,
                                                     int length,
                                                     com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

deserializeFromNative

public final SrvMonAppFlowInfo deserializeFromNative(long address,
                                                     int offset,
                                                     int length)

sync

public final void sync()

desync

public final int desync(PktBuffer buffer,
                        int pos,
                        boolean frameOnly)
Specified by:
desync in interface com.neeve.xbuf.IXbufDesyncer

init

public final SrvMonAppFlowInfo init()
Description copied from interface: UtlPool.Item
Initialize an 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.

Specified by:
init in interface UtlPool.Item<SrvMonAppFlowInfo>
Returns:
Return 'this' object for method invocation chaining.

setPool

public final SrvMonAppFlowInfo setPool(UtlPool<SrvMonAppFlowInfo> pool)
Description copied from interface: UtlPool.Item
Set a pool item's pool.

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.

Specified by:
setPool in interface UtlPool.Item<SrvMonAppFlowInfo>
Returns:
Return 'this' object for method invocation chaining.

getPool

public final UtlPool<SrvMonAppFlowInfo> getPool()
Description copied from interface: UtlPool.Item
Get a pool item's pool.

This method should return the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool)

Specified by:
getPool in interface UtlPool.Item<SrvMonAppFlowInfo>
Returns:
the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool)

isReferenceCounted

public final boolean isReferenceCounted()

acquire

public final SrvMonAppFlowInfo acquire()

getOwnerCount

public final int getOwnerCount()

dispose

public final void dispose()

clone

public final Object clone()
Creates a clone of this object.

This method differs from the copy() method in that:

Overrides:
clone in class Object

copy

public final SrvMonAppFlowInfo copy()
Creates a copy of this SrvMonAppFlowInfo.

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 SrvMonAppFlowInfo's embedded entity fields.

The returned copy will be writeable even if this SrvMonAppFlowInfo is read only.

Xbuf Pass-through Fields

When backed by a buffer, this operation copies the underlying buffer which means that if the message was deserialized from with unrecognized fields, such fields will be preserved in the copy as well.

Returns:
The copied entity.

copyInto

public final void copyInto(SrvMonAppFlowInfo copy)
Copies the contents of this SrvMonAppFlowInfo into the target.

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 SrvMonAppFlowInfo's embedded entity fields.

The returned copy will be writeable even if this SrvMonAppFlowInfo is read only.

Xbuf Pass-through Fields

When backed by a buffer, this operation copies the underlying buffer which means that if the message was deserialized from with unrecognized fields, such fields will be preserved in the copy as well.

Parameters:
copy - The target into which to copy.

isValid

public final boolean isValid()
Description copied from interface: IRogValidatable
Tests if this object has any validation errors.

Specified by:
isValid in interface IRogValidatable

getValidationErrors

public final void getValidationErrors(List<XString> results,
                                      String errorPrefix)
Description copied from interface: IRogValidatable
Collects validation errors into the provided list. It is illegal for the caller to hold onto the List of XStrings beyond the lifespace of this object.

Specified by:
getValidationErrors in interface IRogValidatable
Parameters:
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.

toString

public final String toString()
Overrides:
toString in class Object


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.