public class PongPacket extends BasicPacket
Modifier and Type | Field and Description |
---|---|
private Optional<Long> |
activeDocuments |
private Optional<Integer> |
activeNodes |
private Optional<Integer> |
activePartitions |
private int |
code |
private int |
dispatchTimestamp |
private int |
lowPartitionId |
(package private) static int |
MRF_ACTIVEDOCS |
(package private) static int |
MRF_MLD
feature bits, taken from searchlib/common/transport.h
|
(package private) static int |
MRF_RFLAGS |
(package private) static int |
PCODE_MONITORRESULTX
packet codes, taken from searchlib/common/transport.h
|
private int |
totalNodes |
private int |
totalPartitions |
CODE_MASK, encodedBody, encodingBuffer, length
Constructor and Description |
---|
PongPacket() |
PongPacket(long activeDocuments)
For testing
|
Modifier and Type | Method and Description |
---|---|
protected void |
codeDecodedHook(int code)
Called when the packet code is decoded.
|
static PongPacket |
create() |
void |
decodeBody(ByteBuffer buffer)
Decodes the body of this package from a byte buffer
positioned at the first byte of the package.
|
Optional<Long> |
getActiveDocuments()
retrieve the reported number of active (searchable) documents
in the monitored backend.
|
Optional<Integer> |
getActiveNodes() |
Optional<Integer> |
getActivePartitions() |
int |
getCode()
Returns the code of this package
|
int |
getDocstamp()
Return current docstamp for backend to make cache invalidation
possible.
|
allocateAndEncode, decode, decodeAndDecompressBody, encode, encode, encodeAndCompressBody, encodeBody, getLength, getTimestamp, grantEncodingBuffer, grantEncodingBuffer, hasChannelId, isEncoded, patchChannelId, setCompressionLimit, setCompressionType, setEncodedBody, setTimestamp, toString
private int lowPartitionId
private int dispatchTimestamp
private int totalNodes
private int totalPartitions
private int code
static final int MRF_MLD
static final int MRF_RFLAGS
static final int MRF_ACTIVEDOCS
static final int PCODE_MONITORRESULTX
public PongPacket()
public PongPacket(long activeDocuments)
protected void codeDecodedHook(int code)
BasicPacket
codeDecodedHook
in class BasicPacket
public int getCode()
BasicPacket
getCode
in class BasicPacket
public void decodeBody(ByteBuffer buffer)
BasicPacket
decodeBody
in class BasicPacket
public static PongPacket create()
public int getDocstamp()
public Optional<Long> getActiveDocuments()
Copyright © 2018. All rights reserved.