Search in sources :

Example 11 with SystemConnectException

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;
}
Also used : GemFireConfigException(org.apache.geode.GemFireConfigException) ServerSocket(java.net.ServerSocket) IOException(java.io.IOException) SystemConnectException(org.apache.geode.SystemConnectException)

Aggregations

SystemConnectException (org.apache.geode.SystemConnectException)11 GemFireConfigException (org.apache.geode.GemFireConfigException)6 IOException (java.io.IOException)5 ForcedDisconnectException (org.apache.geode.ForcedDisconnectException)5 DistributedSystemDisconnectedException (org.apache.geode.distributed.DistributedSystemDisconnectedException)5 CancelException (org.apache.geode.CancelException)4 GemFireSecurityException (org.apache.geode.security.GemFireSecurityException)4 GemFireIOException (org.apache.geode.GemFireIOException)3 File (java.io.File)2 NotSerializableException (java.io.NotSerializableException)2 ServerSocket (java.net.ServerSocket)2 UnknownHostException (java.net.UnknownHostException)2 Properties (java.util.Properties)2 ToDataException (org.apache.geode.ToDataException)2 CacheClosedException (org.apache.geode.cache.CacheClosedException)2 CacheXmlException (org.apache.geode.cache.CacheXmlException)2 ConfigurationProperties (org.apache.geode.distributed.ConfigurationProperties)2 DistributionException (org.apache.geode.distributed.internal.DistributionException)2 InternalDistributedMember (org.apache.geode.distributed.internal.membership.InternalDistributedMember)2 MembershipManager (org.apache.geode.distributed.internal.membership.MembershipManager)2