Interface TcpCommunicationSpiMBean
-
- All Superinterfaces:
IgniteSpiManagementMBean
@MXBeanDescription("MBean provide access to TCP-based communication SPI.") public interface TcpCommunicationSpiMBean extends IgniteSpiManagementMBean
MBean provide access to TCP-based communication SPI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voiddumpStats()Dumps SPI per-connection stats to logs.intgetAckSendThreshold()Gets number of received messages per connection to node after which acknowledgment message is sent.intgetConnectionsPerNode()Gets number of connections to each remote node. ifisUsePairedConnections()istruethen number of connections is doubled and half is used for incoming and half for outgoing messages.longgetConnectTimeout()Gets connect timeout used when establishing connection with remote nodes.longgetIdleConnectionTimeout()Gets maximum idle connection time upon which idle connections will be closed.StringgetLocalAddress()Gets local host address for socket binding.intgetLocalPort()Gets local port for socket binding.intgetLocalPortRange()Gets maximum number of local ports tried if all previously tried ports are occupied.longgetMaxConnectTimeout()Gets maximum connect timeout.intgetMessageQueueLimit()Gets message queue limit for incoming and outgoing messages.intgetOutboundMessagesQueueSize()Gets outbound messages queue size.longgetReceivedBytesCount()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).intgetReceivedMessagesCount()Gets received messages count.intgetReconnectCount()Gets maximum number of reconnect attempts used when establishing connection with remote nodes.intgetSelectorsCount()Gets count of selectors used in TCP server.longgetSelectorSpins()Defines how many non-blockingselector.selectNow()should be made before falling intoselector.select(long)in NIO server.longgetSentBytesCount()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).intgetSentMessagesCount()Gets sent messages count.intgetSharedMemoryPort()Deprecated.This property will be removed in future releases.intgetSlowClientQueueLimit()Gets slow client queue limit.intgetSocketReceiveBuffer()Gets receive buffer size for sockets created or accepted by this SPI.intgetSocketSendBuffer()Gets send buffer size for sockets created or accepted by this SPI.longgetSocketWriteTimeout()Gets socket write timeout for TCP connections.intgetUnacknowledgedMessagesBufferSize()Gets maximum number of stored unacknowledged messages per connection to node.booleanisDirectBuffer()Gets flag that indicates whether direct or heap allocated buffer is used.booleanisDirectSendBuffer()Gets flag defining whether direct send buffer should be used.booleanisTcpNoDelay()Gets value forTCP_NODELAYsocket option.booleanisUsePairedConnections()ReturnstrueifTcpCommunicationSpishould maintain connection for outgoing and incoming messages separately.-
Methods inherited from interface org.apache.ignite.spi.IgniteSpiManagementMBean
getIgniteHome, getLocalNodeId, getName, getStartTimestamp, getStartTimestampFormatted, getUpTime, getUpTimeFormatted
-
-
-
-
Method Detail
-
getLocalAddress
@MXBeanDescription("Grid node IP address.") String getLocalAddress()
Gets local host address for socket binding. Beside loopback address physical node could have several other ones, but only one is assigned to grid node.- Returns:
- Grid node IP address.
-
getLocalPort
@MXBeanDescription("Port number.") int getLocalPort()
Gets local port for socket binding.- Returns:
- Port number.
-
isUsePairedConnections
@MXBeanDescription("Paired connections used.") boolean isUsePairedConnections()
ReturnstrueifTcpCommunicationSpishould maintain connection for outgoing and incoming messages separately. In this case total number of connections between local and some remote node isgetConnectionsPerNode()* 2.Returns
falseif each connection ofgetConnectionsPerNode()should be used for outgoing and incoming messages.Default is
false.- Returns:
trueto use paired connections andfalseotherwise.- See Also:
getConnectionsPerNode()
-
getConnectionsPerNode
@MXBeanDescription("Connections per node.") int getConnectionsPerNode()
Gets number of connections to each remote node. ifisUsePairedConnections()istruethen number of connections is doubled and half is used for incoming and half for outgoing messages.- Returns:
- Number of connections per node.
- See Also:
isUsePairedConnections()
-
getSharedMemoryPort
@MXBeanDescription("This property will be removed in future releases.") @Deprecated int getSharedMemoryPort()
Deprecated.This property will be removed in future releases.- Returns:
- Ignored value.
-
getLocalPortRange
@MXBeanDescription("Local port range.") int getLocalPortRange()
Gets maximum number of local ports tried if all previously tried ports are occupied.- Returns:
- Local port range.
-
getIdleConnectionTimeout
@MXBeanDescription("Maximum idle connection time.") long getIdleConnectionTimeout()
Gets maximum idle connection time upon which idle connections will be closed.- Returns:
- Maximum idle connection time.
-
isDirectBuffer
@MXBeanDescription("Flag that indicates whether direct or heap allocated buffer is used.") boolean isDirectBuffer()
Gets flag that indicates whether direct or heap allocated buffer is used.- Returns:
- Flag that indicates whether direct or heap allocated buffer is used.
-
getSelectorsCount
@MXBeanDescription("Count of selectors used in TCP server.") int getSelectorsCount()
Gets count of selectors used in TCP server. Default value equals to the number of CPUs available in the system.- Returns:
- Count of selectors in TCP server.
-
getSentMessagesCount
@MXBeanDescription("Sent messages count.") int getSentMessagesCount()
Gets sent messages count.- Returns:
- Sent messages count.
-
getSentBytesCount
@MXBeanDescription("Sent bytes count.") long getSentBytesCount()
Gets sent bytes count.- Returns:
- Sent bytes count.
-
getReceivedMessagesCount
@MXBeanDescription("Received messages count.") int getReceivedMessagesCount()
Gets received messages count.- Returns:
- Received messages count.
-
getReceivedBytesCount
@MXBeanDescription("Received bytes count.") long getReceivedBytesCount()
Gets received bytes count.- Returns:
- Received bytes count.
-
getReceivedMessagesByType
@MXBeanDescription("Received messages count grouped by message type.") Map<String,Long> getReceivedMessagesByType()
Gets received messages counts (grouped by type).- Returns:
- Map containing message types and respective counts.
-
getReceivedMessagesByNode
@MXBeanDescription("Received messages count grouped by sender node.") Map<UUID,Long> getReceivedMessagesByNode()
Gets received messages counts (grouped by node).- Returns:
- Map containing sender nodes and respective counts.
-
getSentMessagesByType
@MXBeanDescription("Sent messages count grouped by message type.") Map<String,Long> getSentMessagesByType()
Gets sent messages counts (grouped by type).- Returns:
- Map containing message types and respective counts.
-
getSentMessagesByNode
@MXBeanDescription("Sent messages count grouped by receiver node.") Map<UUID,Long> getSentMessagesByNode()
Gets sent messages counts (grouped by node).- Returns:
- Map containing receiver nodes and respective counts.
-
getOutboundMessagesQueueSize
@MXBeanDescription("Outbound messages queue size.") int getOutboundMessagesQueueSize()
Gets outbound messages queue size.- Returns:
- Outbound messages queue size.
-
getConnectTimeout
@MXBeanDescription("Connect timeout.") long getConnectTimeout()
Gets connect timeout used when establishing connection with remote nodes.- Returns:
- Connect timeout.
-
getMaxConnectTimeout
@MXBeanDescription("Maximum connect timeout.") long getMaxConnectTimeout()
Gets maximum connect timeout.- Returns:
- Maximum connect timeout.
-
getReconnectCount
@MXBeanDescription("Reconnect count on connection failure.") int getReconnectCount()
Gets maximum number of reconnect attempts used when establishing connection with remote nodes.- Returns:
- Reconnects count.
-
getSelectorSpins
@MXBeanDescription("Selector thread busy-loop iterations.") long getSelectorSpins()
Defines how many non-blockingselector.selectNow()should be made before falling intoselector.select(long)in NIO server. Long value. Default is0. Can be set toLong.MAX_VALUEso selector threads will never block.- Returns:
- Selector thread busy-loop iterations.
-
isTcpNoDelay
@MXBeanDescription("TCP_NODELAY socket option value.") boolean isTcpNoDelay()
Gets value forTCP_NODELAYsocket option.- Returns:
Trueif TCP delay is disabled.
-
isDirectSendBuffer
@MXBeanDescription("Direct send buffer.") boolean isDirectSendBuffer()
Gets flag defining whether direct send buffer should be used.- Returns:
Trueif direct buffers should be used.
-
getSocketReceiveBuffer
@MXBeanDescription("Socket receive buffer.") int getSocketReceiveBuffer()
Gets receive buffer size for sockets created or accepted by this SPI.If not provided, default is
TcpCommunicationSpi.DFLT_SOCK_BUF_SIZE.- Returns:
- Socket receive buffer size.
-
getSocketSendBuffer
@MXBeanDescription("Socket send buffer.") int getSocketSendBuffer()
Gets send buffer size for sockets created or accepted by this SPI.If not provided, default is
TcpCommunicationSpi.DFLT_SOCK_BUF_SIZE.- Returns:
- Socket send buffer size.
-
getMessageQueueLimit
@MXBeanDescription("Message queue size limit.") int getMessageQueueLimit()
Gets message queue limit for incoming and outgoing messages.- Returns:
- Send queue size limit.
-
getSocketWriteTimeout
@MXBeanDescription("Socket write timeout.") long getSocketWriteTimeout()
Gets socket write timeout for TCP connections. If message can not be written to socket within this time then connection is closed and reconnect is attempted.- Returns:
- Socket write timeout for TCP connections.
-
getAckSendThreshold
@MXBeanDescription("Number of received messages after which acknowledgment is sent.") int getAckSendThreshold()
Gets number of received messages per connection to node after which acknowledgment message is sent.- Returns:
- Number of received messages after which acknowledgment is sent.
-
getUnacknowledgedMessagesBufferSize
@MXBeanDescription("Maximum number of unacknowledged messages.") int getUnacknowledgedMessagesBufferSize()
Gets maximum number of stored unacknowledged messages per connection to node. If number of unacknowledged messages exceeds this number then connection to node is closed and reconnect is attempted.- Returns:
- Maximum number of unacknowledged messages.
-
getSlowClientQueueLimit
@MXBeanDescription("Slow client queue limit.") int getSlowClientQueueLimit()
Gets slow client queue limit. When set to a positive number, communication SPI will monitor clients outbound queue sizes and will drop those clients whose queue exceeded this limit.- Returns:
- Slow client queue limit.
-
dumpStats
@MXBeanDescription("Dumps SPI statistics to logs.") void dumpStats()
Dumps SPI per-connection stats to logs.
-
-