Examples of onExecutionPhaseCompleted()


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

        LuceneIndexAdapter adapter = new LuceneIndexAdapter(reqCtx);
        adapter.touch();
      } catch (Exception e) {
        LOGGER.log(Level.SEVERE,"Error while touching IndexWriter on init.",e);
      } finally {
        if (reqCtx != null) reqCtx.onExecutionPhaseCompleted();
      }
    }
  }
   
  @Override
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()

            if (ProtocolInvoker.getUpdateContent(resource.getProtocol())) {
              RequestContext context = RequestContext.extract(null);
              try {
                submit(context, resource, null, resource.getLastSyncDate()==null || HarvestPolicy.getInstance().getForceFullHarvest(resource)? null: resource.getLastSyncDate());
              } finally {
                context.onExecutionPhaseCompleted();
              }
            }
          }
        };
        Thread thread = new Thread(autoSelector, "Auto-selector");
View Full Code Here

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

        taskQueue.notifyChange();
      }
    } catch (SQLException ex) {
      LOGGER.log(Level.SEVERE, "[SYNCHRONIZER] Error recovering from the previous failout", ex);
    } finally {
      context.onExecutionPhaseCompleted();
    }
  }

  /**
   * Listener of events.
View Full Code Here

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

        } catch (Throwable t) {
          LOGGER.log(Level.WARNING,"Error releasing lock.",t);
        }
      }
      if (rContext != null) {
        rContext.onExecutionPhaseCompleted();
      }
      if (Thread.currentThread().isInterrupted()) {
        LOGGER.info("AGSSynchronizer run was interrupted.");
      }
    }
View Full Code Here

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

        RequestContext rc2 = null;
        try {
          rc2 = RequestContext.extract(null);
          this.admin = Publisher.makeSystemAdministrator(rc2);
        } finally {
          if (rc2 != null) rc2.onExecutionPhaseCompleted();
        }
      }
      httpRequest.getSession().setAttribute("com.esri.gpt.user",admin);
     
      // make the CSW request handler
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.