@IgniteSpiNoop public class StandaloneNoopCommunicationSpi extends IgniteSpiAdapter implements CommunicationSpi
ignite, igniteInstanceName| Constructor and Description |
|---|
StandaloneNoopCommunicationSpi() |
| Modifier and Type | Method and Description |
|---|---|
int |
getOutboundMessagesQueueSize()
Gets outbound messages queue size.
|
long |
getReceivedBytesCount()
Gets received bytes count.
|
int |
getReceivedMessagesCount()
Gets received messages count.
|
long |
getSentBytesCount()
Gets sent bytes count.
|
int |
getSentMessagesCount()
Gets sent messages count.
|
void |
resetMetrics()
Resets metrics for this SPI instance.
|
void |
sendMessage(ClusterNode destNode,
Serializable msg)
Sends given message to destination node.
|
void |
setListener(CommunicationListener lsnr)
Set communication listener.
|
void |
spiStart(String igniteInstanceName)
This method is called to start SPI.
|
void |
spiStop()
This method is called to stop SPI.
|
addTimeoutObject, assertParameter, checkConfigurationConsistency0, clientFailureDetectionTimeout, configInfo, createSpiAttributeName, failureDetectionTimeout, failureDetectionTimeoutEnabled, failureDetectionTimeoutEnabled, getConsistentAttributeNames, getExceptionRegistry, getLocalNode, getName, getNodeAttributes, getSpiContext, ignite, initFailureDetectionTimeout, injectables, injectResources, isNodeStopping, onBeforeStart, onClientDisconnected, onClientReconnected, onContextDestroyed, onContextDestroyed0, onContextInitialized, onContextInitialized0, registerMBean, removeTimeoutObject, setName, started, startInfo, startStopwatch, stopInfo, unregisterMBeanclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getNodeAttributes, onClientDisconnected, onClientReconnected, onContextDestroyed, onContextInitializedpublic void spiStart(@Nullable
String igniteInstanceName)
throws IgniteSpiException
spiStart in interface IgniteSpiigniteInstanceName - Name of Ignite instance this SPI is being started for
(null for default Ignite instance).IgniteSpiException - Throws in case of any error during SPI start.public void spiStop()
throws IgniteSpiException
Note that this method can be called at any point including during recovery of failed start. It should make no assumptions on what state SPI will be in when this method is called.
spiStop in interface IgniteSpiIgniteSpiException - Thrown in case of any error during SPI stop.public void sendMessage(ClusterNode destNode, Serializable msg) throws IgniteSpiException
sendMessage in interface CommunicationSpidestNode - Destination node.msg - Message to send.IgniteSpiException - Thrown in case of any error during sending the message.
Note that this is not guaranteed that failed communication will result
in thrown exception as this is dependant on SPI implementation.public int getSentMessagesCount()
getSentMessagesCount in interface CommunicationSpipublic long getSentBytesCount()
getSentBytesCount in interface CommunicationSpipublic int getReceivedMessagesCount()
getReceivedMessagesCount in interface CommunicationSpipublic long getReceivedBytesCount()
getReceivedBytesCount in interface CommunicationSpipublic int getOutboundMessagesQueueSize()
getOutboundMessagesQueueSize in interface CommunicationSpipublic void resetMetrics()
resetMetrics in interface CommunicationSpipublic void setListener(@Nullable
CommunicationListener lsnr)
setListener in interface CommunicationSpilsnr - Listener to set or null to unset the listener.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018