Examples of TimerFactory


Examples of org.apache.derby.iapi.services.timer.TimerFactory

        // Mark the transaction to be rolled back bby timeout
        performTimeoutRollback = true;
        // schedule a time out task if the timeout was specified
        if (timeoutMillis > 0) {
            // take care of the transaction timeout
            TimerFactory timerFactory = Monitor.getMonitor().getTimerFactory();
            Timer timer = timerFactory.getCancellationTimer();
            timeoutTask = new CancelXATransactionTask(this);
            timer.schedule(timeoutTask, timeoutMillis);
        } else {
            timeoutTask = null;
        }
View Full Code Here

Examples of org.apache.derby.iapi.services.timer.TimerFactory

    this.isAtomic = isAtomic;
    this.stmtText = stmtText;
    this.pvs = pvs;
    rollbackParentContext = false;
        if (timeoutMillis > 0) {
            TimerFactory factory = Monitor.getMonitor().getTimerFactory();
            Timer timer = factory.getCancellationTimer();
            cancelTask = new CancelQueryTask(this);
            timer.schedule(cancelTask, timeoutMillis);
        }
  }
View Full Code Here

Examples of org.apache.uima.collection.impl.cpm.utils.TimerFactory

   * @throws Exception
   */
  private UimaTimer getTimer() throws Exception {
    String uimaTimerClass = cpeFactory.getCPEConfig().getCpeTimer().get();
    if (uimaTimerClass != null) {
      new TimerFactory(uimaTimerClass);
      return TimerFactory.getTimer();
    }
    // If not timer defined return default timer based on System.currentTimeMillis()
    return new JavaTimer();
  }
View Full Code Here

Examples of org.apache.uima.collection.impl.cpm.utils.TimerFactory

   * @throws Exception
   */
  public void init(boolean aDummyCasProcessor, Properties aProps) throws Exception {
    String uimaTimerClass = cpeFactory.getCPEConfig().getTimerImpl();
    try {
      new TimerFactory(uimaTimerClass);
    } catch (Exception e) {
      // e.printStackTrace();
      if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {
        UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),
                "process", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, "UIMA_CPM_use_default_timer__FINEST",
View Full Code Here

Examples of org.apache.uima.collection.impl.cpm.utils.TimerFactory

   * @throws Exception -
   */
  private UimaTimer getTimer() throws Exception {
    String uimaTimerClass = cpeFactory.getCPEConfig().getCpeTimer().get();
    if (uimaTimerClass != null) {
      new TimerFactory(uimaTimerClass);
      return TimerFactory.getTimer();
    }
    // If not timer defined return default timer based on System.currentTimeMillis()
    return new JavaTimer();
  }
View Full Code Here

Examples of org.apache.uima.collection.impl.cpm.utils.TimerFactory

   * @throws Exception -
   */
  public void init(boolean aDummyCasProcessor, Properties aProps) throws Exception {
    String uimaTimerClass = cpeFactory.getCPEConfig().getTimerImpl();
    try {
      new TimerFactory(uimaTimerClass);
    } catch (Exception e) {
      // e.printStackTrace();
      if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {
        UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),
                "process", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, "UIMA_CPM_use_default_timer__FINEST",
View Full Code Here

Examples of org.apache.uima.collection.impl.cpm.utils.TimerFactory

   * @throws Exception
   */
  private UimaTimer getTimer() throws Exception {
    String uimaTimerClass = cpeFactory.getCPEConfig().getCpeTimer().get();
    if (uimaTimerClass != null) {
      new TimerFactory(uimaTimerClass);
      return TimerFactory.getTimer();
    }
    // If not timer defined return default timer based on System.currentTimeMillis()
    return new JavaTimer();
  }
View Full Code Here

Examples of org.apache.uima.collection.impl.cpm.utils.TimerFactory

   * @throws Exception
   */
  public void init(boolean aDummyCasProcessor, Properties aProps) throws Exception {
    String uimaTimerClass = cpeFactory.getCPEConfig().getTimerImpl();
    try {
      new TimerFactory(uimaTimerClass);
    } catch (Exception e) {
      // e.printStackTrace();
      if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {
        UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),
                "process", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, "UIMA_CPM_use_default_timer__FINEST",
View Full Code Here

Examples of org.apache.uima.collection.impl.cpm.utils.TimerFactory

   * @throws Exception
   */
  private UimaTimer getTimer() throws Exception {
    String uimaTimerClass = cpeFactory.getCPEConfig().getCpeTimer().get();
    if (uimaTimerClass != null) {
      new TimerFactory(uimaTimerClass);
      return TimerFactory.getTimer();
    }
    // If not timer defined return default timer based on System.currentTimeMillis()
    return new JavaTimer();
  }
View Full Code Here

Examples of org.apache.uima.collection.impl.cpm.utils.TimerFactory

   * @throws Exception
   */
  private UimaTimer getTimer() throws Exception {
    String uimaTimerClass = cpeFactory.getCPEConfig().getCpeTimer().get();
    if (uimaTimerClass != null) {
      new TimerFactory(uimaTimerClass);
      return TimerFactory.getTimer();
    }
    // If not timer defined return default timer based on System.currentTimeMillis()
    return new JavaTimer();
  }
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.