Package org.geoserver.importer

Examples of org.geoserver.importer.ImportSummary


            @Override
            protected void onTimer(AjaxRequestTarget target) {
                FeatureTypeImporter importer = getImporter();
               
                 ImportSummary summary = importer.getSummary();
                if(summary != null) {
                    if(summary.isCompleted()) {
                        setResponsePage(new ImportSummaryPage(summary));
                    }
                   
                    long perc = Math.round(100.0 * (summary.getProcessedLayers() + 1) / summary.getTotalLayers());
                    if(perc > 100) {
                        perc = 100;
                    }
                    widthModel.setObject("width: " + perc + "%;");
                    percentage.setModelObject(perc);
                    currentFile.setModelObject(summary.getCurrentLayer());
                   
                    target.addComponent(info);
                }
            }

View Full Code Here

TOP

Related Classes of org.geoserver.importer.ImportSummary

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.