Search in sources :

Example 6 with DirectChannel

use of org.apache.geode.distributed.internal.direct.DirectChannel in project geode by apache.

the class GMSMembershipManager method start.

@Override
public void start() {
    DistributionConfig config = services.getConfig().getDistributionConfig();
    int dcPort = 0;
    if (!tcpDisabled) {
        directChannel = new DirectChannel(this, dcReceiver, config);
        dcPort = directChannel.getPort();
    }
    services.getMessenger().getMemberID().setDirectChannelPort(dcPort);
}
Also used : DistributionConfig(org.apache.geode.distributed.internal.DistributionConfig) DirectChannel(org.apache.geode.distributed.internal.direct.DirectChannel)

Aggregations

DirectChannel (org.apache.geode.distributed.internal.direct.DirectChannel)6 NetView (org.apache.geode.distributed.internal.membership.NetView)2 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 Map (java.util.Map)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 TimeoutException (java.util.concurrent.TimeoutException)1 DistributionConfig (org.apache.geode.distributed.internal.DistributionConfig)1 DistributionMessage (org.apache.geode.distributed.internal.DistributionMessage)1 InternalDistributedMember (org.apache.geode.distributed.internal.membership.InternalDistributedMember)1