Search in sources :

Example 1 with MessagingNetworkManager

use of org.apache.hyracks.control.nc.net.MessagingNetworkManager in project asterixdb by apache.

the class NodeControllerService method init.

private void init() throws Exception {
    ioManager.setExecutor(executor);
    datasetPartitionManager = new DatasetPartitionManager(this, executor, ncConfig.getResultManagerMemory(), ncConfig.getResultTTL(), ncConfig.getResultSweepThreshold());
    datasetNetworkManager = new DatasetNetworkManager(ncConfig.getResultListenAddress(), ncConfig.getResultListenPort(), datasetPartitionManager, ncConfig.getNetThreadCount(), ncConfig.getNetBufferCount(), ncConfig.getResultPublicAddress(), ncConfig.getResultPublicPort(), FullFrameChannelInterfaceFactory.INSTANCE);
    if (ncConfig.getMessagingListenAddress() != null && serviceCtx.getMessagingChannelInterfaceFactory() != null) {
        messagingNetManager = new MessagingNetworkManager(this, ncConfig.getMessagingListenAddress(), ncConfig.getMessagingListenPort(), ncConfig.getNetThreadCount(), ncConfig.getMessagingPublicAddress(), ncConfig.getMessagingPublicPort(), serviceCtx.getMessagingChannelInterfaceFactory());
    }
}
Also used : DatasetPartitionManager(org.apache.hyracks.control.nc.dataset.DatasetPartitionManager) IDatasetPartitionManager(org.apache.hyracks.api.dataset.IDatasetPartitionManager) DatasetNetworkManager(org.apache.hyracks.control.nc.net.DatasetNetworkManager) MessagingNetworkManager(org.apache.hyracks.control.nc.net.MessagingNetworkManager)

Aggregations

IDatasetPartitionManager (org.apache.hyracks.api.dataset.IDatasetPartitionManager)1 DatasetPartitionManager (org.apache.hyracks.control.nc.dataset.DatasetPartitionManager)1 DatasetNetworkManager (org.apache.hyracks.control.nc.net.DatasetNetworkManager)1 MessagingNetworkManager (org.apache.hyracks.control.nc.net.MessagingNetworkManager)1