use of org.apache.geode.SystemConnectException in project geode by apache.
the class GMSHealthMonitor method createServerSocket.
ServerSocket createServerSocket(InetAddress socketAddress, int[] portRange) {
ServerSocket serverSocket;
try {
serverSocket = SocketCreatorFactory.getSocketCreatorForComponent(SecurableCommunicationChannel.CLUSTER).createServerSocketUsingPortRange(socketAddress, 50, /* backlog */
true, /* isBindAddress */
false, /* useNIO */
65536, /* tcpBufferSize */
portRange, false);
socketPort = serverSocket.getLocalPort();
} catch (IOException | SystemConnectException e) {
throw new GemFireConfigException("Unable to allocate a failure detection port in the membership-port range", e);
}
return serverSocket;
}
Aggregations