Package gwt.tools.server.dao.ParallelUrlRetriever

Examples of gwt.tools.server.dao.ParallelUrlRetriever.Statistics


   * com.magnetica.client.MagneticaService#run(com.magnetica.shared.data.Request
   * )
   */
  @Override public ServerResult<EntityType> run(Request<EntityType> request, Result<EntityType> result) {
    Log.trace(this, "MagenticaService.run: request", request);
    Statistics initialUrlRetrieverStatistics = ParallelUrlRetriever.getStatistics();
    com.magnetica.shared.racks.ModuleRack.Statistics initialRackStatistics = ModuleRack.getStatistics();
    gwt.tools.shared.CommonCache.Statistics initialCacheStatistics = gwt.tools.shared.CommonCache.getStatistics();
    //    return new ServerResult(null, true);
    long start = System.currentTimeMillis();
    if (request.hasTimeout()) {
View Full Code Here


        b.append(((resultStatus == 0) ? "timeout" : ((resultStatus == 1) ? "success" : "failure")));
        b.append("; data=");
        b.append(result);

        // url retriever stats
        Statistics statistics = ParallelUrlRetriever.getStatistics();
        b.append("\n# UrlRetieverStats: ∆#urls added=");
        b.append((statistics.urlsAdded - initialUrlRetrieverStatistics.urlsAdded));
        b.append("; ∆#urls=");
        b.append((statistics.urlsRetrieved - initialUrlRetrieverStatistics.urlsRetrieved));
        b.append("; ∆#bytes=");
View Full Code Here

TOP

Related Classes of gwt.tools.server.dao.ParallelUrlRetriever.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.