Search in sources :

Example 1 with ServiceType

use of alluxio.util.network.NetworkAddressUtils.ServiceType in project alluxio by Alluxio.

the class ServiceSocketBindIntegrationTest method startCluster.

private void startCluster(String bindHost) throws Exception {
    for (ServiceType service : ServiceType.values()) {
        mLocalAlluxioClusterResource.setProperty(service.getBindHostKey(), bindHost);
    }
    mLocalAlluxioClusterResource.start();
    mLocalAlluxioCluster = mLocalAlluxioClusterResource.get();
}
Also used : ServiceType(alluxio.util.network.NetworkAddressUtils.ServiceType)

Example 2 with ServiceType

use of alluxio.util.network.NetworkAddressUtils.ServiceType in project alluxio by Alluxio.

the class ServiceSocketBindIntegrationTest method startCluster.

/**
 * Starts the {@link LocalAlluxioCluster}.
 *
 * @param bindHost the local host name to bind
 */
private void startCluster(String bindHost) throws Exception {
    for (ServiceType service : ServiceType.values()) {
        mLocalAlluxioClusterResource.setProperty(service.getBindHostKey(), bindHost);
    }
    mLocalAlluxioClusterResource.start();
    mLocalAlluxioCluster = mLocalAlluxioClusterResource.get();
}
Also used : ServiceType(alluxio.util.network.NetworkAddressUtils.ServiceType)

Example 3 with ServiceType

use of alluxio.util.network.NetworkAddressUtils.ServiceType in project alluxio by Alluxio.

the class IntegrationTestUtils method reserveMasterPorts.

/**
 * Reserves ports for each master service and updates the server configuration.
 */
public static void reserveMasterPorts() {
    for (ServiceType service : Arrays.asList(ServiceType.MASTER_RPC, ServiceType.MASTER_WEB, ServiceType.MASTER_RAFT, ServiceType.JOB_MASTER_RPC, ServiceType.JOB_MASTER_WEB, ServiceType.JOB_MASTER_RAFT)) {
        PropertyKey key = service.getPortKey();
        ServerConfiguration.set(key, PortRegistry.reservePort());
    }
}
Also used : ServiceType(alluxio.util.network.NetworkAddressUtils.ServiceType) PropertyKey(alluxio.conf.PropertyKey)

Aggregations

ServiceType (alluxio.util.network.NetworkAddressUtils.ServiceType)3 PropertyKey (alluxio.conf.PropertyKey)1