public class GridCacheIoManager extends GridCacheSharedManagerAdapter
cctx, diagnosticLog, log| Constructor and Description |
|---|
GridCacheIoManager() |
| Modifier and Type | Method and Description |
|---|---|
<Msg extends GridCacheGroupIdMessage> |
addCacheGroupHandler(int hndId,
Class<Msg> type,
IgniteBiInClosure<UUID,? super Msg> c) |
<Msg extends GridCacheMessage> |
addCacheHandler(int hndId,
Class<Msg> type,
IgniteBiInClosure<UUID,? super Msg> c) |
void |
addOrderedCacheGroupHandler(GridCacheSharedContext cctx,
Object topic,
IgniteBiInClosure<UUID,? extends GridCacheGroupIdMessage> c) |
void |
addOrderedCacheHandler(GridCacheSharedContext cctx,
Object topic,
IgniteBiInClosure<UUID,? extends GridCacheIdMessage> c) |
boolean |
checkNodeLeft(UUID nodeId,
IgniteCheckedException sndErr,
boolean ping) |
void |
dumpPendingMessages(StringBuilder sb) |
long |
nextIoId() |
protected void |
onKernalStop0(boolean cancel) |
void |
onMessageProcessed(GridCacheMessage msg) |
void |
printMemoryStats()
Prints memory statistics (sizes of internal data structures, etc.).
|
@Nullable Lock |
readLock() |
void |
removeHandler(boolean cacheGrp,
int hndId,
Class<? extends GridCacheMessage> type) |
void |
removeOrderedHandler(boolean cacheGrp,
Object topic)
Removed ordered message handler.
|
void |
send(ClusterNode node,
GridCacheMessage msg,
byte plc)
Sends communication message.
|
void |
send(UUID nodeId,
GridCacheMessage msg,
byte plc)
Sends communication message.
|
void |
sendOrderedMessage(ClusterNode node,
Object topic,
GridCacheMessage msg,
byte plc,
long timeout) |
void |
start0() |
void |
writeLock() |
void |
writeUnlock() |
context, isStopping, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStart, onKernalStart0, onKernalStop, onReconnected, start, startInfo, stop, stop0, stopInfo, toStringpublic void dumpPendingMessages(StringBuilder sb)
sb - String builder.public void start0()
throws IgniteCheckedException
start0 in class GridCacheSharedManagerAdapterIgniteCheckedException - If failed.@Nullable public @Nullable Lock readLock()
null if node is stopping.public void writeLock()
public void writeUnlock()
protected void onKernalStop0(boolean cancel)
onKernalStop0 in class GridCacheSharedManagerAdaptercancel - Cancel flag.public void onMessageProcessed(GridCacheMessage msg)
msg - Message.public boolean checkNodeLeft(UUID nodeId, IgniteCheckedException sndErr, boolean ping) throws IgniteClientDisconnectedCheckedException
nodeId - Node ID.sndErr - Send error.ping - True if try ping node.True if node left.IgniteClientDisconnectedCheckedException - If ping failed.public void send(ClusterNode node, GridCacheMessage msg, byte plc) throws IgniteCheckedException
node - Node to send the message to.msg - Message to send.plc - IO policy.IgniteCheckedException - If sending failed.ClusterTopologyCheckedException - If receiver left.public void send(UUID nodeId, GridCacheMessage msg, byte plc) throws IgniteCheckedException
nodeId - ID of node to send the message to.msg - Message to send.plc - IO policy.IgniteCheckedException - If sending failed.public void sendOrderedMessage(ClusterNode node, Object topic, GridCacheMessage msg, byte plc, long timeout) throws IgniteCheckedException
node - Destination node.topic - Topic to send the message to.msg - Message to send.plc - IO policy.timeout - Timeout to keep a message on receiving queue.IgniteCheckedException - Thrown in case of any errors.public long nextIoId()
public <Msg extends GridCacheMessage> void addCacheHandler(int hndId, Class<Msg> type, IgniteBiInClosure<UUID,? super Msg> c)
hndId - Message handler ID.type - Type of message.c - Handler.public <Msg extends GridCacheGroupIdMessage> void addCacheGroupHandler(int hndId, Class<Msg> type, IgniteBiInClosure<UUID,? super Msg> c)
hndId - Message handler ID.type - Type of message.c - Handler.public void removeHandler(boolean cacheGrp,
int hndId,
Class<? extends GridCacheMessage> type)
cacheGrp - True if cache group handler, false if cache handler.hndId - Handler ID.type - Message type.public void addOrderedCacheHandler(GridCacheSharedContext cctx, Object topic, IgniteBiInClosure<UUID,? extends GridCacheIdMessage> c)
cctx - Context.topic - Topic.c - Handler.public void addOrderedCacheGroupHandler(GridCacheSharedContext cctx, Object topic, IgniteBiInClosure<UUID,? extends GridCacheGroupIdMessage> c)
cctx - Context.topic - Topic.c - Handler.public void removeOrderedHandler(boolean cacheGrp,
Object topic)
cacheGrp - True if cache group message, false if cache message.topic - Topic.public void printMemoryStats()
printMemoryStats in interface GridCacheSharedManagerprintMemoryStats in class GridCacheSharedManagerAdapter
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020