// Path: src/main/java/de/flapdoodle/embed/process/config/SupportConfig.java
// @Value.Immutable
// public interface SupportConfig {
// 
// 	String name();
// 
// 	String supportUrl();
// 
// 	BiFunction<Class<?>, Exception, String> messageOnException();
// 
// 	static SupportConfig generic() {
// 		return builder()
// 				.name("generic")
// 				.supportUrl("https://github.com/flapdoodle-oss/de.flapdoodle.embed.process")
// 				.messageOnException((clazz,ex) -> null)
// 				.build();
// 	}
// 
// 	static ImmutableSupportConfig.Builder builder() {
// 		return ImmutableSupportConfig.builder();
// 	}
// }
// 
// Path: src/main/java/de/flapdoodle/embed/process/io/Readers.java
// public class Readers {
// 
// 	private static final int CHAR_BUFFER_LENGTH = 512;
// 
// 	private Readers() {
// 		throw new IllegalAccessError("singleton");
// 	}
// 
// 	public static String readAll(Reader reader) throws IOException {
// 		StringBuilder sb = new StringBuilder();
// 		int read;
// 		char[] buf = new char[CHAR_BUFFER_LENGTH];
// 		while ((read = reader.read(buf)) != -1) {
// 			sb.append(new String(buf, 0, read));
// 		}
// 		return sb.toString();
// 	}
// }


import de.flapdoodle.os.OS;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import de.flapdoodle.embed.process.config.SupportConfig;
import de.flapdoodle.os.Platform;
import de.flapdoodle.embed.process.io.Readers;
import static java.util.Arrays.asList;
import java.io.IOException;
import java.io.Reader;
import java.util.HashMap;
import java.util.Map;
/**
 * Copyright (C) 2011
 *   Michael Mosmann <michael@mosmann.de>
 *   Martin Jöhren <m.joehren@googlemail.com>
 *
 * with contributions from
 * 	konstantin-ba@github,
	Archimedes Trajano (trajano@github),
	Kevin D. Keck (kdkeck@github),
	Ben McCann (benmccann@github)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package de.flapdoodle.embed.process.runtime;





/**
 *
 */
public class NUMA {

	private static Logger logger = LoggerFactory.getLogger(NUMA.class);

	public static synchronized boolean isNUMA(SupportConfig support, Platform platform) {
// Path: src/main/java/de/flapdoodle/embed/process/config/SupportConfig.java
// @Value.Immutable
// public interface SupportConfig {
// 
// 	String name();
// 
// 	String supportUrl();
// 
// 	BiFunction<Class<?>, Exception, String> messageOnException();
// 
// 	static SupportConfig generic() {
// 		return builder()
// 				.name("generic")
// 				.supportUrl("https://github.com/flapdoodle-oss/de.flapdoodle.embed.process")
// 				.messageOnException((clazz,ex) -> null)
// 				.build();
// 	}
// 
// 	static ImmutableSupportConfig.Builder builder() {
// 		return ImmutableSupportConfig.builder();
// 	}
// }
// 
// Path: src/main/java/de/flapdoodle/embed/process/io/Readers.java
// public class Readers {
// 
// 	private static final int CHAR_BUFFER_LENGTH = 512;
// 
// 	private Readers() {
// 		throw new IllegalAccessError("singleton");
// 	}
// 
// 	public static String readAll(Reader reader) throws IOException {
// 		StringBuilder sb = new StringBuilder();
// 		int read;
// 		char[] buf = new char[CHAR_BUFFER_LENGTH];
// 		while ((read = reader.read(buf)) != -1) {
// 			sb.append(new String(buf, 0, read));
// 		}
// 		return sb.toString();
// 	}
// }


// Path: src/main/java/de/flapdoodle/embed/process/runtime/NUMA.java
import de.flapdoodle.os.OS;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import de.flapdoodle.embed.process.config.SupportConfig;
import de.flapdoodle.os.Platform;
import de.flapdoodle.embed.process.io.Readers;
import static java.util.Arrays.asList;
import java.io.IOException;
import java.io.Reader;
import java.util.HashMap;
import java.util.Map;

/**
 * Copyright (C) 2011
 *   Michael Mosmann <michael@mosmann.de>
 *   Martin Jöhren <m.joehren@googlemail.com>
 *
 * with contributions from
 * 	konstantin-ba@github,
	Archimedes Trajano (trajano@github),
	Kevin D. Keck (kdkeck@github),
	Ben McCann (benmccann@github)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package de.flapdoodle.embed.process.runtime;





/**
 *
 */
public class NUMA {

	private static Logger logger = LoggerFactory.getLogger(NUMA.class);

	public static synchronized boolean isNUMA(SupportConfig support, Platform platform) {
		return NUMA_STATUS_MAP.computeIfAbsent(platform, p -> isNUMAOnce(support, p));