Examples of onExecutionPhaseCompleted()


Examples of com.esri.gpt.framework.context.RequestContext.onExecutionPhaseCompleted()

          owner = new Publisher(context2, getOwner());
        }
      } catch (Exception ex) {
        LOGGER.log(Level.FINER, "Error creating publisher", ex);
      } finally {
        if (context2 != null) context2.onExecutionPhaseCompleted();
      }
    } else {
      if (publisher!=null && !publisher.getIsAdministrator()) {
        owner = publisher;
      }
View Full Code Here

Examples of com.esri.gpt.framework.context.RequestContext.onExecutionPhaseCompleted()

    // get all harveting records
    HrSelectRequest selectRequest = new HrSelectRequest(context);
    selectRequest.execute();
    return selectRequest.getQueryResult().getRecords();
  } finally {
    context.onExecutionPhaseCompleted();
  }
}

public synchronized void safeSuspend() {
  if (!suspended) {
View Full Code Here

Examples of com.esri.gpt.framework.context.RequestContext.onExecutionPhaseCompleted()

        String msg = "Error checking resource URL";
        LOGGER.log(Level.SEVERE,msg,e);
        this.writeError(request,response,msg+": "+e.toString(),null);
        return;
      } finally {
        if (rc != null) rc.onExecutionPhaseCompleted();
      }
    }

    // send the redirect
    if ((fwd != null) && (fwd.length() > 0)) {
View Full Code Here

Examples of com.esri.gpt.framework.context.RequestContext.onExecutionPhaseCompleted()

          return extractMessageBroker().retrieveMessage("catalog.harvest.manage.edit.syncRunningStats", params);
        }
      }
      return "";
    } finally {
      context.onExecutionPhaseCompleted();
    }
  }

  /**
   * Prepares selected publishers.
View Full Code Here

Examples of com.esri.gpt.framework.context.RequestContext.onExecutionPhaseCompleted()

        RequestContext context = RequestContext.extract(null);
        try {
          taskQueue.complete(context, resource.getUuid());
        } finally {
          adHoc.remove(this);
          context.onExecutionPhaseCompleted();
        }
      }
  };
  adHoc.add(worker);
  Thread thread = new Thread(worker, "harvester ad hoc");
View Full Code Here

Examples of com.esri.gpt.framework.context.RequestContext.onExecutionPhaseCompleted()

          syncItem(agpItem);
        }
      }

    } finally {
      requestContext.onExecutionPhaseCompleted();
      LOGGER.log(Level.INFO, "Completed synchronization from ArcGIS Server "+source.getRestUrl()+" into Portal for ArcGIS "+destination.getConnection().getHost());
    }
  }
 
  /**
 
View Full Code Here

Examples of com.esri.gpt.framework.context.RequestContext.onExecutionPhaseCompleted()

      System.err.println(json);
     
    } catch (Throwable t) {
      t.printStackTrace(System.err);
    } finally {
      if (rc != null) rc.onExecutionPhaseCompleted();
    }
  }
}
View Full Code Here

Examples of com.esri.gpt.framework.context.RequestContext.onExecutionPhaseCompleted()

  private void complete(String uuid) {
    RequestContext context = RequestContext.extract(null);
    try {
      taskQueue.complete(context, uuid);
    } finally {
      context.onExecutionPhaseCompleted();
    }
  }

  /**
   * Gets execution nextUnit for the next task.
View Full Code Here

Examples of com.esri.gpt.framework.context.RequestContext.onExecutionPhaseCompleted()

      if (task == null) {
        return null;
      }
      return newExecutionUnit(task);
    } finally {
      context.onExecutionPhaseCompleted();
    }
  }

  protected boolean isToSkip(String uuid) {
    if (toSkip == null) {
View Full Code Here

Examples of com.esri.gpt.framework.context.RequestContext.onExecutionPhaseCompleted()

      }
     
    } catch (Throwable t) {
      t.printStackTrace(System.err);
    } finally {
      if (rc != null) rc.onExecutionPhaseCompleted();
    }
  }
 
  /** properties ============================================================== */
 
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.