Examples of GeoportalUsageInformation


Examples of com.esri.gpt.server.usage.api.GeoportalUsageInformation

  statRequestCtx = new StatisticsRequestContext();
  initStatisticsRequestContext(request,response,context, statRequestCtx);   
  GeoportalStatisticsProviderFactory geoportalStatProviderFactory = new GeoportalStatisticsProviderFactory();
  StatisticsWriterFactory statisticsWriterFactory = new StatisticsWriterFactory();   
  statisticsWriterFactory.makeStatisticsWriter(statRequestCtx);
  GeoportalUsageInformation usageInfo = geoportalStatProviderFactory.buildUsageReport(statRequestCtx);   
}
View Full Code Here

Examples of com.esri.gpt.server.usage.api.GeoportalUsageInformation

   * @param statRequestCtx the statistics request context
   * @return geoportal statistics information
   * @throws Exception if exception occurs
   */
   public GeoportalUsageInformation buildUsageReport(StatisticsRequestContext statRequestCtx) throws Exception{
     GeoportalUsageInformation geoportalStats = new GeoportalUsageInformation();
     String[] restUriParts = statRequestCtx.getRestUriParts();
     if(statRequestCtx.getRequestType().equalsIgnoreCase(StatisticsTypes.HARVESTER.toString())){
       HarvesterStatisticsBuilder harvesterStats = new HarvesterStatisticsBuilder(statRequestCtx);
       if(restUriParts.length >= 6 && restUriParts[5].equalsIgnoreCase(StatisticsMetrics.CONFIG.toString())){
         harvesterStats.buildEnvironmentStatistics();
       }else{
         harvesterStats.buildStatistics();
       }
       geoportalStats.setHarvesterStats(harvesterStats);
     }else{
      
     }
     return geoportalStats;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.