All Downloads are FREE. Search and download functionalities are using the official Maven repository.

host.anzo.core.config.EmergencyConfig Maven / Gradle / Ivy

package host.anzo.core.config;

import host.anzo.commons.config.annotation.ConfigComments;
import host.anzo.commons.config.annotation.ConfigFile;
import host.anzo.commons.config.annotation.ConfigProperty;

/**
 * @author ANZO
 * @since 23.05.2017
 */
@ConfigFile(name = "config/emergency.properties")
public class EmergencyConfig {
	@ConfigComments(comment = {"Restart server if deadlock detected."})
	@ConfigProperty(name = "restart.if.deadlock", value = "true")
	public static boolean RESTART_IF_DEADLOCK;

	@ConfigComments(comment = {"Restart server if memory leak detected."})
	@ConfigProperty(name = "restart.if.memory.leak", value = "true")
	public static boolean RESTART_IF_MEMORY_LEAK;

	@ConfigComments(comment = {"Maximum level of memory fullness to detect memory leak."})
	@ConfigProperty(name = "memory.leak.detect.percent", value = "95")
	public static int MEMORY_LEAK_DETECT_PERCENT;

	@ConfigComments(comment = {"Enable memory dump if leak detected."})
	@ConfigProperty(name = "memory.dump.heap.on.leak", value = "true")
	public static boolean DUMP_HEAP_ON_LEAK;

	@ConfigComments(comment = {"Enable metric system."})
	@ConfigProperty(name = "metrics.enable", value = "false")
	public static boolean ENABLE_METRICS;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy