"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "moskito-core/src/main/java/net/anotheria/moskito/core/util/BuiltInOSProducer.java" between
moskito-moskito-2.9.3.tar.gz and moskito-moskito-2.10.0.tar.gz

About: MoSKito (Monitoring System Kit) is a framework for java application monitoring. Sources.

BuiltInOSProducer.java  (moskito-moskito-2.9.3):BuiltInOSProducer.java  (moskito-moskito-2.10.0)
package net.anotheria.moskito.core.util; package net.anotheria.moskito.core.util;
import net.anotheria.moskito.core.accumulation.Accumulators;
import net.anotheria.moskito.core.predefined.OSStats;
import net.anotheria.moskito.core.producers.IStats;
import net.anotheria.moskito.core.producers.IStatsProducer;
import net.anotheria.moskito.core.registry.ProducerRegistryFactory;
import org.apache.commons.lang3.SystemUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.io.InputStreamReader; import java.io.InputStreamReader;
import java.lang.management.ManagementFactory; import java.lang.management.ManagementFactory;
import java.lang.management.OperatingSystemMXBean; import java.lang.management.OperatingSystemMXBean;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.TimerTask; import java.util.TimerTask;
import org.apache.commons.lang.SystemUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.anotheria.moskito.core.accumulation.Accumulators;
import net.anotheria.moskito.core.predefined.OSStats;
import net.anotheria.moskito.core.producers.IStats;
import net.anotheria.moskito.core.producers.IStatsProducer;
import net.anotheria.moskito.core.registry.ProducerRegistryFactory;
/** /**
* Builtin producer for values supplied by jmx for the operation system. * Builtin producer for values supplied by jmx for the operation system.
* *
* @author lrosenberg * @author lrosenberg
*/ */
public class BuiltInOSProducer extends AbstractBuiltInProducer implements IStats Producer, BuiltInProducer { public class BuiltInOSProducer extends AbstractBuiltInProducer implements IStats Producer, BuiltInProducer {
/** /**
* Associated stats. * Associated stats.
*/ */
private OSStats stats; private OSStats stats;
skipping to change at line 238 skipping to change at line 238
if (line.trim().isEmpty()) { if (line.trim().isEmpty()) {
continue; continue;
} }
return line; return line;
} }
} catch (IOException e1) { } catch (IOException e1) {
throw e1; throw e1;
} finally { } finally {
br.close(); br.close();
} }
throw new IOException("Could not read memory process output for c ommand " + command); throw new IOException("Could not read memory process output for c ommand " + Arrays.toString(command));
} }
} }
 End of changes. 4 change blocks. 
11 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)