Package org.apache.ignite.internal
Class IgniteDiagnosticMessage
- java.lang.Object
-
- org.apache.ignite.internal.IgniteDiagnosticMessage
-
- All Implemented Interfaces:
Serializable,Message
public class IgniteDiagnosticMessage extends Object implements Message
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIgniteDiagnosticMessage.DiagnosticBaseClosurestatic classIgniteDiagnosticMessage.ExchangeInfoClosurestatic classIgniteDiagnosticMessage.TxEntriesInfoClosurestatic classIgniteDiagnosticMessage.TxInfoClosure
-
Field Summary
-
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.Message
DIRECT_TYPE_SIZE
-
-
Constructor Summary
Constructors Constructor Description IgniteDiagnosticMessage()Required byGridIoMessageFactory.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IgniteDiagnosticMessagecreateRequest(Marshaller marsh, IgniteClosure<GridKernalContext,IgniteDiagnosticInfo> c, long futId)static IgniteDiagnosticMessagecreateResponse(byte[] resBytes, long futId)shortdirectType()Gets message type.static IgniteInternalFuture<String>dumpCommunicationInfo(GridKernalContext ctx, UUID nodeId)bytefieldsCount()Gets fields count.longfutureId()voidonAckReceived()Method called when ack message received.booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.booleanrequest()StringtoString()<T> Tunmarshal(Marshaller marsh)booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.
-
-
-
Constructor Detail
-
IgniteDiagnosticMessage
public IgniteDiagnosticMessage()
Required byGridIoMessageFactory.
-
-
Method Detail
-
createRequest
public static IgniteDiagnosticMessage createRequest(Marshaller marsh, IgniteClosure<GridKernalContext,IgniteDiagnosticInfo> c, long futId) throws IgniteCheckedException
- Parameters:
marsh- Marshaller.c- Closure to run.futId- Future ID.- Returns:
- Request message.
- Throws:
IgniteCheckedException- If failed.
-
createResponse
public static IgniteDiagnosticMessage createResponse(byte[] resBytes, long futId)
- Parameters:
resBytes- Marshalled result.futId- Future ID.- Returns:
- Response message.
-
unmarshal
@Nullable public <T> T unmarshal(Marshaller marsh) throws IgniteCheckedException
- Parameters:
marsh- Marshaller.- Returns:
- Unmarshalled payload.
- Throws:
IgniteCheckedException- If failed.
-
futureId
public long futureId()
- Returns:
- Future ID.
-
request
public boolean request()
- Returns:
Trueif this is request message.
-
writeTo
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
Writes this message to provided byte buffer.
-
readFrom
public boolean readFrom(ByteBuffer buf, MessageReader reader)
Reads this message from provided byte buffer.
-
directType
public short directType()
Gets message type.- Specified by:
directTypein interfaceMessage- Returns:
- Message type.
-
fieldsCount
public byte fieldsCount()
Gets fields count.- Specified by:
fieldsCountin interfaceMessage- Returns:
- Fields count.
-
onAckReceived
public void onAckReceived()
Method called when ack message received.- Specified by:
onAckReceivedin interfaceMessage
-
dumpCommunicationInfo
public static IgniteInternalFuture<String> dumpCommunicationInfo(GridKernalContext ctx, UUID nodeId)
- Parameters:
ctx- Context.nodeId- Target node ID.- Returns:
- Communication information future.
-
-