Package com.esri.gpt.control.webharvest.engine

Examples of com.esri.gpt.control.webharvest.engine.Statistics


  public String getSynchronizationStatistics() {
    RequestContext context = onPrepareViewStarted();
    try {
      HrRecord record = getEditor().getRepository();
      if (record.getRecentJobStatus() == RecentJobStatus.Running) {
        Statistics stats = context.getApplicationContext().getHarvestingEngine().getStatistics(record.getUuid());
        if (stats != null) {
          String[] params = new String[]{
            Long.toString(stats.getHarvestedCount()),
            Long.toString(stats.getValidatedCount()),
            Long.toString(stats.getPublishedCount()),
            new TimePeriod(stats.getDuration()).toLocalizedString(extractMessageBroker()),
            Double.toString(stats.getPerformance())
          };
          return extractMessageBroker().retrieveMessage("catalog.harvest.manage.edit.syncRunningStats", params);
        }
      }
      return "";
View Full Code Here

TOP

Related Classes of com.esri.gpt.control.webharvest.engine.Statistics

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.