Package eu.planets_project.pp.plato.model.values

Examples of eu.planets_project.pp.plato.model.values.PositiveFloatValue


       
        for (MeasurableProperty property: getMeasurableProperties()) {
            if (!property.getName().startsWith("machine:")) {
                Measurement m = new Measurement();
                m.setProperty(property);
                PositiveFloatValue v = (PositiveFloatValue) property.getScale().createValue();

                if (property.getName().equals(MigrationResult.MIGRES_USED_TIME)) {
                    v.setValue(performance.getTotalCpuTimeUsed());
                }
                if (property.getName().equals(MigrationResult.MIGRES_MEMORY_GROSS)) {
                    v.setValue(performance.getMaxVirtualMemory());
                }
                if (property.getName().equals(MigrationResult.MIGRES_MEMORY_NET)) {
                    v.setValue(performance.getMaxResidentSize());
                }


                if (property.getName().equals("performance:averageResidentSize")) {
                    v.setValue(performance.getAverageResidentSize());
                } else if (property.getName().equals("performance:averageSharedMemory")) {
                    v.setValue(performance.getAverageSharedMemory());
                } else if (property.getName().equals("performance:averageVirtualMemory")) {
                    v.setValue(performance.getAverageVirtualMemory());
                } else if (property.getName().equals("performance:maxResidentSize")) {
                    v.setValue(performance.getMaxResidentSize());
                } else if (property.getName().equals("performance:maxSharedMemory")) {
                    v.setValue(performance.getMaxSharedMemory());
                } else if (property.getName().equals("performance:maxVirtualMemory")) {
                    v.setValue(performance.getMaxVirtualMemory());
                } else if (property.getName().equals("performance:totalCpuTimeUsed")) {
                    v.setValue(performance.getTotalCpuTimeUsed());
                }
                m.setValue(v);
                result.getMeasurements().put(property.getName(), m);
            }
        }
View Full Code Here


        double totalTime = new Jip_Parser().getTotalTime(makeJIPOutFilename(time)+".txt");
       
        for (MeasurableProperty property: getMeasurableProperties()) {
            Measurement m = new Measurement();
            m.setProperty(property);
            PositiveFloatValue v = (PositiveFloatValue) property.getScale().createValue();
            if (property.getName().equals("performance:totalTimeInJava")) {
                v.setValue(totalTime);
            }
//            if (property.getName().equals(MigrationResult.MIGRES_USED_TIME)) {
//                v.setValue(totalTime);
//            }
View Full Code Here

//            //log.debug(performance.toString());
           
            for (MeasurableProperty property: getMeasurableProperties()) {
                Measurement m = new Measurement();
                m.setProperty(property);
                PositiveFloatValue v = (PositiveFloatValue) property.getScale().createValue();

                if (property.getName().equals("performance:memory:used")) {
                    v.setValue(123.12);
                }
//                if (property.getName().equals(MigrationResult.MIGRES_USED_TIME)) {
//                    v.setValue(performance.getTotalCpuTimeUsed());
//                }
//                if (property.getName().equals(MigrationResult.MIGRES_MEMORY_GROSS)) {
View Full Code Here

        PlatoLogger.getLogger(this.getClass()).debug("TIME measured: " + dbg);
       
        for (MeasurableProperty property: getMeasurableProperties()) {
            Measurement m = new Measurement();
            m.setProperty(property);
            PositiveFloatValue v = (PositiveFloatValue) property.getScale().createValue();
           
            if (property.getName().equals(MigrationResult.MIGRES_USED_TIME)) {
                v.setValue((p.getUser()+p.getSys())*1000);
            }
           
            m.setValue(v);
            result.getMeasurements().put(property.getName(), m);
        }
View Full Code Here

TOP

Related Classes of eu.planets_project.pp.plato.model.values.PositiveFloatValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.