Examples of execute()


Examples of com.esri.gpt.catalog.discovery.DiscoveryQueryAdapter.execute()

   
    // evaluate
    LOGGER.finer("Executing discovery query:\n"+query.toString());
    DiscoveryQueryAdapter dqa =
      context.getRequestContext().getCatalogConfiguration().newDiscoveryQueryAdapter();
    dqa.execute(context.getRequestContext(),query);
    LOGGER.finer("Discovery query result:\n"+query.getResult().toString());
  }
}
View Full Code Here

Examples of com.esri.gpt.catalog.harvest.history.HeDeleteRequest.execute()

            "catalog.harvest.history.manage.message.err.selection");
        }
        break;
      case Delete:
        HeDeleteRequest request = new HeDeleteRequest(context, aUuids);
        request.execute();
        int nRecordsDeleted =
          request.getActionResult().getNumberOfRecordsModified();
        if (aUuids.length > 0) {
          extractMessageBroker().addSuccessMessage(
            "catalog.harvest.manage.history.message.deleted",
View Full Code Here

Examples of com.esri.gpt.catalog.harvest.history.HeSelectOneRequest.execute()

    }

    // select and read harvest event record
    HeSelectOneRequest selectEventReq =
      new HeSelectOneRequest(context, sEventUuid);
    selectEventReq.execute();
    HeRecords events = selectEventReq.getQueryResult().getRecords();

    // get harvest event record
    HeRecord event = events.size() == 1 ? events.get(0) : null;
    if (event == null) {
View Full Code Here

Examples of com.esri.gpt.catalog.harvest.history.HeSelectRequest.execute()

    }

    // select and read harvest event record
    HeSelectRequest selectRequest =
      new HeSelectRequest(context, record, getCriteria(), getResult());
    selectRequest.execute();

    getResult().getQueryResult().setUuid(record.getUuid());
    getResult().getQueryResult().setProtocolTypeAsString(record.getProtocol().getKind());
    getResult().getQueryResult().setName(record.getName());
    getResult().getQueryResult().setUrl(record.getHostUrl());
View Full Code Here

Examples of com.esri.gpt.catalog.harvest.history.HeTransformReportRequest.execute()

    @Override
    public void transform(Writer writer) throws Exception {
      if (context!=null && record!=null) {
        HeTransformReportRequest request = new HeTransformReportRequest(context, record);
        try {
          request.execute(getSummaryTemplate(), writer, getParams());
        } catch (NullPointerException ex) {
          String msg = getMsgBroker().retrieveMessage("catalog.harvest.manage.history.message.readingError");
          writer.write(msg);
        } catch (TransformerException ex) {
          String msg = getMsgBroker().retrieveMessage("catalog.harvest.manage.history.message.readingError");
View Full Code Here

Examples of com.esri.gpt.catalog.harvest.history.HeUpdateReportRequest.execute()

      ReportStream reportStream = rp.createReportStream();

      InputStream in = null;
      try {
        in = reportStream.getStream();
        updateReportReq.execute(in, reportStream.getLength());
      } finally {
        if (in != null) {
          try {
            in.close();
          } catch (IOException ex) {
View Full Code Here

Examples of com.esri.gpt.catalog.harvest.history.HeUpdateRequest.execute()

      event.setPublishedCount((int) rp.getPublishedCount());
      event.setDeletedCount(deletedCount);

      // save report
      HeUpdateRequest updateReq = new HeUpdateRequest(context, event);
      updateReq.execute();

      HeUpdateReportRequest updateReportReq =
        new HeUpdateReportRequest(context, event);
      ReportStream reportStream = rp.createReportStream();
View Full Code Here

Examples of com.esri.gpt.catalog.harvest.jobs.HjCancelRequest.execute()

* @return <code>true</code> if matching taskDescriptor has been found and has been withdrawn
*/
public boolean cancel(RequestContext context, String uuid) {
  try {
    HjCancelRequest request = new HjCancelRequest(context, uuid);
    return request.execute();
  } catch (SQLException ex) {
    LOGGER.log(Level.WARNING, "[SYNCHRONIZER] Error canceling task", ex);
    return false;
  }
}
View Full Code Here

Examples of com.esri.gpt.catalog.harvest.jobs.HjCompleteRequest.execute()

* @return <code>true</code> if task has been found and completed
*/
public boolean complete(RequestContext context, String uuid) {
  try {
    HjCompleteRequest request = new HjCompleteRequest(context, uuid);
    return request.execute();
  } catch (SQLException ex) {
    LOGGER.log(Level.WARNING, "[SYNCHRONIZER] Error completing task", ex);
    return false;
  }
}
View Full Code Here

Examples of com.esri.gpt.catalog.harvest.jobs.HjCreateRequest.execute()

* @param criteria criteria
* @return <code>true</code> if task has been sumbited
*/
public synchronized boolean add(RequestContext context, HrRecord resource, CommonCriteria criteria) {
  HjCreateRequest request = new HjCreateRequest(context, resource, criteria, false);
  boolean result = request.execute();
  notify();
  return result;
}

/**
 
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.