if (osName == null) {
throw new IOException("No defined OS name found. Found: " + osName);
}
if (osName.equalsIgnoreCase(CpuSamplerPlugin.LINUX)) {
plugin = new LinuxCpuSamplerPlugin(getInterval());
} else {
throw new IOException("No CPU Sampler Plugin found for OS: " + osName + ". CPU Sampler will not be started.");
}
}