public class GridCacheIoManager extends GridCacheSharedManagerAdapter
cctx, log| Constructor and Description |
|---|
GridCacheIoManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(int cacheId,
Class<? extends GridCacheMessage> type,
IgniteBiInClosure<UUID,? extends GridCacheMessage> c)
Adds message handler.
|
void |
addOrderedHandler(Object topic,
IgniteBiInClosure<UUID,? extends GridCacheMessage> c)
Adds ordered message handler.
|
long |
nextIoId() |
protected void |
onKernalStop0(boolean cancel) |
void |
printMemoryStats()
Prints memory statistics (sizes of internal data structures, etc.).
|
void |
removeHandler(int cacheId,
Class<? extends GridCacheMessage> type) |
void |
removeHandlers(int cacheId) |
void |
removeOrderedHandler(Object topic)
Removed ordered message handler.
|
void |
safeSend(Collection<? extends ClusterNode> nodes,
GridCacheMessage msg,
byte plc,
IgnitePredicate<ClusterNode> fallback)
Sends message and automatically accounts for lefts nodes.
|
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() |
context, isStopping, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStart, onKernalStart0, onKernalStop, start, startInfo, stop, stop0, stopInfo, toStringpublic void start0()
throws IgniteCheckedException
start0 in class GridCacheSharedManagerAdapterIgniteCheckedException - If failed.protected void onKernalStop0(boolean cancel)
onKernalStop0 in class GridCacheSharedManagerAdaptercancel - Cancel flag.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 safeSend(Collection<? extends ClusterNode> nodes, GridCacheMessage msg, byte plc, @Nullable IgnitePredicate<ClusterNode> fallback) throws IgniteCheckedException
nodes - Nodes to send to.msg - Message to send.plc - IO policy.fallback - Callback for failed nodes.IgniteCheckedException - If send failed.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 void addHandler(int cacheId,
Class<? extends GridCacheMessage> type,
IgniteBiInClosure<UUID,? extends GridCacheMessage> c)
cacheId - Cache ID.type - Type of message.c - Handler.public void removeHandlers(int cacheId)
cacheId - Cache ID to remove handlers for.public void removeHandler(int cacheId,
Class<? extends GridCacheMessage> type)
cacheId - Cache ID to remove handlers for.type - Message type.public void addOrderedHandler(Object topic, IgniteBiInClosure<UUID,? extends GridCacheMessage> c)
topic - Topic.c - Handler.public void removeOrderedHandler(Object topic)
topic - Topic.public void printMemoryStats()
printMemoryStats in interface GridCacheSharedManagerprintMemoryStats in class GridCacheSharedManagerAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017