/** * Gets the port number on a given service type. If user defined port number is not explicitly * specified, Alluxio will use the default service port. * * @param service Service type used to connect * @param config configuration * @return the service port number */ public static int getPort(ServiceType service, AlluxioConfiguration config) { return config.getInt(service.mPortKey); }