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();
}
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();
}
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());
}
}
Aggregations