Package br.edu.utfpr.cm.JGitMinerWeb.services.metric

Examples of br.edu.utfpr.cm.JGitMinerWeb.services.metric.AbstractMetricServices


            dao.edit(entityMetric);

            initialized = true;
            progress = 10;

            final AbstractMetricServices services = createMetricServiceInstance();

            process = new Thread(services) {
                @Override
                public void run() {
                    try {
                        if (!canceled) {
                            out.setCurrentProcess("Iniciando coleta dos dados para geração da metrica.");
                            super.run();
                            out.printLog(services.getNodes().size() + " Registros coletados!");
                        }
                        progress = 50;
                        out.printLog("");
                        if (!canceled) {
                            out.setCurrentProcess("Iniciando salvamento dos dados gerados.");
                            entityMetric.setNodes(services.getMetricNodes());
                            for (EntityMetricNode node : services.getMetricNodes()){
                                node.setMetric(entityMetric);
                            }
                            entityMetric.setComplete(true);
                            dao.edit(entityMetric);
                            out.printLog("Salvamento dos dados concluído!");
View Full Code Here


                entityMetric.setMatrix(matrix + "");
                entityMetric.setLog(out.getLog().toString());
                entityMetric.setClassServicesName(serviceClass.getName());
                dao.edit(entityMetric);

                final AbstractMetricServices services = createMetricServiceInstance(params, matrix);

                Thread process = new Thread(services) {
                    @Override
                    public void run() {
                        try {
                            if (!canceled) {
                                out.setCurrentProcess("Iniciando coleta dos dados para geração da metrica.");
                                super.run();
                                out.printLog(services.getNodes().size() + " Registros coletados!");
                            }
                            progress += fraction / 2;
                            out.printLog("");
                            if (!canceled) {
                                out.setCurrentProcess("Iniciando salvamento dos dados gerados.");
                                entityMetric.setNodes(services.getMetricNodes());
                                for (EntityMetricNode node : services.getMetricNodes()) {
                                    node.setMetric(entityMetric);
                                }
                                entityMetric.setComplete(true);
                                dao.edit(entityMetric);
                                out.printLog("Salvamento dos dados concluído!");
View Full Code Here

            String fileName = generateFileName(metric) + ".csv";

            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            PrintWriter pw = new PrintWriter(baos);

            AbstractMetricServices services = AbstractMetricServices.createInstance(dao, out, metric.getClassServicesName());

            pw.println(services.getHeadCSV());

            for (EntityMetricNode node : metric.getNodes()) {
                pw.println(node + "");
            }
View Full Code Here

TOP

Related Classes of br.edu.utfpr.cm.JGitMinerWeb.services.metric.AbstractMetricServices

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.