public class TcpCommunicationSpiMBeanImpl extends IgniteSpiMBeanAdapter implements TcpCommunicationSpiMBean
spiAdapter| Constructor and Description |
|---|
TcpCommunicationSpiMBeanImpl(IgniteSpiAdapter spiAdapter,
TcpCommunicationMetricsListener metricsLsnr,
TcpCommunicationConfiguration cfg,
ClusterStateProvider stateProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
dumpStats()
Dumps SPI per-connection stats to logs.
|
int |
getAckSendThreshold()
Gets number of received messages per connection to node after which acknowledgment message is sent.
|
int |
getConnectionsPerNode()
Gets number of connections to each remote node. if
TcpCommunicationSpiMBean.isUsePairedConnections()
is true then number of connections is doubled and half is used for incoming and
half for outgoing messages. |
long |
getConnectTimeout()
Gets connect timeout used when establishing connection
with remote nodes.
|
long |
getIdleConnectionTimeout()
Gets maximum idle connection time upon which idle connections
will be closed.
|
String |
getLocalAddress()
Gets local host address for socket binding.
|
int |
getLocalPort()
Gets local port for socket binding.
|
int |
getLocalPortRange()
Gets maximum number of local ports tried if all previously
tried ports are occupied.
|
long |
getMaxConnectTimeout()
Gets maximum connect timeout.
|
int |
getMessageQueueLimit()
Gets message queue limit for incoming and outgoing messages.
|
int |
getOutboundMessagesQueueSize()
Gets outbound messages queue size.
|
long |
getReceivedBytesCount()
Gets received bytes count.
|
Map<UUID,Long> |
getReceivedMessagesByNode()
Gets received messages counts (grouped by node).
|
Map<String,Long> |
getReceivedMessagesByType()
Gets received messages counts (grouped by type).
|
int |
getReceivedMessagesCount()
Gets received messages count.
|
int |
getReconnectCount()
Gets maximum number of reconnect attempts used when establishing connection
with remote nodes.
|
int |
getSelectorsCount()
Gets count of selectors used in TCP server.
|
long |
getSelectorSpins()
Defines how many non-blocking
selector.selectNow() should be made before
falling into selector.select(long) in NIO server. |
long |
getSentBytesCount()
Gets sent bytes count.
|
Map<UUID,Long> |
getSentMessagesByNode()
Gets sent messages counts (grouped by node).
|
Map<String,Long> |
getSentMessagesByType()
Gets sent messages counts (grouped by type).
|
int |
getSentMessagesCount()
Gets sent messages count.
|
int |
getSharedMemoryPort()
Gets local port for shared memory communication.
|
int |
getSlowClientQueueLimit()
Gets slow client queue limit.
|
int |
getSocketReceiveBuffer()
Gets receive buffer size for sockets created or accepted by this SPI.
|
int |
getSocketSendBuffer()
Gets send buffer size for sockets created or accepted by this SPI.
|
long |
getSocketWriteTimeout()
Gets socket write timeout for TCP connections.
|
int |
getUnacknowledgedMessagesBufferSize()
Gets maximum number of stored unacknowledged messages per connection to node.
|
boolean |
isDirectBuffer()
Gets flag that indicates whether direct or heap allocated buffer is used.
|
boolean |
isDirectSendBuffer()
Gets flag defining whether direct send buffer should be used.
|
boolean |
isTcpNoDelay()
Gets value for
TCP_NODELAY socket option. |
boolean |
isUsePairedConnections()
Returns
true if TcpCommunicationSpi should
maintain connection for outgoing and incoming messages separately. |
getIgniteHome, getLocalNodeId, getName, getStartTimestamp, getStartTimestampFormatted, getUpTime, getUpTimeFormattedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIgniteHome, getLocalNodeId, getName, getStartTimestamp, getStartTimestampFormatted, getUpTime, getUpTimeFormattedpublic TcpCommunicationSpiMBeanImpl(IgniteSpiAdapter spiAdapter, TcpCommunicationMetricsListener metricsLsnr, TcpCommunicationConfiguration cfg, ClusterStateProvider stateProvider)
spiAdapter - Spi adapter.metricsLsnr - Metrics listener.cfg - Config.stateProvider - State provider.public String getLocalAddress()
getLocalAddress in interface TcpCommunicationSpiMBeanpublic int getLocalPort()
getLocalPort in interface TcpCommunicationSpiMBeanpublic int getLocalPortRange()
getLocalPortRange in interface TcpCommunicationSpiMBeanpublic boolean isUsePairedConnections()
true if TcpCommunicationSpi should
maintain connection for outgoing and incoming messages separately.
In this case total number of connections between local and some remote node
is TcpCommunicationSpiMBean.getConnectionsPerNode() * 2.
Returns false if each connection of TcpCommunicationSpiMBean.getConnectionsPerNode()
should be used for outgoing and incoming messages.
Default is false.
isUsePairedConnections in interface TcpCommunicationSpiMBeantrue to use paired connections and false otherwise.TcpCommunicationSpiMBean.getConnectionsPerNode()public int getConnectionsPerNode()
TcpCommunicationSpiMBean.isUsePairedConnections()
is true then number of connections is doubled and half is used for incoming and
half for outgoing messages.getConnectionsPerNode in interface TcpCommunicationSpiMBeanTcpCommunicationSpiMBean.isUsePairedConnections()public int getSharedMemoryPort()
getSharedMemoryPort in interface TcpCommunicationSpiMBeanpublic long getIdleConnectionTimeout()
getIdleConnectionTimeout in interface TcpCommunicationSpiMBeanpublic long getSocketWriteTimeout()
getSocketWriteTimeout in interface TcpCommunicationSpiMBeanpublic int getAckSendThreshold()
getAckSendThreshold in interface TcpCommunicationSpiMBeanpublic int getUnacknowledgedMessagesBufferSize()
getUnacknowledgedMessagesBufferSize in interface TcpCommunicationSpiMBeanpublic long getConnectTimeout()
getConnectTimeout in interface TcpCommunicationSpiMBeanpublic long getMaxConnectTimeout()
getMaxConnectTimeout in interface TcpCommunicationSpiMBeanpublic int getReconnectCount()
getReconnectCount in interface TcpCommunicationSpiMBeanpublic boolean isDirectBuffer()
isDirectBuffer in interface TcpCommunicationSpiMBeanpublic boolean isDirectSendBuffer()
isDirectSendBuffer in interface TcpCommunicationSpiMBeanTrue if direct buffers should be used.public int getSelectorsCount()
getSelectorsCount in interface TcpCommunicationSpiMBeanpublic long getSelectorSpins()
selector.selectNow() should be made before
falling into selector.select(long) in NIO server. Long value. Default is 0.
Can be set to Long.MAX_VALUE so selector threads will never block.getSelectorSpins in interface TcpCommunicationSpiMBeanpublic boolean isTcpNoDelay()
TCP_NODELAY socket option.isTcpNoDelay in interface TcpCommunicationSpiMBeanTrue if TCP delay is disabled.public int getSocketReceiveBuffer()
If not provided, default is TcpCommunicationSpi.DFLT_SOCK_BUF_SIZE.
getSocketReceiveBuffer in interface TcpCommunicationSpiMBeanpublic int getSocketSendBuffer()
If not provided, default is TcpCommunicationSpi.DFLT_SOCK_BUF_SIZE.
getSocketSendBuffer in interface TcpCommunicationSpiMBeanpublic int getMessageQueueLimit()
getMessageQueueLimit in interface TcpCommunicationSpiMBeanpublic int getSlowClientQueueLimit()
getSlowClientQueueLimit in interface TcpCommunicationSpiMBeanpublic void dumpStats()
dumpStats in interface TcpCommunicationSpiMBeanpublic int getSentMessagesCount()
getSentMessagesCount in interface TcpCommunicationSpiMBeanpublic long getSentBytesCount()
getSentBytesCount in interface TcpCommunicationSpiMBeanpublic int getReceivedMessagesCount()
getReceivedMessagesCount in interface TcpCommunicationSpiMBeanpublic long getReceivedBytesCount()
getReceivedBytesCount in interface TcpCommunicationSpiMBeanpublic Map<String,Long> getReceivedMessagesByType()
getReceivedMessagesByType in interface TcpCommunicationSpiMBeanpublic Map<UUID,Long> getReceivedMessagesByNode()
getReceivedMessagesByNode in interface TcpCommunicationSpiMBeanpublic Map<String,Long> getSentMessagesByType()
getSentMessagesByType in interface TcpCommunicationSpiMBeanpublic Map<UUID,Long> getSentMessagesByNode()
getSentMessagesByNode in interface TcpCommunicationSpiMBeanpublic int getOutboundMessagesQueueSize()
getOutboundMessagesQueueSize in interface TcpCommunicationSpiMBean
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021