Class TransportConf


  • public class TransportConf
    extends java.lang.Object
    • Field Detail

      • SERVER_THREAD_GROUP_NAME

        public static final java.lang.String SERVER_THREAD_GROUP_NAME
        See Also:
        Constant Field Values
      • CLIENT_THREAD_GROUP_NAME

        public static final java.lang.String CLIENT_THREAD_GROUP_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • TransportConf

        protected TransportConf​(org.apache.hugegraph.computer.core.config.Config config)
    • Method Detail

      • wrapConfig

        public static TransportConf wrapConfig​(org.apache.hugegraph.computer.core.config.Config config)
      • serverAddress

        public java.net.InetAddress serverAddress()
      • serverPort

        public int serverPort()
        A port number of zero will let the system pick up an ephemeral port.
      • serverThreads

        public int serverThreads()
      • clientThreads

        public int clientThreads()
      • recvBufferFileMode

        public boolean recvBufferFileMode()
      • ioMode

        public IOMode ioMode()
        IO mode: nio or epoll
      • epollLevelTriggered

        public boolean epollLevelTriggered()
        Whether enabled EPOLL level trigger
      • tcpKeepAlive

        public boolean tcpKeepAlive()
      • maxSynBacklog

        public int maxSynBacklog()
        Requested maximum length of the queue of incoming connections. If < 1, the default Netty value of NetUtil.SOMAXCONN will be used.
      • sizeReceiveBuffer

        public int sizeReceiveBuffer()
        Receive buffer size (SO_RCVBUF). Note: the optimal size for receive buffer and send buffer should be latency * network_bandwidth. Assuming latency = 1ms, network_bandwidth = 10Gbps buffer size should be ~ 1.25MB
      • sizeSendBuffer

        public int sizeSendBuffer()
      • networkRetries

        public int networkRetries()
      • clientConnectionTimeout

        public long clientConnectionTimeout()
      • closeTimeout

        public long closeTimeout()
      • timeoutSyncRequest

        public long timeoutSyncRequest()
      • timeoutFinishSession

        public long timeoutFinishSession()
        Timeout of finish session, if less than or equal 0 the default value is TRANSPORT_SYNC_REQUEST_TIMEOUT * TRANSPORT_MAX_PENDING_REQUESTS
      • writeSocketTimeout

        public long writeSocketTimeout()
      • writeBufferHighMark

        public int writeBufferHighMark()
      • writeBufferLowMark

        public int writeBufferLowMark()
      • maxPendingRequests

        public int maxPendingRequests()
      • minPendingRequests

        public int minPendingRequests()
      • minAckInterval

        public long minAckInterval()
      • serverIdleTimeout

        public long serverIdleTimeout()
      • heartbeatInterval

        public long heartbeatInterval()
      • maxTimeoutHeartbeatCount

        public int maxTimeoutHeartbeatCount()