Trackovani navstev
@throws AbortException
326918
public function actionTrack(): void
	{
		if ($this->getPost('leave')) {
			$this->tracking->leave();
		}
		if ($this->getPost('url')) {
			$this->tracking->track();
		}
		$this->terminate();
	}
590989
public function traceEnd(): void
    {
        $now = microtime(true);
        foreach ($this->buffTrace as &$traceItem) {
            if ('' === $traceItem['result']) {
                $traceItem['time'] = $now - $traceItem['time'];
                $traceItem['result'] = 'Trace end';
            }
        }
        unset($traceItem);
    }
515363
function _navigateBack() {
        if (!jumpForwardStack.length) {
            if (activePosNotSynced) {
                currentEditPos = new NavigationFrame(EditorManager.getCurrentFullEditor(), {ranges: EditorManager.getCurrentFullEditor()._codeMirror.listSelections()});
                jumpForwardStack.push(currentEditPos);
            }
        }
        
        var navFrame = jumpBackwardStack.pop();
        
        // Check if the poped frame is the current active frame or doesn't have any valid marker information
        // if true, jump again
        if (navFrame && navFrame === currentEditPos) {
            jumpForwardStack.push(navFrame);
            _validateNavigationCmds();
            CommandManager.execute(NAVIGATION_JUMP_BACK);
            return;
        }
        
        if (navFrame) {
            // We will check for the file existence now, if it doesn't exist we will jump back again
            // but discard the popped frame as invalid.
            _validateFrame(navFrame).done(function () {
                jumpForwardStack.push(navFrame);
                navFrame.goTo();
                currentEditPos = navFrame;
            }).fail(function () {
                CommandManager.execute(NAVIGATION_JUMP_BACK);
            }).always(function () {
                _validateNavigationCmds();
            });
        }
    }
789517
public void onDestroy() {
    stopNavigation();
    removeOffRouteListener(null);
    removeProgressChangeListener(null);
    removeMilestoneEventListener(null);
    removeNavigationEventListener(null);
    removeFasterRouteListener(null);
    removeRawLocationListener(null);
  }
1089330
def rescue_status_code_exception(&blk)
      yield
    rescue HtmlUnit::FailingHttpStatusCodeException => e
      raise NavigationException, e.message, caller
    end
333070
void endNavigation() {
    NavigationTelemetry.getInstance().endSession();
    routeFetcher.clearListeners();
    locationUpdater.removeLocationUpdates();
    notificationProvider.shutdown(getApplication());
    thread.quit();
  }
460867
@Override
  public final void trackLoginFail(
    final HttpServletRequest pReq) throws Exception {
    HttpSession session = pReq.getSession();
    Integer flCountAttempt = (Integer) session.getAttribute("flCountAttempt");
    if (flCountAttempt == null) {
      flCountAttempt = 0;
    }
    flCountAttempt++;
    session.setAttribute("flCountAttempt", flCountAttempt);
    if (flCountAttempt < 6) {
      pReq.setAttribute("loginErrorJsp",
        srvI18n.getMsg("invalid_user_name_or_password"));
      // scamware can make any headers, so user-agent is not informative
      String msg = "Fail login attempt from IP/port/host/attempt: "
        + pReq.getRemoteAddr() + "/" + pReq.getRemotePort()
          + "/" + pReq.getRemoteHost() + "/" + flCountAttempt;
      logger.warn(null, SessionTracker.class, msg);
    } else {
      // banned for web.xml session-timeout minits
      session.setAttribute("isBanned", Boolean.TRUE);
      pReq.setAttribute("loginBanJsp", this.srvI18n.getMsg("loginBan"));
      String msg = "Ban login attempt from IP/port/host/attempt: "
        + pReq.getRemoteAddr() + "/" + pReq.getRemotePort()
          + "/" + pReq.getRemoteHost() + "/" + flCountAttempt;
      logger.error(null, SessionTracker.class, msg);
    }
  }
83774
public function stop()
    {
        if (!$this->currentImport instanceof Import) {
            throw new Exception('Unable to stop the current import, please start an import first', 1426638563);
        }
        $this->currentImport->end();
        $this->importRepository->update($this->currentImport);
        $this->lastImport = clone $this->currentImport;
        unset($this->currentImport);
    }
471375
function track(event){
  try {
    // TODO look up for event.data.transformer before setting data
    tracker.set(event);
  } catch(e) {
    /** @cut */ basis.dev.error(namespace + '.track(): Error during tracking event processing', event, e);
  }
}
711930
protected function killCurrentTransport()
    {
        if ($transport = array_pop($this->transports)) {
            try {
                $transport->stop();
            } catch (Exception $e) {
            }
            $this->deadTransports[] = $transport;
        }
    }
1048828
public function markAborted() {
		$this->Status = 'Aborted';
		$logMessage = sprintf(
			"Pipeline processing aborted. %s (%s) aborted the pipeline",
			Member::currentUser()->Name,
			Member::currentUser()->Email
		);
		$this->log($logMessage);
		$this->write();

		// Abort all running or queued steps.
		$steps = $this->Steps();
		foreach($steps as $step) {
			if ($step->isQueued() || $step->isRunning()) $step->abort();
		}

		// Send notification to users about this event
		$this->sendMessage(self::ALERT_ABORT);
	}
154485
public final void abort(final PersistentTransaction transaction) throws SevereMessageStoreException
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "abort", transaction);

        getLink().abortRemove(transaction);

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "abort");
    }
627263
public void cancel() {
        mActivePointerId = INVALID_POINTER;
        clearMotionHistory();

        if (mVelocityTracker != null) {
            mVelocityTracker.recycle();
            mVelocityTracker = null;
        }
    }
1277215
public void stop() throws DevFailed {
        try {
            if (isStarted.get()) {
                tangoClasses.clear();
                if (tangoExporter != null) {
                    tangoExporter.clearClass();
                    tangoExporter.unexportAll();
                }
                TangoCacheManager.shutdown();
                EventManager.getInstance().close();
                if (monitoring != null) {
                    monitoring.stop();
                }
            }
        } finally {
            ORBManager.shutdown();
            logger.info("everything has been shutdown normally");
            isStarted.set(false);
        }
    }
1165508
function abort() {
    this.aborted = true;
    this.responseText = null;
    this.errorFlag = true;
    this.requestHeaders = {};

    this.dispatchEvent(new _Event("abort", false, false, this));

    if (this.readyState > FakeXMLHttpRequest.UNSENT && this.sendFlag) {
      this._readyStateChange(FakeXMLHttpRequest.UNSENT);
      this.sendFlag = false;
    }

    if (typeof this.onerror === "function") {
      this.onerror();
    }
  }
749112
private void failHeartbeat() {
    raft.checkThread();

    // Iterate through pending timestamped heartbeat futures and fail futures that have been pending longer
    // than an election timeout.
    long currentTimestamp = System.currentTimeMillis();
    Iterator<TimestampedFuture<Long>> iterator = heartbeatFutures.iterator();
    while (iterator.hasNext()) {
      TimestampedFuture<Long> future = iterator.next();
      if (currentTimestamp - future.timestamp > electionTimeout) {
        future.completeExceptionally(new RaftException.ProtocolException("Failed to reach consensus"));
        iterator.remove();
      }
    }
  }
93038
private void updateNavPos(CmsResource res, CmsSitemapChange change) throws CmsException {

        if (change.hasChangedPosition()) {
            applyNavigationChanges(change, res);
        }
    }