public class HighAvailabilityServicesUtils extends Object
HighAvailabilityServices
implementations.Modifier and Type | Class and Description |
---|---|
static class |
HighAvailabilityServicesUtils.AddressResolution
Enum specifying whether address resolution should be tried or not when creating the
HighAvailabilityServices . |
Constructor and Description |
---|
HighAvailabilityServicesUtils() |
Modifier and Type | Method and Description |
---|---|
static HighAvailabilityServices |
createAvailableOrEmbeddedServices(Configuration config,
Executor executor) |
static HighAvailabilityServices |
createHighAvailabilityServices(Configuration configuration,
Executor executor,
HighAvailabilityServicesUtils.AddressResolution addressResolution) |
static Tuple2<String,Integer> |
getJobManagerAddress(Configuration configuration)
Returns the JobManager's hostname and port extracted from the given
Configuration . |
public static HighAvailabilityServices createAvailableOrEmbeddedServices(Configuration config, Executor executor) throws Exception
Exception
public static HighAvailabilityServices createHighAvailabilityServices(Configuration configuration, Executor executor, HighAvailabilityServicesUtils.AddressResolution addressResolution) throws Exception
Exception
public static Tuple2<String,Integer> getJobManagerAddress(Configuration configuration) throws ConfigurationException
Configuration
.configuration
- Configuration to extract the JobManager's address fromConfigurationException
- if the JobManager's address cannot be extracted from the configurationCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.