Examples of onExecutionPhaseCompleted()


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

    return processor.createQuery(context, crt);
  } catch (IOException ex) {
    context.onIterationException(ex);
    return null;
  } finally {
    requestContext.onExecutionPhaseCompleted();
  }
}

public Native getNativeResource() {
  RequestContext requestContext = RequestContext.extract(null);
View Full Code Here

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

    return processor!=null? processor.getNativeResource(context): null;
  } catch (IOException ex) {
    context.onIterationException(ex);
    return null;
  } finally {
    requestContext.onExecutionPhaseCompleted();
  }
}

/**
* Creates new processing context.
View Full Code Here

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

  try {
    HjLoadAllRequest loadAllRequest = new HjLoadAllRequest(context, uuids);
    loadAllRequest.execute();
    return loadAllRequest.getQueryResult().getRecords();
  } finally {
    context.onExecutionPhaseCompleted();
  }
}

/**
* Withdraws all records.
View Full Code Here

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

  RequestContext context = RequestContext.extract(null);
  try {
    HjWithdrawRequest withdrawRequest = new HjWithdrawRequest(context, uuids);
    withdrawRequest.execute();
  } finally {
    context.onExecutionPhaseCompleted();
  }
}

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

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

      LOGGER.log(Level.FINEST, "[SYNCHRONIZER] Failed pushing through unit: {0}. Cause: {1}", new Object[]{unit, ex.getMessage()});
      getProcessor().onIterationException(getExecutionUnit(), ex);
    } finally {
      if (!isShutdown()) {
        getProcessor().onEnd(unit, success);
        context.onExecutionPhaseCompleted();
      }
      if (result != null) {
        result.destroy();
      }
      LOGGER.log(Level.FINEST, "[SYNCHRONIZER] Completed pushing through unit: {0}. Obtained {1} records.", new Object[]{unit, count});
View Full Code Here

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

      String sErr = "Exception occured while processing servlet request.";
      LOGGER.log(Level.SEVERE,sErr,t);
      response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
     
    } finally {
      if (context != null) context.onExecutionPhaseCompleted();
    }
  }
 
  /**
   * Executes an index deletion request.
View Full Code Here

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

      listener.onHarvestStart(unit.getRepository());

    } catch (Exception ex) {
      LOGGER.log(Level.SEVERE, "[SYNCHRONIZER] Error starting metadata processing.", ex);
    } finally {
      context.onExecutionPhaseCompleted();
    }
  }

  /**
   * Called upon the end of harvesting of the resource.
View Full Code Here

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

        if (helper.getSourceUris() != null) {
          helper.getSourceUris().close();
        }
      } catch (IOException ex) {
      }
      context.onExecutionPhaseCompleted();
    }
  }

  /**
   * Performs cleanup.
View Full Code Here

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

          rp.createInvalidEntry(sourceUri.asString(), Arrays.asList(new String[]{ex.getMessage()}));
          listener.onPublishException(unit.getRepository(), sourceUri, metadata, ex);
        }
      }
    } finally {
      context.onExecutionPhaseCompleted();
    }
  }

  /**
   * Called upon iteration exception.
View Full Code Here

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

      "ApplicationContext.CatalogConfiguration.searchConfig");
    }
    return config;
  } finally {
    if(requestContext != null) {
      requestContext.onExecutionPhaseCompleted();
    }
  }

}
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.