Class TransportConf
- java.lang.Object
-
- org.apache.hugegraph.computer.core.network.TransportConf
-
public class TransportConf extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLIENT_THREAD_GROUP_NAMEstatic java.lang.StringSERVER_THREAD_GROUP_NAME
-
Constructor Summary
Constructors Modifier Constructor Description protectedTransportConf(org.apache.hugegraph.computer.core.config.Config config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longclientConnectionTimeout()intclientThreads()longcloseTimeout()booleanepollLevelTriggered()Whether enabled EPOLL level triggerlongheartbeatInterval()IOModeioMode()IO mode: nio or epollintmaxPendingRequests()intmaxSynBacklog()Requested maximum length of the queue of incoming connections.intmaxTimeoutHeartbeatCount()longminAckInterval()intminPendingRequests()intnetworkRetries()booleanrecvBufferFileMode()java.net.InetAddressserverAddress()longserverIdleTimeout()intserverPort()A port number of zero will let the system pick up an ephemeral port.intserverThreads()intsizeReceiveBuffer()Receive buffer size (SO_RCVBUF).intsizeSendBuffer()booleantcpKeepAlive()longtimeoutFinishSession()Timeout of finish session, if less than or equal 0 the default value is TRANSPORT_SYNC_REQUEST_TIMEOUT * TRANSPORT_MAX_PENDING_REQUESTSlongtimeoutSyncRequest()TransportProvidertransportProvider()static TransportConfwrapConfig(org.apache.hugegraph.computer.core.config.Config config)intwriteBufferHighMark()intwriteBufferLowMark()longwriteSocketTimeout()
-
-
-
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
-
-
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()
-
transportProvider
public TransportProvider transportProvider()
-
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 ofNetUtil.SOMAXCONNwill 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()
-
-