Search in sources :

Example 1 with CacheClientUpdater

use of org.apache.geode.internal.cache.tier.sockets.CacheClientUpdater in project geode by apache.

the class ConnectionFactoryImpl method createServerToClientConnection.

public ClientUpdater createServerToClientConnection(Endpoint endpoint, QueueManager qManager, boolean isPrimary, ClientUpdater failedUpdater) {
    String clientUpdateName = CacheClientUpdater.CLIENT_UPDATER_THREAD_NAME + " on " + endpoint.getMemberId() + " port " + endpoint.getLocation().getPort();
    if (logger.isDebugEnabled()) {
        logger.debug("Establishing: {}", clientUpdateName);
    }
    // Launch the thread
    CacheClientUpdater updater = new CacheClientUpdater(clientUpdateName, endpoint.getLocation(), isPrimary, ds, new HandShake(this.handshake), qManager, endpointManager, endpoint, handShakeTimeout, this.socketCreator);
    if (!updater.isConnected()) {
        return null;
    }
    updater.setFailedUpdater(failedUpdater);
    updater.start();
    // }
    return updater;
}
Also used : HandShake(org.apache.geode.internal.cache.tier.sockets.HandShake) CacheClientUpdater(org.apache.geode.internal.cache.tier.sockets.CacheClientUpdater)

Aggregations

CacheClientUpdater (org.apache.geode.internal.cache.tier.sockets.CacheClientUpdater)1 HandShake (org.apache.geode.internal.cache.tier.sockets.HandShake)1